summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/sse2.ll
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2011-01-24 03:42:46 +0000
committerChris Lattner <sabre@nondot.org>2011-01-24 03:42:46 +0000
commitccea167db53f52b2cda639cd184655b86dbf3952 (patch)
treec6f755580228f676dfca4f8c57c3662272faa8ae /test/CodeGen/X86/sse2.ll
parent850bdd2fcccfe40b7f8c4d0f694eb461bd975891 (diff)
downloadllvm-ccea167db53f52b2cda639cd184655b86dbf3952.tar.gz
llvm-ccea167db53f52b2cda639cd184655b86dbf3952.tar.bz2
llvm-ccea167db53f52b2cda639cd184655b86dbf3952.tar.xz
fix a missing shuffle pattern, PR9009. Patch by Artiom Myaskouvskey!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@124102 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/sse2.ll')
-rw-r--r--test/CodeGen/X86/sse2.ll9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/CodeGen/X86/sse2.ll b/test/CodeGen/X86/sse2.ll
index a9d718d2df..8fcfdff289 100644
--- a/test/CodeGen/X86/sse2.ll
+++ b/test/CodeGen/X86/sse2.ll
@@ -205,3 +205,12 @@ define <2 x double> @test16(<4 x double> * nocapture %srcA, <2 x double>* nocap
ret <2 x double> %i7
}
+; PR9009
+define fastcc void @test17() nounwind {
+entry:
+ %0 = insertelement <4 x i32> undef, i32 undef, i32 1
+ %1 = shufflevector <4 x i32> <i32 undef, i32 undef, i32 32768, i32 32768>, <4 x i32> %0, <4 x i32> <i32 4, i32 5, i32 2, i32 3>
+ %2 = bitcast <4 x i32> %1 to <4 x float>
+ store <4 x float> %2, <4 x float> * undef
+ ret void
+}