Skip to content

Commit 41edf7d

Browse files
committed
[WebAssembly] Use poison instead of undef for swizzle test
1 parent ffc2951 commit 41edf7d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

llvm/test/Transforms/InstCombine/WebAssembly/fold-swizzle.ll

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,14 @@ define <16 x i8> @swizzle_reverse(<16 x i8> %v) {
2727
ret <16 x i8> %result
2828
}
2929

30-
; undef elements
31-
define <16 x i8> @swizzle_with_undef(<16 x i8> %v) {
32-
; CHECK-LABEL: define <16 x i8> @swizzle_with_undef(
30+
; poison elements
31+
define <16 x i8> @swizzle_with_poison(<16 x i8> %v) {
32+
; CHECK-LABEL: define <16 x i8> @swizzle_with_poison(
3333
; CHECK-SAME: <16 x i8> [[V:%.*]]) {
3434
; CHECK-NEXT: [[RESULT:%.*]] = shufflevector <16 x i8> [[V]], <16 x i8> poison, <16 x i32> <i32 0, i32 poison, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7, i32 8, i32 9, i32 10, i32 11, i32 12, i32 13, i32 14, i32 15>
3535
; CHECK-NEXT: ret <16 x i8> [[RESULT]]
3636
;
37-
%result = tail call <16 x i8> @llvm.wasm.swizzle(<16 x i8> %v, <16 x i8> <i8 0, i8 undef, i8 2, i8 3, i8 4, i8 5, i8 6, i8 7, i8 8, i8 9, i8 10, i8 11, i8 12, i8 13, i8 14, i8 15>)
37+
%result = tail call <16 x i8> @llvm.wasm.swizzle(<16 x i8> %v, <16 x i8> <i8 0, i8 poison, i8 2, i8 3, i8 4, i8 5, i8 6, i8 7, i8 8, i8 9, i8 10, i8 11, i8 12, i8 13, i8 14, i8 15>)
3838
ret <16 x i8> %result
3939
}
4040

0 commit comments

Comments
 (0)