diff options
author | Tanya Lattner <tonic@nondot.org> | 2008-02-21 07:42:26 +0000 |
---|---|---|
committer | Tanya Lattner <tonic@nondot.org> | 2008-02-21 07:42:26 +0000 |
commit | 33eefffb2b25b5f4a313f08fa7c57ddfcbccf36e (patch) | |
tree | c8a69f1be3db80d136ec9dcc8e41d9d5affd35ad /test/CodeGen/X86/vec_clear.ll | |
parent | 7c1687c196e8dc89a4722e0463965f0b0f5f399c (diff) | |
download | llvm-33eefffb2b25b5f4a313f08fa7c57ddfcbccf36e.tar.gz llvm-33eefffb2b25b5f4a313f08fa7c57ddfcbccf36e.tar.bz2 llvm-33eefffb2b25b5f4a313f08fa7c57ddfcbccf36e.tar.xz |
Remove llvm-upgrade and update tests.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47432 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/vec_clear.ll')
-rw-r--r-- | test/CodeGen/X86/vec_clear.ll | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/test/CodeGen/X86/vec_clear.ll b/test/CodeGen/X86/vec_clear.ll index 8289b6be02..383c0db23b 100644 --- a/test/CodeGen/X86/vec_clear.ll +++ b/test/CodeGen/X86/vec_clear.ll @@ -1,8 +1,10 @@ -; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -mattr=+sse2 | not grep and -<4 x float> %test(<4 x float>* %v1) { - %tmp = load <4 x float>* %v1 - %tmp15 = cast <4 x float> %tmp to <2 x long> - %tmp24 = and <2 x long> %tmp15, cast (<4 x int> < int 0, int 0, int -1, int -1 > to <2 x long>) - %tmp31 = cast <2 x long> %tmp24 to <4 x float> - ret <4 x float> %tmp31 +; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 | not grep and + +define <4 x float> @test(<4 x float>* %v1) { + %tmp = load <4 x float>* %v1 ; <<4 x float>> [#uses=1] + %tmp15 = bitcast <4 x float> %tmp to <2 x i64> ; <<2 x i64>> [#uses=1] + %tmp24 = and <2 x i64> %tmp15, bitcast (<4 x i32> < i32 0, i32 0, i32 -1, i32 -1 > to <2 x i64>) ; <<2 x i64>> [#uses=1] + %tmp31 = bitcast <2 x i64> %tmp24 to <4 x float> ; <<4 x float>> [#uses=1] + ret <4 x float> %tmp31 } + |