summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/2010-04-23-mmx-movdq2q.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/X86/2010-04-23-mmx-movdq2q.ll')
-rw-r--r--test/CodeGen/X86/2010-04-23-mmx-movdq2q.ll12
1 files changed, 9 insertions, 3 deletions
diff --git a/test/CodeGen/X86/2010-04-23-mmx-movdq2q.ll b/test/CodeGen/X86/2010-04-23-mmx-movdq2q.ll
index 69787c78cf..5372bc5227 100644
--- a/test/CodeGen/X86/2010-04-23-mmx-movdq2q.ll
+++ b/test/CodeGen/X86/2010-04-23-mmx-movdq2q.ll
@@ -1,32 +1,35 @@
; RUN: llc < %s -mtriple=x86_64-apple-darwin -mattr=+mmx,+sse2 | FileCheck %s
; There are no MMX operations here, so we use XMM or i64.
+; CHECK: ti8
define void @ti8(double %a, double %b) nounwind {
entry:
%tmp1 = bitcast double %a to <8 x i8>
%tmp2 = bitcast double %b to <8 x i8>
%tmp3 = add <8 x i8> %tmp1, %tmp2
-; CHECK: paddb %xmm1, %xmm0
+; CHECK: paddw
store <8 x i8> %tmp3, <8 x i8>* null
ret void
}
+; CHECK: ti16
define void @ti16(double %a, double %b) nounwind {
entry:
%tmp1 = bitcast double %a to <4 x i16>
%tmp2 = bitcast double %b to <4 x i16>
%tmp3 = add <4 x i16> %tmp1, %tmp2
-; CHECK: paddw %xmm1, %xmm0
+; CHECK: paddd
store <4 x i16> %tmp3, <4 x i16>* null
ret void
}
+; CHECK: ti32
define void @ti32(double %a, double %b) nounwind {
entry:
%tmp1 = bitcast double %a to <2 x i32>
%tmp2 = bitcast double %b to <2 x i32>
%tmp3 = add <2 x i32> %tmp1, %tmp2
-; CHECK: paddd %xmm1, %xmm0
+; CHECK: paddq
store <2 x i32> %tmp3, <2 x i32>* null
ret void
}
@@ -55,6 +58,7 @@ entry:
ret void
}
+; CHECK: ti16a
define void @ti16a(double %a, double %b) nounwind {
entry:
%tmp1 = bitcast double %a to x86_mmx
@@ -66,6 +70,7 @@ entry:
ret void
}
+; CHECK: ti32a
define void @ti32a(double %a, double %b) nounwind {
entry:
%tmp1 = bitcast double %a to x86_mmx
@@ -77,6 +82,7 @@ entry:
ret void
}
+; CHECK: ti64a
define void @ti64a(double %a, double %b) nounwind {
entry:
%tmp1 = bitcast double %a to x86_mmx