summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/2008-06-25-VecISelBug.ll
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2008-06-25 20:52:59 +0000
committerEvan Cheng <evan.cheng@apple.com>2008-06-25 20:52:59 +0000
commitab26227c8c9adce91a606a3691d4da08a9c8551c (patch)
tree701541c43568917524ac8ce65c7d11f29ac184d1 /test/CodeGen/X86/2008-06-25-VecISelBug.ll
parent041cde26eaf4ef6171ff1a44aeedd08d7a1cba6c (diff)
downloadllvm-ab26227c8c9adce91a606a3691d4da08a9c8551c.tar.gz
llvm-ab26227c8c9adce91a606a3691d4da08a9c8551c.tar.bz2
llvm-ab26227c8c9adce91a606a3691d4da08a9c8551c.tar.xz
- Fix a x86 vector isel bug: illegal transformation of a vector_shuffle into a
shift. - Add a readme entry for a missing vector_shuffle optimization that results in awful codegen. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52740 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/2008-06-25-VecISelBug.ll')
-rw-r--r--test/CodeGen/X86/2008-06-25-VecISelBug.ll9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/CodeGen/X86/2008-06-25-VecISelBug.ll b/test/CodeGen/X86/2008-06-25-VecISelBug.ll
new file mode 100644
index 0000000000..f369986fbc
--- /dev/null
+++ b/test/CodeGen/X86/2008-06-25-VecISelBug.ll
@@ -0,0 +1,9 @@
+; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 | not grep pslldq
+
+define void @t() nounwind {
+entry:
+ %tmp1 = shufflevector <4 x float> zeroinitializer, <4 x float> < float 0.000000e+00, float 1.000000e+00, float 0.000000e+00, float 1.000000e+00 >, <4 x i32> < i32 0, i32 1, i32 4, i32 5 >
+ %tmp2 = insertelement <4 x float> %tmp1, float 1.000000e+00, i32 3
+ store <4 x float> %tmp2, <4 x float>* null, align 16
+ unreachable
+}