Per Chris, fuse four trivial tests using grep (r102199) into one that uses FileCheck.
authorStuart Hastings <stuart@apple.com>
Fri, 23 Apr 2010 22:12:57 +0000 (22:12 +0000)
committerStuart Hastings <stuart@apple.com>
Fri, 23 Apr 2010 22:12:57 +0000 (22:12 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@102216 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGen/X86/2010-04-23-mmx-movdq2q.ll [new file with mode: 0644]
test/CodeGen/X86/mmx-movdq2q1.ll [deleted file]
test/CodeGen/X86/mmx-movdq2q2.ll [deleted file]
test/CodeGen/X86/mmx-movdq2q3.ll [deleted file]
test/CodeGen/X86/mmx-movdq2q4.ll [deleted file]

diff --git a/test/CodeGen/X86/2010-04-23-mmx-movdq2q.ll b/test/CodeGen/X86/2010-04-23-mmx-movdq2q.ll
new file mode 100644 (file)
index 0000000..4cd3be3
--- /dev/null
@@ -0,0 +1,45 @@
+; RUN: llc < %s -mtriple=x86_64-apple-darwin -mattr=+mmx,+sse2 | FileCheck %s
+
+define void @ti8(double %a, double %b) nounwind {
+entry:
+        %tmp1 = bitcast double %a to <8 x i8>
+; CHECK: movdq2q
+        %tmp2 = bitcast double %b to <8 x i8>
+; CHECK: movdq2q
+        %tmp3 = add <8 x i8> %tmp1, %tmp2
+        store <8 x i8> %tmp3, <8 x i8>* null
+        ret void
+}
+
+define void @ti16(double %a, double %b) nounwind {
+entry:
+        %tmp1 = bitcast double %a to <4 x i16>
+; CHECK: movdq2q
+        %tmp2 = bitcast double %b to <4 x i16>
+; CHECK: movdq2q
+        %tmp3 = add <4 x i16> %tmp1, %tmp2
+        store <4 x i16> %tmp3, <4 x i16>* null
+        ret void
+}
+
+define void @ti32(double %a, double %b) nounwind {
+entry:
+        %tmp1 = bitcast double %a to <2 x i32>
+; CHECK: movdq2q
+        %tmp2 = bitcast double %b to <2 x i32>
+; CHECK: movdq2q
+        %tmp3 = add <2 x i32> %tmp1, %tmp2
+        store <2 x i32> %tmp3, <2 x i32>* null
+        ret void
+}
+
+define void @ti64(double %a, double %b) nounwind {
+entry:
+        %tmp1 = bitcast double %a to <1 x i64>
+; CHECK: movdq2q
+        %tmp2 = bitcast double %b to <1 x i64>
+; CHECK: movdq2q
+        %tmp3 = add <1 x i64> %tmp1, %tmp2
+        store <1 x i64> %tmp3, <1 x i64>* null
+        ret void
+}
diff --git a/test/CodeGen/X86/mmx-movdq2q1.ll b/test/CodeGen/X86/mmx-movdq2q1.ll
deleted file mode 100644 (file)
index 6340502..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-; RUN: llc < %s -mtriple=x86_64-apple-darwin -mattr=+mmx,+sse2 | grep movdq2q | count 2
-define void @t2(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
-        store <2 x i32> %tmp3, <2 x i32>* null
-        ret void
-}
diff --git a/test/CodeGen/X86/mmx-movdq2q2.ll b/test/CodeGen/X86/mmx-movdq2q2.ll
deleted file mode 100644 (file)
index f12fdb2..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-; RUN: llc < %s -mtriple=x86_64-apple-darwin -mattr=+mmx,+sse2 | grep movdq2q | count 2
-define void @t2(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
-        store <4 x i16> %tmp3, <4 x i16>* null
-        ret void
-}
diff --git a/test/CodeGen/X86/mmx-movdq2q3.ll b/test/CodeGen/X86/mmx-movdq2q3.ll
deleted file mode 100644 (file)
index c3cf00c..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-; RUN: llc < %s -mtriple=x86_64-apple-darwin -mattr=+mmx,+sse2 | grep movdq2q | count 2
-define void @t2(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
-        store <8 x i8> %tmp3, <8 x i8>* null
-        ret void
-}
diff --git a/test/CodeGen/X86/mmx-movdq2q4.ll b/test/CodeGen/X86/mmx-movdq2q4.ll
deleted file mode 100644 (file)
index b23c730..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-; RUN: llc < %s -mtriple=x86_64-apple-darwin -mattr=+mmx,+sse2 | grep movdq2q | count 2
-define void @t2(double %a, double %b) nounwind {
-entry:
-        %tmp1 = bitcast double %a to <1 x i64>
-        %tmp2 = bitcast double %b to <1 x i64>
-        %tmp3 = add <1 x i64> %tmp1, %tmp2
-        store <1 x i64> %tmp3, <1 x i64>* null
-        ret void
-}