[LLVMbugs] [Bug 17471] New: -x86-asm-syntax parameter is not respected by llvm-mc

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Oct 3 15:00:38 PDT 2013


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: unassignedbugs at nondot.org
          Reporter: kkhoo at perfwizard.com
                CC: llvmbugs at cs.uiuc.edu
    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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20131003/bd922844/attachment.html>


More information about the llvm-bugs mailing list