http://llvm.org/bugs/show_bug.cgi?id=17471

            Bug ID: 17471
           Summary: -x86-asm-syntax parameter is not respected by llvm-mc
           Product: new-bugs
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified

$ ./llvm-mc -help
OVERVIEW: llvm machine code playground
...
  -x86-asm-syntax                  - Choose style of code to emit from X86
backend:
    =att                           -   Emit AT&T-style assembly
    =intel                         -   Emit Intel-style assembly

$ echo '0x8f 0x00' | ./llvm-mc -disassemble -triple=x86_64 -x86-asm-syntax=att
    .text
    popq    (%rax)
$ echo '0x8f 0x00' | ./llvm-mc -disassemble -triple=x86_64
-x86-asm-syntax=intel
    .text
    popq    (%rax)


The expected output with Intel syntax should be something like:
    pop    qword ptr [rax]


This is with:
$ ./llvm-mc -version
LLVM (http://llvm.org/):
  LLVM version 3.4svn
  DEBUG build with assertions.
  Built Oct  3 2013 (11:08:29).
  Default target: x86_64-apple-darwin11.4.2
  Host CPU: corei7-avx

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to