diff options
author | Evan Cheng <evan.cheng@apple.com> | 2006-09-08 01:54:32 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2006-09-08 01:54:32 +0000 |
commit | e119691885ba1be5e372078c8d9654fb01c16b7f (patch) | |
tree | e0ee61ae398ef71161df6f843099646f063fce0e /test/CodeGen/X86/vec_shuffle-8.ll | |
parent | 8cf723d8ebaddbf02ab176f41e6b51981c4d7f85 (diff) | |
download | external_llvm-e119691885ba1be5e372078c8d9654fb01c16b7f.zip external_llvm-e119691885ba1be5e372078c8d9654fb01c16b7f.tar.gz external_llvm-e119691885ba1be5e372078c8d9654fb01c16b7f.tar.bz2 |
Add a new test case for 'undef' shuffles.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30172 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/vec_shuffle-8.ll')
-rw-r--r-- | test/CodeGen/X86/vec_shuffle-8.ll | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/CodeGen/X86/vec_shuffle-8.ll b/test/CodeGen/X86/vec_shuffle-8.ll new file mode 100644 index 0000000..449a3ab --- /dev/null +++ b/test/CodeGen/X86/vec_shuffle-8.ll @@ -0,0 +1,9 @@ +; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 && +; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 | not grep shufps + +void %test(<4 x float>* %res, <4 x float>* %A) { + %tmp1 = load <4 x float>* %A + %tmp2 = shufflevector <4 x float> %tmp1, <4 x float> undef, <4 x uint> < uint 0, uint 5, uint 6, uint 7 > + store <4 x float> %tmp2, <4 x float>* %res + ret void +} |