Skip to content

Commit 9ab016f

Browse files
committed
[VectorCombine] Add test coverage for #86068
1 parent e69d8b8 commit 9ab016f

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

llvm/test/Transforms/VectorCombine/X86/shuffle-of-shuffles.ll

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,3 +63,15 @@ define <4 x double> @blend_broadcasts_v4f64(ptr %p0, ptr %p1) {
6363
%blend = shufflevector <4 x double> %bcst0, <4 x double> %bcst1, <4 x i32> <i32 0, i32 5, i32 6, i32 3>
6464
ret <4 x double> %blend
6565
}
66+
67+
define <2 x float> @PR86068(<2 x float> %a0, <2 x float> %a1) {
68+
; CHECK-LABEL: define <2 x float> @PR86068(
69+
; CHECK-SAME: <2 x float> [[A0:%.*]], <2 x float> [[A1:%.*]]) #[[ATTR0]] {
70+
; CHECK-NEXT: [[S1:%.*]] = shufflevector <2 x float> [[A1]], <2 x float> poison, <2 x i32> <i32 1, i32 poison>
71+
; CHECK-NEXT: [[S2:%.*]] = shufflevector <2 x float> [[S1]], <2 x float> [[A0]], <2 x i32> <i32 0, i32 3>
72+
; CHECK-NEXT: ret <2 x float> [[S2]]
73+
;
74+
%s1 = shufflevector <2 x float> %a1, <2 x float> poison, <2 x i32> <i32 1, i32 poison>
75+
%s2 = shufflevector <2 x float> %s1, <2 x float> %a0, <2 x i32> <i32 0, i32 3>
76+
ret <2 x float> %s2
77+
}

0 commit comments

Comments
 (0)