aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/X86/vec_shuffle-8.ll
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2006-09-08 01:54:32 +0000
committerEvan Cheng <evan.cheng@apple.com>2006-09-08 01:54:32 +0000
commite119691885ba1be5e372078c8d9654fb01c16b7f (patch)
treee0ee61ae398ef71161df6f843099646f063fce0e /test/CodeGen/X86/vec_shuffle-8.ll
parent8cf723d8ebaddbf02ab176f41e6b51981c4d7f85 (diff)
downloadexternal_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.ll9
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
+}