[LLVMbugs] [Bug 12042] New: [x86 disassembler] iret suffix incorrect with Intel syntax and operand size prefix

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Feb 20 12:13:43 PST 2012


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: unassignedbugs at nondot.org
        ReportedBy: kkhoo at perfwizard.com
                CC: llvmbugs at cs.uiuc.edu
    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.



More information about the llvm-bugs mailing list