aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/X86
diff options
context:
space:
mode:
authorBruno Cardoso Lopes <bruno.cardoso@gmail.com>2011-09-14 02:36:14 +0000
committerBruno Cardoso Lopes <bruno.cardoso@gmail.com>2011-09-14 02:36:14 +0000
commit5ca0d149158eaa8e30cbd00efa0024149b029bb0 (patch)
tree5f4de3840957776b97e44c7192c2189688a2e964 /test/CodeGen/X86
parent553f93396367fd1e1372d41c02583b2dc060947f (diff)
downloadexternal_llvm-5ca0d149158eaa8e30cbd00efa0024149b029bb0.zip
external_llvm-5ca0d149158eaa8e30cbd00efa0024149b029bb0.tar.gz
external_llvm-5ca0d149158eaa8e30cbd00efa0024149b029bb0.tar.bz2
Vector shuffle mask <i32 4, i32 5, i32 2, i32 3> should yield "movsd", not "movss".
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@139686 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86')
-rw-r--r--test/CodeGen/X86/vec_shuffle-38.ll14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/CodeGen/X86/vec_shuffle-38.ll b/test/CodeGen/X86/vec_shuffle-38.ll
index 978f59e..69a2ede 100644
--- a/test/CodeGen/X86/vec_shuffle-38.ll
+++ b/test/CodeGen/X86/vec_shuffle-38.ll
@@ -43,3 +43,17 @@ entry:
%shuffle = shufflevector <4 x float> %vecin1, <4 x float> %vecin2, <4 x i32> <i32 0, i32 1, i32 4, i32 5>
ret <4 x float> %shuffle
}
+
+; rdar://10119696
+; CHECK: f
+define <4 x float> @f(<4 x float> %x, double* nocapture %y) nounwind uwtable readonly ssp {
+entry:
+ ; CHECK: movsd (%
+ ; CHECK-NEXT: movsd %xmm
+ %u110.i = load double* %y, align 1
+ %tmp8.i = insertelement <2 x double> undef, double %u110.i, i32 0
+ %tmp9.i = bitcast <2 x double> %tmp8.i to <4 x float>
+ %shuffle.i = shufflevector <4 x float> %x, <4 x float> %tmp9.i, <4 x i32> <i32 4, i32 5, i32 2, i32 3>
+ ret <4 x float> %shuffle.i
+}
+