Skip to content

Commit edb711d

Browse files
committed
[InstCombine] Update vector_reduce_and tests to actually use llvm.vector.reduce.and; NFC
1 parent 481bd5d commit edb711d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

llvm/test/Transforms/InstCombine/known-bits.ll

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1223,20 +1223,20 @@ define i8 @known_reduce_and(<2 x i8> %xx) {
12231223
; CHECK-NEXT: ret i8 1
12241224
;
12251225
%x = or <2 x i8> %xx, <i8 5, i8 3>
1226-
%v = call i8 @llvm.vector.reduce.or(<2 x i8> %x)
1226+
%v = call i8 @llvm.vector.reduce.and(<2 x i8> %x)
12271227
%r = and i8 %v, 1
12281228
ret i8 %r
12291229
}
12301230

12311231
define i8 @known_reduce_and_fail(<2 x i8> %xx) {
12321232
; CHECK-LABEL: @known_reduce_and_fail(
12331233
; CHECK-NEXT: [[X:%.*]] = or <2 x i8> [[XX:%.*]], <i8 5, i8 3>
1234-
; CHECK-NEXT: [[V:%.*]] = call i8 @llvm.vector.reduce.or.v2i8(<2 x i8> [[X]])
1234+
; CHECK-NEXT: [[V:%.*]] = call i8 @llvm.vector.reduce.and.v2i8(<2 x i8> [[X]])
12351235
; CHECK-NEXT: [[R:%.*]] = and i8 [[V]], 2
12361236
; CHECK-NEXT: ret i8 [[R]]
12371237
;
12381238
%x = or <2 x i8> %xx, <i8 5, i8 3>
1239-
%v = call i8 @llvm.vector.reduce.or(<2 x i8> %x)
1239+
%v = call i8 @llvm.vector.reduce.and(<2 x i8> %x)
12401240
%r = and i8 %v, 2
12411241
ret i8 %r
12421242
}

0 commit comments

Comments
 (0)