Fix the encoding of the movntdqa X86 instruction. It was missing the 0x66
authorKevin Enderby <enderby@apple.com>
Wed, 10 Feb 2010 00:10:31 +0000 (00:10 +0000)
committerKevin Enderby <enderby@apple.com>
Wed, 10 Feb 2010 00:10:31 +0000 (00:10 +0000)
prefix which is part of the opcode encoding.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95729 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86InstrSSE.td
test/MC/AsmParser/X86/x86_32-encoding.s

index bbdaed4116aeb52f62b16226c4052cd0dde3e381..e26c9799b6a2ceecf694a67e70b1e619b3a7bb1a 100644 (file)
@@ -3747,7 +3747,8 @@ def PTESTrm : SS48I<0x17, MRMSrcMem, (outs), (ins VR128:$src1, i128mem:$src2),
 
 def MOVNTDQArm : SS48I<0x2A, MRMSrcMem, (outs VR128:$dst), (ins i128mem:$src),
                        "movntdqa\t{$src, $dst|$dst, $src}",
-                       [(set VR128:$dst, (int_x86_sse41_movntdqa addr:$src))]>;
+                       [(set VR128:$dst, (int_x86_sse41_movntdqa addr:$src))]>,
+                       OpSize;
 
 
 //===----------------------------------------------------------------------===//
index e38df9e3b995eb0d6b0b8f152427a8f3b8f47477..e029ded0d1f305459b0ba63350d50106b04a49b8 100644 (file)
@@ -9,3 +9,5 @@ sbbb    $0xfe,0xdeadbeef(%ebx,%ecx,8)
 psllw  69, %mm3
 # CHECK: encoding: [0x0f,0xf1,0x1d,0x45,0x00,0x00,0x00]
 
+movntdqa 0xdeadbeef(%ebx,%ecx,8),%xmm5
+# CHECK: encoding: [0x66,0x0f,0x38,0x2a,0xac,0xcb,0xef,0xbe,0xad,0xde]