summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Pilgrim <llvm-dev@redking.me.uk>2016-07-14 13:40:53 +0000
committerSimon Pilgrim <llvm-dev@redking.me.uk>2016-07-14 13:40:53 +0000
commitbed37ccd547cc47ff4c87e9e36f5ae8940dd8e17 (patch)
tree79f3d75e5dcc4414c1f39d30771ad97f60324681
parent534e3240e8f923ca19a8c18650def62d6adde662 (diff)
downloadbcm5719-llvm-bed37ccd547cc47ff4c87e9e36f5ae8940dd8e17.tar.gz
bcm5719-llvm-bed37ccd547cc47ff4c87e9e36f5ae8940dd8e17.zip
[X86][AVX] Added an additional vperm2f128 memory folding test
llvm-svn: 275413
-rw-r--r--llvm/test/CodeGen/X86/avx-vperm2x128.ll12
1 files changed, 12 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/X86/avx-vperm2x128.ll b/llvm/test/CodeGen/X86/avx-vperm2x128.ll
index 7989cd17159..740fd77d82e 100644
--- a/llvm/test/CodeGen/X86/avx-vperm2x128.ll
+++ b/llvm/test/CodeGen/X86/avx-vperm2x128.ll
@@ -77,6 +77,18 @@ entry:
ret <8 x float> %shuffle
}
+define <8 x float> @shuffle_v8f32_45674567_mem(<8 x float>* %pa, <8 x float>* %pb) nounwind uwtable readnone ssp {
+; ALL-LABEL: shuffle_v8f32_45674567_mem:
+; ALL: ## BB#0: ## %entry
+; ALL-NEXT: vperm2f128 {{.*#+}} ymm0 = mem[2,3,2,3]
+; ALL-NEXT: retq
+entry:
+ %a = load <8 x float>, <8 x float>* %pa
+ %b = load <8 x float>, <8 x float>* %pb
+ %shuffle = shufflevector <8 x float> %a, <8 x float> %b, <8 x i32> <i32 4, i32 5, i32 6, i32 7, i32 4, i32 5, i32 6, i32 7>
+ ret <8 x float> %shuffle
+}
+
define <32 x i8> @shuffle_v32i8_2323(<32 x i8> %a, <32 x i8> %b) nounwind uwtable readnone ssp {
; ALL-LABEL: shuffle_v32i8_2323:
; ALL: ## BB#0: ## %entry
OpenPOWER on IntegriCloud