summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/avx-splat.ll
diff options
context:
space:
mode:
authorBruno Cardoso Lopes <bruno.cardoso@gmail.com>2011-08-23 22:06:37 +0000
committerBruno Cardoso Lopes <bruno.cardoso@gmail.com>2011-08-23 22:06:37 +0000
commitd8b7dd52525e99b998544bbeecb56907587b25a9 (patch)
tree9aa9593244020ada937b01ceac13e5a19a868132 /test/CodeGen/X86/avx-splat.ll
parent4477d691ed9fa63f051986dcb98e358054c8281f (diff)
downloadllvm-d8b7dd52525e99b998544bbeecb56907587b25a9.tar.gz
llvm-d8b7dd52525e99b998544bbeecb56907587b25a9.tar.bz2
llvm-d8b7dd52525e99b998544bbeecb56907587b25a9.tar.xz
Fix a nasty bug where a v4i64 was being wrong emitted with 32-bit
permutations. Also tidy up some patterns and make them close to their instruction definition! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@138392 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/avx-splat.ll')
-rw-r--r--test/CodeGen/X86/avx-splat.ll6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/CodeGen/X86/avx-splat.ll b/test/CodeGen/X86/avx-splat.ll
index 38b2ff3b06..f8522c2695 100644
--- a/test/CodeGen/X86/avx-splat.ll
+++ b/test/CodeGen/X86/avx-splat.ll
@@ -21,8 +21,8 @@ entry:
}
; CHECK: vmovd
+; CHECK-NEXT: vmovlhps %xmm
; CHECK-NEXT: vinsertf128 $1
-; CHECK-NEXT: vpermilps $0
define <4 x i64> @funcC(i64 %q) nounwind uwtable readnone ssp {
entry:
%vecinit.i = insertelement <4 x i64> undef, i64 %q, i32 0
@@ -32,8 +32,8 @@ entry:
ret <4 x i64> %vecinit6.i
}
-; CHECK: vinsertf128 $1
-; CHECK-NEXT: vpermilps $0
+; CHECK: vshufpd $0
+; CHECK-NEXT: vinsertf128 $1
define <4 x double> @funcD(double %q) nounwind uwtable readnone ssp {
entry:
%vecinit.i = insertelement <4 x double> undef, double %q, i32 0