File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
llvm/test/Transforms/InstCombine Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,21 @@ entry:
20
20
ret void
21
21
}
22
22
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
+
23
38
declare void @llvm.aarch64.sve.st1.nxv2i32 (<vscale x 2 x i32 >, <vscale x 2 x i1 >, ptr )
24
39
declare <vscale x 2 x i1 > @llvm.aarch64.sve.convert.from.svbool.nxv2i1 (<vscale x 16 x i1 >)
25
40
declare <vscale x 16 x i1 > @llvm.aarch64.sve.ptrue.nxv16i1 (i32 %pattern )
You can’t perform that action at this time.
0 commit comments