Skip to content

Commit fc520f8

Browse files
[InstCombine] Precommit tests for PR75745 (NFC)
1 parent d14ee76 commit fc520f8

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

llvm/test/Transforms/InstCombine/insert-const-shuf.ll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ define <3 x float> @twoShufUses(<3 x float> %x) {
9292

9393
; The inserted scalar constant index is out-of-bounds for the shuffle vector constant.
9494

95+
; FIXME: This is a miscompilation
9596
define <5 x i8> @longerMask(<3 x i8> %x) {
9697
; CHECK-LABEL: @longerMask(
9798
; CHECK-NEXT: [[SHUF:%.*]] = shufflevector <3 x i8> [[X:%.*]], <3 x i8> <i8 poison, i8 1, i8 poison>, <5 x i32> <i32 2, i32 1, i32 4, i32 poison, i32 poison>

llvm/test/Transforms/InstCombine/vec_shuffle.ll

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2332,3 +2332,15 @@ define <2 x float> @uitofp_shuf_narrow(<4 x i32> %x, <4 x i32> %y) {
23322332
%r = shufflevector <4 x float> %nx, <4 x float> %ny, <2 x i32> <i32 3, i32 5>
23332333
ret <2 x float> %r
23342334
}
2335+
2336+
; FIXME: This is a miscompilation
2337+
define <4 x i16> @blend_elements_from_load(ptr align 8 %_0) {
2338+
; CHECK-LABEL: @blend_elements_from_load(
2339+
; CHECK-NEXT: [[LOAD:%.*]] = load <3 x i16>, ptr [[_0:%.*]], align 8
2340+
; CHECK-NEXT: [[RV:%.*]] = shufflevector <3 x i16> <i16 0, i16 poison, i16 poison>, <3 x i16> [[LOAD]], <4 x i32> <i32 0, i32 poison, i32 3, i32 5>
2341+
; CHECK-NEXT: ret <4 x i16> [[RV]]
2342+
;
2343+
%load = load <3 x i16>, ptr %_0, align 8
2344+
%rv = shufflevector <3 x i16> <i16 0, i16 undef, i16 undef>, <3 x i16> %load, <4 x i32> <i32 0, i32 1, i32 3, i32 5>
2345+
ret <4 x i16> %rv
2346+
}

0 commit comments

Comments
 (0)