summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-07-08 00:49:35 +0000
committerChris Lattner <sabre@nondot.org>2009-07-08 00:49:35 +0000
commita47d9669b71a8758fe1690cb9b5047b2e99e2621 (patch)
tree92e65ea279b22c27daf28adfe9b19d8a47f20c11
parentb2773e1adaee4a61b64ccbfa26c5ed9d8687d83b (diff)
downloadllvm-a47d9669b71a8758fe1690cb9b5047b2e99e2621.tar.gz
llvm-a47d9669b71a8758fe1690cb9b5047b2e99e2621.tar.bz2
llvm-a47d9669b71a8758fe1690cb9b5047b2e99e2621.tar.xz
eliminate the v[if]cmp versions of these tests, now that [if]cmp+sext works.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74980 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/CodeGen/X86/2008-07-23-VSetCC.ll26
-rw-r--r--test/CodeGen/X86/vec_compare.ll7
-rw-r--r--test/CodeGen/X86/vfcmp.ll10
3 files changed, 1 insertions, 42 deletions
diff --git a/test/CodeGen/X86/2008-07-23-VSetCC.ll b/test/CodeGen/X86/2008-07-23-VSetCC.ll
index c7b439f50c..5936a9bf4c 100644
--- a/test/CodeGen/X86/2008-07-23-VSetCC.ll
+++ b/test/CodeGen/X86/2008-07-23-VSetCC.ll
@@ -5,32 +5,6 @@ define void @entry(i32 %m_task_id, i32 %start_x, i32 %end_x) nounwind {
br i1 false, label %bb.nph, label %._crit_edge
bb.nph: ; preds = %bb.nph, %0
- vicmp sgt <4 x i32> zeroinitializer, < i32 -128, i32 -128, i32 -128, i32 -128 > ; <<4 x i32>>:1 [#uses=1]
- extractelement <4 x i32> %1, i32 3 ; <i32>:2 [#uses=1]
- lshr i32 %2, 31 ; <i32>:3 [#uses=1]
- trunc i32 %3 to i1 ; <i1>:4 [#uses=1]
- select i1 %4, i32 -1, i32 0 ; <i32>:5 [#uses=1]
- insertelement <4 x i32> zeroinitializer, i32 %5, i32 3 ; <<4 x i32>>:6 [#uses=1]
- and <4 x i32> zeroinitializer, %6 ; <<4 x i32>>:7 [#uses=1]
- bitcast <4 x i32> %7 to <4 x float> ; <<4 x float>>:8 [#uses=1]
- fmul <4 x float> zeroinitializer, %8 ; <<4 x float>>:9 [#uses=1]
- bitcast <4 x float> %9 to <4 x i32> ; <<4 x i32>>:10 [#uses=1]
- or <4 x i32> %10, zeroinitializer ; <<4 x i32>>:11 [#uses=1]
- bitcast <4 x i32> %11 to <4 x float> ; <<4 x float>>:12 [#uses=1]
- fmul <4 x float> %12, < float 1.000000e+02, float 1.000000e+02, float 1.000000e+02, float 1.000000e+02 > ; <<4 x float>>:13 [#uses=1]
- fsub <4 x float> %13, < float 1.000000e+02, float 1.000000e+02, float 1.000000e+02, float 1.000000e+02 > ; <<4 x float>>:14 [#uses=1]
- extractelement <4 x float> %14, i32 3 ; <float>:15 [#uses=1]
- call float @fmaxf( float 0.000000e+00, float %15 ) ; <float>:16 [#uses=0]
- br label %bb.nph
-
-._crit_edge: ; preds = %0
- ret void
-}
-
-define void @entry2(i32 %m_task_id, i32 %start_x, i32 %end_x) nounwind {
- br i1 false, label %bb.nph, label %._crit_edge
-
-bb.nph: ; preds = %bb.nph, %0
%X = icmp sgt <4 x i32> zeroinitializer, < i32 -128, i32 -128, i32 -128, i32 -128 > ; <<4 x i32>>:1 [#uses=1]
sext <4 x i1> %X to <4 x i32>
extractelement <4 x i32> %1, i32 3 ; <i32>:2 [#uses=1]
diff --git a/test/CodeGen/X86/vec_compare.ll b/test/CodeGen/X86/vec_compare.ll
index 74e34d0202..42a3c2a802 100644
--- a/test/CodeGen/X86/vec_compare.ll
+++ b/test/CodeGen/X86/vec_compare.ll
@@ -1,9 +1,4 @@
-; RUN: llvm-as < %s | llc -march=x86 -mcpu=yonah | grep pcmpgtd | count 2
-
-define <4 x i32> @test(<4 x i32> %A, <4 x i32> %B) nounwind {
- %C = vicmp sgt <4 x i32> %A, %B
- ret <4 x i32> %C
-}
+; RUN: llvm-as < %s | llc -march=x86 -mcpu=yonah | grep pcmpgtd
define <4 x i32> @test2(<4 x i32> %A, <4 x i32> %B) nounwind {
diff --git a/test/CodeGen/X86/vfcmp.ll b/test/CodeGen/X86/vfcmp.ll
index cfec174583..6179165a5d 100644
--- a/test/CodeGen/X86/vfcmp.ll
+++ b/test/CodeGen/X86/vfcmp.ll
@@ -1,16 +1,6 @@
; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2
; PR2620
-define void @t(i32 %m_task_id, i32 %start_x, i32 %end_x) nounwind {
- vfcmp olt <2 x double> zeroinitializer, zeroinitializer ; <<2 x i64>>:1 [#uses=1]
- extractelement <2 x i64> %1, i32 1 ; <i64>:2 [#uses=1]
- lshr i64 %2, 63 ; <i64>:3 [#uses=1]
- trunc i64 %3 to i1 ; <i1>:4 [#uses=1]
- zext i1 %4 to i8 ; <i8>:5 [#uses=1]
- insertelement <2 x i8> zeroinitializer, i8 %5, i32 1 ; <<2 x i8>>:6 [#uses=1]
- store <2 x i8> %6, <2 x i8>* null
- ret void
-}
define void @t2(i32 %m_task_id, i32 %start_x, i32 %end_x) nounwind {
%A = fcmp olt <2 x double> zeroinitializer, zeroinitializer ; <<2 x i64>>:1 [#uses=1]