diff options
author | Evan Cheng <evan.cheng@apple.com> | 2006-10-12 01:42:03 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2006-10-12 01:42:03 +0000 |
commit | 32159c13f988505d240603145e4c21181041d3ba (patch) | |
tree | f239ef23f1e24db5fbd5c8564d1cfe4e8f7b10da | |
parent | 4fe4f254ce677e49448ab22cf83a25729e5b9634 (diff) | |
download | external_llvm-32159c13f988505d240603145e4c21181041d3ba.zip external_llvm-32159c13f988505d240603145e4c21181041d3ba.tar.gz external_llvm-32159c13f988505d240603145e4c21181041d3ba.tar.bz2 |
Update tests.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30895 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/CodeGen/X86/2006-04-27-ISelFoldingBug.ll | 3 | ||||
-rw-r--r-- | test/CodeGen/X86/compare_folding.llx | 5 | ||||
-rw-r--r-- | test/CodeGen/X86/scalar_sse_minmax.ll | 9 |
3 files changed, 11 insertions, 6 deletions
diff --git a/test/CodeGen/X86/2006-04-27-ISelFoldingBug.ll b/test/CodeGen/X86/2006-04-27-ISelFoldingBug.ll index 66ad1b1..2d4e94f 100644 --- a/test/CodeGen/X86/2006-04-27-ISelFoldingBug.ll +++ b/test/CodeGen/X86/2006-04-27-ISelFoldingBug.ll @@ -1,4 +1,5 @@ -; RUN: llvm-as < %s | llc -march=x86 -mtriple=i686-apple-darwin8.6.1 -relocation-model=static | grep 'movl _last' | wc -l | grep 2 +; RUN: llvm-as < %s | llc -march=x86 -mtriple=i686-apple-darwin8 -relocation-model=static | grep 'movl _last' | wc -l | grep 1 && +; RUN: llvm-as < %s | llc -march=x86 -mtriple=i686-apple-darwin8 -relocation-model=static | grep 'cmpl.*_last' | wc -l | grep 1 %block = external global ubyte* ; <ubyte**> [#uses=1] %last = external global int ; <int*> [#uses=3] diff --git a/test/CodeGen/X86/compare_folding.llx b/test/CodeGen/X86/compare_folding.llx index 2d003f0..6a91bec 100644 --- a/test/CodeGen/X86/compare_folding.llx +++ b/test/CodeGen/X86/compare_folding.llx @@ -1,6 +1,5 @@ -; RUN: llvm-as < %s | llc -march=x86 | grep com | wc -l > %t2 -; RUN: grep 'COM =' %s | grep -v grep | wc -l > %t1 -; RUN: diff %t1 %t2 +; RUN: llvm-as < %s | llc -march=x86 | grep movsd | wc -l | grep 1 && +; RUN: llvm-as < %s | llc -march=x86 | grep ucomisd declare bool %llvm.isunordered(double,double) bool %test1(double %X, double %Y) { ;; Returns isunordered(X,Y) diff --git a/test/CodeGen/X86/scalar_sse_minmax.ll b/test/CodeGen/X86/scalar_sse_minmax.ll index b2217f9..6a464e3 100644 --- a/test/CodeGen/X86/scalar_sse_minmax.ll +++ b/test/CodeGen/X86/scalar_sse_minmax.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse1,+sse2 | grep mins | wc -l | grep 2 && +; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse1,+sse2 | grep mins | wc -l | grep 3 && ; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse1,+sse2 | grep maxs | wc -l | grep 2 declare bool %llvm.isunordered.f64( double %x, double %y ) @@ -33,5 +33,10 @@ double %max2(double %x, double %y) { ret double %retval } +<4 x float> %min3(float %tmp37) { + %tmp375 = insertelement <4 x float> undef, float %tmp37, uint 0 + %tmp48 = tail call <4 x float> %llvm.x86.sse.min.ss( <4 x float> %tmp375, <4 x float> < float 6.553500e+04, float undef, float undef, float undef > ) + ret <4 x float> %tmp48 +} - +declare <4 x float> %llvm.x86.sse.min.ss(<4 x float>, <4 x float>) |