File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
llvm/test/Transforms/InstCombine Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1223,20 +1223,20 @@ define i8 @known_reduce_and(<2 x i8> %xx) {
1223
1223
; CHECK-NEXT: ret i8 1
1224
1224
;
1225
1225
%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 )
1227
1227
%r = and i8 %v , 1
1228
1228
ret i8 %r
1229
1229
}
1230
1230
1231
1231
define i8 @known_reduce_and_fail (<2 x i8 > %xx ) {
1232
1232
; CHECK-LABEL: @known_reduce_and_fail(
1233
1233
; 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]])
1235
1235
; CHECK-NEXT: [[R:%.*]] = and i8 [[V]], 2
1236
1236
; CHECK-NEXT: ret i8 [[R]]
1237
1237
;
1238
1238
%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 )
1240
1240
%r = and i8 %v , 2
1241
1241
ret i8 %r
1242
1242
}
You can’t perform that action at this time.
0 commit comments