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

            Bug ID: 17779
           Summary: Integrated assembler rejects "pextrw $7,%xmm3,%r10"
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: OpenBSD
            Status: NEW
          Severity: normal
          Priority: P
         Component: Backend: X86
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified

In OpenBSD's aes_intel.S assembly
(http://www.openbsd.org/cgi-bin/cvsweb/src/sys/arch/amd64/amd64/aes_intel.S?rev=1.9;content-type=text%2Fplain),
there are several instructions like:

     pextrw    $7,%xmm3,%r10

These are acceptable by binutils's assembler, but not by clang's integrated
assembler:

    $ echo "pextrw $7,%xmm3,%r10" | clang -c -x assembler - -o /dev/null
    <stdin>:1:1: error: invalid operand for instruction
    pextrw $7,%xmm3,%r10
    ^

Changing %r10 to %r10d allows the code to be assembled by clang, but it causes
binutils to emit slightly different output, and I'm not familiar enough with
x86-64 machine code to know if it matters or not.

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