[LLVMbugs] [Bug 17779] New: Integrated assembler rejects "pextrw $7, %xmm3, %r10"

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Nov 1 18:34:08 PDT 2013


            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: unassignedbugs at nondot.org
          Reporter: matthew at dempsky.org
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

In OpenBSD's aes_intel.S assembly
there are several instructions like:

     pextrw    $7,%xmm3,%r10

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

    $ 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20131102/bf68f2d3/attachment.html>

More information about the llvm-bugs mailing list