[llvm-bugs] [Bug 33838] New: Incorrect operand sizes for MMX instructions

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Jul 18 12:14:10 PDT 2017


            Bug ID: 33838
           Summary: Incorrect operand sizes for MMX instructions
           Product: tools
           Version: 4.0
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: llvm-as
          Assignee: unassignedbugs at nondot.org
          Reporter: peter at trailofbits.com
                CC: llvm-bugs at lists.llvm.org

The x86 MMX variants of punpcklbw, punpcklwd, punpckldq that operate on memory
operate on dwords, but the LLVM assembler only accepts qword ptr arguments.

For example, LLVM rejects the following:

   punpcklwd mm0, dword ptr [rsp]

and incorrectly accepts the following:

   punpcklwd mm0, qword ptr [rsp]

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/20170718/9003fc89/attachment.html>

More information about the llvm-bugs mailing list