diff options
Diffstat (limited to 'llvm/test/CodeGen')
-rw-r--r-- | llvm/test/CodeGen/X86/vec_clear.ll | 6 | ||||
-rw-r--r-- | llvm/test/CodeGen/X86/vec_shuffle-10.ll | 10 | ||||
-rw-r--r-- | llvm/test/CodeGen/X86/vec_shuffle-16.ll | 12 | ||||
-rw-r--r-- | llvm/test/CodeGen/X86/vec_shuffle-30.ll | 7 | ||||
-rw-r--r-- | llvm/test/CodeGen/X86/vec_shuffle-31.ll | 2 |
5 files changed, 18 insertions, 19 deletions
diff --git a/llvm/test/CodeGen/X86/vec_clear.ll b/llvm/test/CodeGen/X86/vec_clear.ll index 514de953efe..c119a94f74f 100644 --- a/llvm/test/CodeGen/X86/vec_clear.ll +++ b/llvm/test/CodeGen/X86/vec_clear.ll @@ -1,7 +1,5 @@ -; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 -mtriple=i386-apple-darwin -o %t -f -; RUN: not grep and %t -; RUN: not grep psrldq %t -; RUN: grep xorps %t +; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 -mtriple=i386-apple-darwin | not grep and +; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 -mtriple=i386-apple-darwin | grep psrldq define <4 x float> @test(<4 x float>* %v1) nounwind { %tmp = load <4 x float>* %v1 ; <<4 x float>> [#uses=1] diff --git a/llvm/test/CodeGen/X86/vec_shuffle-10.ll b/llvm/test/CodeGen/X86/vec_shuffle-10.ll index 297469d9202..45789b04bb6 100644 --- a/llvm/test/CodeGen/X86/vec_shuffle-10.ll +++ b/llvm/test/CodeGen/X86/vec_shuffle-10.ll @@ -1,7 +1,9 @@ -; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 -o %t -f -; RUN: grep unpcklps %t | count 1 -; RUN: grep pshufd %t | count 1 -; RUN: not grep {sub.*esp} %t +; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 | \ +; RUN: grep unpcklps | count 1 +; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 | \ +; RUN: grep unpckhps | count 1 +; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 | \ +; RUN: not grep {sub.*esp} define void @test(<4 x float>* %res, <4 x float>* %A, <4 x float>* %B) { %tmp = load <4 x float>* %B ; <<4 x float>> [#uses=2] diff --git a/llvm/test/CodeGen/X86/vec_shuffle-16.ll b/llvm/test/CodeGen/X86/vec_shuffle-16.ll index b3a5b769e67..79de903536d 100644 --- a/llvm/test/CodeGen/X86/vec_shuffle-16.ll +++ b/llvm/test/CodeGen/X86/vec_shuffle-16.ll @@ -1,10 +1,8 @@ -; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse,-sse2 -mtriple=i386-apple-darwin -o %t -f -; RUN: grep shufps %t | count 4 -; RUN: grep movaps %t | count 2 -; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 -mtriple=i386-apple-darwin -o %t -f -; RUN: grep pshufd %t | count 4 -; RUN: not grep shufps %t -; RUN: not grep mov %t +; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse,-sse2 | grep shufps | count 4 +; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse,-sse2 -mtriple=i386-apple-darwin | grep mov | count 2 +; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 | grep pshufd | count 4 +; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 | not grep shufps +; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 -mtriple=i386-apple-darwin | not grep mov define <4 x float> @t1(<4 x float> %a, <4 x float> %b) nounwind { %tmp1 = shufflevector <4 x float> %b, <4 x float> undef, <4 x i32> zeroinitializer diff --git a/llvm/test/CodeGen/X86/vec_shuffle-30.ll b/llvm/test/CodeGen/X86/vec_shuffle-30.ll index 50a3df8f0b2..38f02fe238c 100644 --- a/llvm/test/CodeGen/X86/vec_shuffle-30.ll +++ b/llvm/test/CodeGen/X86/vec_shuffle-30.ll @@ -1,7 +1,8 @@ ; RUN: llvm-as < %s | llc -march=x86 -mattr=sse41 -disable-mmx -o %t -f ; RUN: grep pshufhw %t | grep 161 | count 1 -; RUN: grep shufps %t | count 1 -; RUN: not grep pslldq %t +; RUN: grep pslldq %t | count 1 + + ; Test case when creating pshufhw, we incorrectly set the higher order bit ; for an undef, @@ -19,4 +20,4 @@ entry: %0 = shufflevector <4 x i32> %in, <4 x i32> <i32 0, i32 0, i32 0, i32 0>, <4 x i32> < i32 undef, i32 5, i32 undef, i32 2> store <4 x i32> %0, <4 x i32>* %dest ret void -} +}
\ No newline at end of file diff --git a/llvm/test/CodeGen/X86/vec_shuffle-31.ll b/llvm/test/CodeGen/X86/vec_shuffle-31.ll index efcd0300e35..0a9dc1fa7ba 100644 --- a/llvm/test/CodeGen/X86/vec_shuffle-31.ll +++ b/llvm/test/CodeGen/X86/vec_shuffle-31.ll @@ -1,6 +1,6 @@ ; RUN: llvm-as < %s | llc -march=x86 -mcpu=yonah -o %t -f ; RUN: grep pextrw %t | count 1 -; RUN: grep movlhps %t | count 1 +; RUN: grep punpcklqdq %t | count 1 ; RUN: grep pshufhw %t | count 1 ; RUN: grep pinsrw %t | count 1 ; RUN: llvm-as < %s | llc -march=x86 -mcpu=core2 -o %t -f |