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

             Bug #: 12042
           Summary: [x86 disassembler] iret suffix incorrect with Intel
                    syntax and operand size prefix
           Product: libraries
           Version: trunk
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Backend: X86
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]
    Classification: Unclassified


$ echo '0x66 0xcf' | ./llvm-mc -disassemble -x86-asm-syntax=intel
-triple=x86_64 
    iretw
$ echo '0xcf' | ./llvm-mc -disassemble -x86-asm-syntax=intel -triple=x86_64
    iretd
$ echo '0x48 0xcf' | ./llvm-mc -disassemble -x86-asm-syntax=intel
-triple=x86_64 
    iretq

>From the Intel ISA ref:
CF IRET Valid Valid Interrupt return (16-bit operand size).
CF IRETD Valid Valid Interrupt return (32-bit operand size).
REX.W + CF IRETQ Interrupt return (64-bit operand size).

The first case should show "iret" rather than "iretw".

-- 
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to