Fix PR8946, a missing reg/reg form of movdqu.
authorChris Lattner <sabre@nondot.org>
Tue, 11 Jan 2011 17:04:55 +0000 (17:04 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 11 Jan 2011 17:04:55 +0000 (17:04 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123242 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86InstrSSE.td
test/MC/X86/x86-64.s

index 9c20e8427115ab84643c452c960728cc8ec9cfca..e9bfbeb0b6319e7923f08927048ef7d7cf64dda0 100644 (file)
@@ -2201,6 +2201,10 @@ let neverHasSideEffects = 1 in
 def MOVDQArr : PDI<0x6F, MRMSrcReg, (outs VR128:$dst), (ins VR128:$src),
                    "movdqa\t{$src, $dst|$dst, $src}", []>;
 
+def MOVDQUrr :   I<0x6F, MRMSrcReg, (outs VR128:$dst), (ins VR128:$src),
+                   "movdqu\t{$src, $dst|$dst, $src}",
+                   []>, XS, Requires<[HasSSE2]>;
+
 let canFoldAsLoad = 1, mayLoad = 1 in {
 def MOVDQArm : PDI<0x6F, MRMSrcMem, (outs VR128:$dst), (ins i128mem:$src),
                    "movdqa\t{$src, $dst|$dst, $src}",
index 2eb2aded6ac8d4035b2cb19423129a14e935757d..ed3162c0a98abf2c8cfacf3e55b608a7bc511d93 100644 (file)
@@ -924,3 +924,5 @@ data16 // CHECK: data16 # encoding: [0x66]
 // PR8855
 movq 18446744073709551615,%rbx   // CHECK: movq        -1, %rbx
 
+// PR8946
+movdqu %xmm0, %xmm1 // CHECK: movdqu   %xmm0, %xmm1 # encoding: [0xf3,0x0f,0x6f,0xc8]