[LLVMbugs] [Bug 13933] New: [x86 disassembler] XOP instructions not recognized

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Sep 26 11:24:04 PDT 2012


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

             Bug #: 13933
           Summary: [x86 disassembler] XOP instructions not recognized
           Product: libraries
           Version: trunk
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Backend: X86
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: kkhoo at perfwizard.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


AMD's XOP instructions which exist in Bulldozer and are documented in their
General Purpose (Vol. 3) and Media Instructions (Vol. 4) manuals are not
disassembled by llvm-mc.

For example:
$ echo '0x8f 0x09 0x78 0xe1 0xc0' | ./llvm-mc -disassemble -mattr=xop
-triple=x86_64
    .section    __TEXT,__text,regular,pure_instructions
<stdin>:1:1: warning: invalid instruction encoding
0x8f 0x09 0x78 0xe1 0xc0
^
    js    -31
<stdin>:1:21: warning: invalid instruction encoding
0x8f 0x09 0x78 0xe1 0xc0

objdump gets this right on Linux:
$ objdump -v
GNU objdump version 2.20.51.0.2-5.34.el6 20100205
$ objdump -d foo.o
...
    1210:       8f 09 78 e1 c0          vphsubbw %xmm8,%xmm8

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list