From: Simon Pilgrim Date: Sat, 22 Oct 2022 19:12:32 +0000 (+0100) Subject: [X86] Add test coverage for shuffle with freeze X-Git-Tag: upstream/17.0.6~29807 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6a28fa35302cf58e26c943b0a27e18782523abf2;p=platform%2Fupstream%2Fllvm.git [X86] Add test coverage for shuffle with freeze --- diff --git a/llvm/test/CodeGen/X86/freeze-vector.ll b/llvm/test/CodeGen/X86/freeze-vector.ll index af34e56..c308059 100644 --- a/llvm/test/CodeGen/X86/freeze-vector.ll +++ b/llvm/test/CodeGen/X86/freeze-vector.ll @@ -12,3 +12,15 @@ define <4 x i32> @freeze_insert_subvector(<8 x i32> %a0) nounwind { %z = shufflevector <8 x i32> %y, <8 x i32> poison, <4 x i32> ret <4 x i32> %z } + +define <4 x i32> @freeze_shufflevector(<4 x i32> %a0) nounwind { +; CHECK-LABEL: freeze_shufflevector: +; CHECK: # %bb.0: +; CHECK-NEXT: vpermilps {{.*#+}} xmm0 = xmm0[3,2,1,0] +; CHECK-NEXT: vpermilps {{.*#+}} xmm0 = xmm0[3,2,1,0] +; CHECK-NEXT: ret{{[l|q]}} + %x = shufflevector <4 x i32> %a0, <4 x i32> poison, <4 x i32> + %y = freeze <4 x i32> %x + %z = shufflevector <4 x i32> %y, <4 x i32> poison, <4 x i32> + ret <4 x i32> %z +}