[LLVMbugs] [Bug 9377] New: MC assembler doesn't handle x86 'str' with arbitrary operand

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Mar 2 14:39:49 PST 2011


           Summary: MC assembler doesn't handle x86 'str' with arbitrary
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: pageexec at freemail.hu
                CC: llvmbugs at cs.uiuc.edu, pageexec at freemail.hu
            Blocks: 4068

while compiling linux i get this error with integrated-as (gas as usual digests

In file included from arch/x86/include/asm/elf.h:89:
arch/x86/include/asm/desc.h:253:15: error: invalid operand for instruction
        asm volatile("str %0":"=r" (tr));
<inline asm>:1:2: note: instantiated into assembly here
        str %eax
1 error generated.

(with unsigned long tr;)

'str' can operate on a register operand bigger than 16 bits (it'll zero extend
the selector value) so this is a legal form of the insn. i didn't check but
'sldt' may need a similar fix if it doesn't handle this form already.

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