[llvm-branch-commits] [llvm-branch] r104596 - in /llvm/branches/Apple/whitney: lib/Target/X86/X86InstrMMX.td test/MC/AsmParser/X86/x86_64-encoding.s
Daniel Dunbar
daniel at zuster.org
Tue May 25 07:07:11 PDT 2010
Author: ddunbar
Date: Tue May 25 09:07:11 2010
New Revision: 104596
URL: http://llvm.org/viewvc/llvm-project?rev=104596&view=rev
Log:
Fix an mmx movd encoding.
Modified:
llvm/branches/Apple/whitney/lib/Target/X86/X86InstrMMX.td
llvm/branches/Apple/whitney/test/MC/AsmParser/X86/x86_64-encoding.s
Modified: llvm/branches/Apple/whitney/lib/Target/X86/X86InstrMMX.td
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/Apple/whitney/lib/Target/X86/X86InstrMMX.td?rev=104596&r1=104595&r2=104596&view=diff
==============================================================================
--- llvm/branches/Apple/whitney/lib/Target/X86/X86InstrMMX.td (original)
+++ llvm/branches/Apple/whitney/lib/Target/X86/X86InstrMMX.td Tue May 25 09:07:11 2010
@@ -130,10 +130,10 @@
def MMX_MOVD64from64rr : MMXRI<0x7E, MRMDestReg,
(outs GR64:$dst), (ins VR64:$src),
"movd\t{$src, $dst|$dst, $src}", []>;
-def MMX_MOVD64rrv164 : MMXI<0x6E, MRMSrcReg, (outs VR64:$dst), (ins GR64:$src),
- "movd\t{$src, $dst|$dst, $src}",
- [(set VR64:$dst,
- (v1i64 (scalar_to_vector GR64:$src)))]>;
+def MMX_MOVD64rrv164 : MMXRI<0x6E, MRMSrcReg, (outs VR64:$dst), (ins GR64:$src),
+ "movd\t{$src, $dst|$dst, $src}",
+ [(set VR64:$dst,
+ (v1i64 (scalar_to_vector GR64:$src)))]>;
let neverHasSideEffects = 1 in
def MMX_MOVQ64rr : MMXI<0x6F, MRMSrcReg, (outs VR64:$dst), (ins VR64:$src),
Modified: llvm/branches/Apple/whitney/test/MC/AsmParser/X86/x86_64-encoding.s
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/Apple/whitney/test/MC/AsmParser/X86/x86_64-encoding.s?rev=104596&r1=104595&r2=104596&view=diff
==============================================================================
--- llvm/branches/Apple/whitney/test/MC/AsmParser/X86/x86_64-encoding.s (original)
+++ llvm/branches/Apple/whitney/test/MC/AsmParser/X86/x86_64-encoding.s Tue May 25 09:07:11 2010
@@ -71,3 +71,35 @@
// CHECK: crc32q 4(%rbx), %rax
// CHECK: encoding: [0xf2,0x48,0x0f,0x38,0xf1,0x43,0x04]
crc32q 4(%rbx), %rax
+
+// CHECK: movd %r8, %mm1
+// CHECK: encoding: [0x49,0x0f,0x6e,0xc8]
+movd %r8, %mm1
+
+// CHECK: movd %r8d, %mm1
+// CHECK: encoding: [0x41,0x0f,0x6e,0xc8]
+movd %r8d, %mm1
+
+// CHECK: movd %rdx, %mm1
+// CHECK: encoding: [0x48,0x0f,0x6e,0xca]
+movd %rdx, %mm1
+
+// CHECK: movd %edx, %mm1
+// CHECK: encoding: [0x0f,0x6e,0xca]
+movd %edx, %mm1
+
+// CHECK: movd %mm1, %r8
+// CHECK: encoding: [0x49,0x0f,0x7e,0xc8]
+movd %mm1, %r8
+
+// CHECK: movd %mm1, %r8d
+// CHECK: encoding: [0x41,0x0f,0x7e,0xc8]
+movd %mm1, %r8d
+
+// CHECK: movd %mm1, %rdx
+// CHECK: encoding: [0x48,0x0f,0x7e,0xca]
+movd %mm1, %rdx
+
+// CHECK: movd %mm1, %edx
+// CHECK: encoding: [0x0f,0x7e,0xca]
+movd %mm1, %edx
More information about the llvm-branch-commits
mailing list