Skip to content

Commit 3758a21

Browse files
committed
Precommit tests
1 parent 8c7f8c6 commit 3758a21

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

llvm/test/Transforms/InstCombine/scalable-trunc.ll

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,21 @@ entry:
2020
ret void
2121
}
2222

23+
define <vscale x 1 x i8> @constant_splat_trunc() {
24+
; CHECK-LABEL: @constant_splat_trunc(
25+
; CHECK-NEXT: ret <vscale x 1 x i8> trunc (<vscale x 1 x i64> splat (i64 1) to <vscale x 1 x i8>)
26+
;
27+
%1 = trunc <vscale x 1 x i64> splat (i64 1) to <vscale x 1 x i8>
28+
ret <vscale x 1 x i8> %1
29+
}
30+
31+
define <vscale x 1 x i8> @constant_splat_trunc_constantexpr() {
32+
; CHECK-LABEL: @constant_splat_trunc_constantexpr(
33+
; CHECK-NEXT: ret <vscale x 1 x i8> trunc (<vscale x 1 x i64> splat (i64 1) to <vscale x 1 x i8>)
34+
;
35+
ret <vscale x 1 x i8> trunc (<vscale x 1 x i64> splat (i64 1) to <vscale x 1 x i8>)
36+
}
37+
2338
declare void @llvm.aarch64.sve.st1.nxv2i32(<vscale x 2 x i32>, <vscale x 2 x i1>, ptr)
2439
declare <vscale x 2 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv2i1(<vscale x 16 x i1>)
2540
declare <vscale x 16 x i1> @llvm.aarch64.sve.ptrue.nxv16i1(i32 %pattern)

0 commit comments

Comments
 (0)