[LLVMbugs] [Bug 10702] [x86 disassembler] crc32 not disassembled correctly

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Aug 31 00:07:36 PDT 2011


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

Craig Topper <craig.topper at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
                 CC|                            |craig.topper at gmail.com
         Resolution|FIXED                       |

--- Comment #2 from Craig Topper <craig.topper at gmail.com> 2011-08-31 02:07:35 CDT ---
Reopening because the following case doesn't work

echo '0x66 0xf2 0x0f 0x38 0xf1 0xc0'| ./llvm-mc -disassemble -triple="x86_64"
    crc32l     %ax, %ax

Should be "crc32w %ax, %eax"

The disassembler doesn't really know what to do with 0x66 and 0xf2 on the same
instruction and fails to match the opcode correctly. The destination operand
needs to ignore the 0x66 prefix.


Also this should decode to MOVBE which I don't think is supported at all in
LLVM.

echo '0x0f 0x38 0xf1 0xc0'| ./llvm-mc -disassemble -triple="x86_64
        crc32l     %eax, %eax

-- 
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