Skip to content

Commit c45fbfd

Browse files
committed
[VectorCombine][X86] shuffle-of-binops.ll - adjust no matching operand test to use FDIV
Use of FDIV allows us to show a definite cost improvement with #88899
1 parent 143be6a commit c45fbfd

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -170,16 +170,16 @@ define <4 x i32> @shuf_mul_v4i32_yy_use2(<4 x i32> %x, <4 x i32> %y, <4 x i32> %
170170

171171
; negative test - must have matching operand
172172

173-
define <4 x float> @shuf_fadd_v4f32_no_common_op(<4 x float> %x, <4 x float> %y, <4 x float> %z, <4 x float> %w) {
174-
; CHECK-LABEL: define <4 x float> @shuf_fadd_v4f32_no_common_op(
173+
define <4 x float> @shuf_fdiv_v4f32_no_common_op(<4 x float> %x, <4 x float> %y, <4 x float> %z, <4 x float> %w) {
174+
; CHECK-LABEL: define <4 x float> @shuf_fdiv_v4f32_no_common_op(
175175
; CHECK-SAME: <4 x float> [[X:%.*]], <4 x float> [[Y:%.*]], <4 x float> [[Z:%.*]], <4 x float> [[W:%.*]]) #[[ATTR0]] {
176-
; CHECK-NEXT: [[B0:%.*]] = fadd <4 x float> [[X]], [[Y]]
177-
; CHECK-NEXT: [[B1:%.*]] = fadd <4 x float> [[Z]], [[W]]
176+
; CHECK-NEXT: [[B0:%.*]] = fdiv <4 x float> [[X]], [[Y]]
177+
; CHECK-NEXT: [[B1:%.*]] = fdiv <4 x float> [[Z]], [[W]]
178178
; CHECK-NEXT: [[R:%.*]] = shufflevector <4 x float> [[B0]], <4 x float> [[B1]], <4 x i32> <i32 1, i32 3, i32 5, i32 7>
179179
; CHECK-NEXT: ret <4 x float> [[R]]
180180
;
181-
%b0 = fadd <4 x float> %x, %y
182-
%b1 = fadd <4 x float> %z, %w
181+
%b0 = fdiv <4 x float> %x, %y
182+
%b1 = fdiv <4 x float> %z, %w
183183
%r = shufflevector <4 x float> %b0, <4 x float> %b1, <4 x i32> <i32 1, i32 3, i32 5, i32 7>
184184
ret <4 x float> %r
185185
}

0 commit comments

Comments
 (0)