diff options
Diffstat (limited to 'test/CodeGen/X86/sse2.ll')
-rw-r--r-- | test/CodeGen/X86/sse2.ll | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/CodeGen/X86/sse2.ll b/test/CodeGen/X86/sse2.ll index 628dba0..e8d3d6f 100644 --- a/test/CodeGen/X86/sse2.ll +++ b/test/CodeGen/X86/sse2.ll @@ -221,3 +221,21 @@ entry: %double2float.i = fptrunc <4 x double> %0 to <4 x float> ret <4 x float> %double2float.i } + +define <2 x i64> @test_insert_64_zext(<2 x i64> %i) { +; CHECK-LABEL: test_insert_64_zext +; CHECK-NOT: xor +; CHECK: movq + %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 +} |