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

           Summary: MC assembler doesn't handle x86 'str' with arbitrary
                    operand
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected]
            Blocks: 4068


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

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

Reply via email to