You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
definei8@nonzero_reduce_xor_vscale_even(<vscale x 2 x i8> %xx) {
1336
1324
; CHECK-LABEL: @nonzero_reduce_xor_vscale_even(
1337
-
; CHECK-NEXT: [[X:%.*]] = or <vscale x 2 x i8> [[XX:%.*]], shufflevector (<vscale x 2 x i8> insertelement (<vscale x 2 x i8> poison, i8 1, i64 0), <vscale x 2 x i8> poison, <vscale x 2 x i32> zeroinitializer)
1338
-
; CHECK-NEXT: [[V:%.*]] = call i8 @llvm.vector.reduce.xor.nxv2i8(<vscale x 2 x i8> [[X]])
1339
-
; CHECK-NEXT: [[R:%.*]] = and i8 [[V]], 1
1340
-
; CHECK-NEXT: ret i8 [[R]]
1325
+
; CHECK-NEXT: ret i8 0
1341
1326
;
1342
1327
%one = insertelement <vscale x 2 x i8> poison, i81, i640
1343
1328
%ones = shufflevector <vscale x 2 x i8> %one, <vscale x 2 x i8> poison, <vscale x 2 x i32> zeroinitializer
@@ -1349,10 +1334,7 @@ define i8 @nonzero_reduce_xor_vscale_even(<vscale x 2 x i8> %xx) {
1349
1334
1350
1335
definei8@nonzero_reduce_xor_vscale_odd(<vscale x 3 x i8> %xx) {
1351
1336
; CHECK-LABEL: @nonzero_reduce_xor_vscale_odd(
1352
-
; CHECK-NEXT: [[X:%.*]] = or <vscale x 3 x i8> [[XX:%.*]], shufflevector (<vscale x 3 x i8> insertelement (<vscale x 3 x i8> poison, i8 1, i64 0), <vscale x 3 x i8> poison, <vscale x 3 x i32> zeroinitializer)
1353
-
; CHECK-NEXT: [[V:%.*]] = call i8 @llvm.vector.reduce.xor.nxv3i8(<vscale x 3 x i8> [[X]])
1354
-
; CHECK-NEXT: [[R:%.*]] = and i8 [[V]], 1
1355
-
; CHECK-NEXT: ret i8 [[R]]
1337
+
; CHECK-NEXT: ret i8 1
1356
1338
;
1357
1339
%one = insertelement <vscale x 3 x i8> poison, i81, i640
1358
1340
%ones = shufflevector <vscale x 3 x i8> %one, <vscale x 3 x i8> poison, <vscale x 3 x i32> zeroinitializer
0 commit comments