File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed
llvm/test/Transforms/InstCombine Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -89,6 +89,9 @@ define i8 @extractelement_bitcast_insert_extra_use_bitcast(<vscale x 2 x i32> %a
8989 ret i8 %r
9090}
9191
92+ ; while it may be that the extract is out-of-bounds, any valid index
93+ ; is going to yield %v (because the mask is all-zeros).
94+
9295define i32 @extractelement_shuffle_maybe_out_of_range (i32 %v ) {
9396; CHECK-LABEL: @extractelement_shuffle_maybe_out_of_range(
9497; CHECK-NEXT: ret i32 [[V:%.*]]
Original file line number Diff line number Diff line change @@ -53,6 +53,9 @@ define i8 @extractelement_bitcast_useless_insert(<vscale x 2 x i32> %a, i32 %x)
5353 ret i8 %r
5454}
5555
56+ ; while in these tests it may be that the extract is out-of-bounds,
57+ ; any valid index is going to yield %v (because the mask is all-zeros).
58+
5659define i32 @extractelement_shuffle_maybe_out_of_range (i32 %v ) {
5760; CHECK-LABEL: @extractelement_shuffle_maybe_out_of_range(
5861; CHECK-NEXT: ret i32 [[V:%.*]]
You can’t perform that action at this time.
0 commit comments