[llvm] r275413 - [X86][AVX] Added an additional vperm2f128 memory folding test
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 14 06:40:53 PDT 2016
Author: rksimon
Date: Thu Jul 14 08:40:53 2016
New Revision: 275413
URL: http://llvm.org/viewvc/llvm-project?rev=275413&view=rev
Log:
[X86][AVX] Added an additional vperm2f128 memory folding test
Modified:
llvm/trunk/test/CodeGen/X86/avx-vperm2x128.ll
Modified: llvm/trunk/test/CodeGen/X86/avx-vperm2x128.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/avx-vperm2x128.ll?rev=275413&r1=275412&r2=275413&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/avx-vperm2x128.ll (original)
+++ llvm/trunk/test/CodeGen/X86/avx-vperm2x128.ll Thu Jul 14 08:40:53 2016
@@ -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
More information about the llvm-commits
mailing list