summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/sse2.ll
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2014-05-12 13:12:08 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2014-05-12 13:12:08 +0000
commitb31a977c9c64ea6b051366fedc49a447347671b4 (patch)
tree0ed235b1744690ea50d243a1c1b5270e9dc1fffc /test/CodeGen/X86/sse2.ll
parentcdf5f98f6fea5609cbf59850899513df70675b28 (diff)
X86: Make sure that we have SSE4.1 before we generate insertps nodes.
PR19721. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@208552 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/sse2.ll')
-rw-r--r--test/CodeGen/X86/sse2.ll10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/CodeGen/X86/sse2.ll b/test/CodeGen/X86/sse2.ll
index 0a17eaca411..e8d3d6f19ed 100644
--- a/test/CodeGen/X86/sse2.ll
+++ b/test/CodeGen/X86/sse2.ll
@@ -229,3 +229,13 @@ define <2 x i64> @test_insert_64_zext(<2 x i64> %i) {
%1 = shufflevector <2 x i64> %i, <2 x i64> <i64 0, i64 undef>, <2 x i32> <i32 0, i32 2>
ret <2 x i64> %1
}
+
+define <4 x i32> @PR19721(<4 x i32> %i) {
+ %bc = bitcast <4 x i32> %i to i128
+ %insert = and i128 %bc, -4294967296
+ %bc2 = bitcast i128 %insert to <4 x i32>
+ ret <4 x i32> %bc2
+
+; CHECK-LABEL: PR19721
+; CHECK: punpckldq
+}