You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: llvm/test/Transforms/InstCombine/scalable-const-fp-splat.ll
+1-2Lines changed: 1 addition & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -7,9 +7,8 @@ define <vscale x 2 x float> @shrink_splat_scalable_extend(<vscale x 2 x float> %
7
7
; CHECK-NEXT: [[TMP1:%.*]] = fadd <vscale x 2 x float> [[A]], splat (float -1.000000e+00)
8
8
; CHECK-NEXT: ret <vscale x 2 x float> [[TMP1]]
9
9
;
10
-
%1 = shufflevector <vscale x 2 x float> insertelement (<vscale x 2 x float> undef, float -1.000000e+00, i320), <vscale x 2 x float> undef, <vscale x 2 x i32> zeroinitializer
11
10
%2 = fpext <vscale x 2 x float> %ato <vscale x 2 x double>
12
-
%3 = fpext <vscale x 2 x float> %1to <vscale x 2 x double>
11
+
%3 = fpext <vscale x 2 x float> splat (float -1.000000e+00)to <vscale x 2 x double>
13
12
%4 = fadd <vscale x 2 x double> %2, %3
14
13
%5 = fptrunc <vscale x 2 x double> %4to <vscale x 2 x float>
Copy file name to clipboardExpand all lines: llvm/test/Transforms/InstCombine/select-masked_gather.ll
+4-8Lines changed: 4 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -42,8 +42,7 @@ define <vscale x 2 x i32> @masked_gather_and_zero_inactive_4(<vscale x 2 x ptr>
42
42
; CHECK-NEXT: [[GATHER:%.*]] = call <vscale x 2 x i32> @llvm.masked.gather.nxv2i32.nxv2p0(<vscale x 2 x ptr> [[PTR:%.*]], i32 4, <vscale x 2 x i1> [[MASK]], <vscale x 2 x i32> zeroinitializer)
43
43
; CHECK-NEXT: ret <vscale x 2 x i32> [[GATHER]]
44
44
;
45
-
%splat = shufflevector <vscale x 2 x i1> insertelement (<vscale x 2 x i1> undef, i1true, i320), <vscale x 2 x i1> undef, <vscale x 2 x i32> zeroinitializer
46
-
%mask = xor <vscale x 2 x i1> %inv_mask, %splat
45
+
%mask = xor <vscale x 2 x i1> %inv_mask, splat (i1true)
47
46
%gather = call <vscale x 2 x i32> @llvm.masked.gather.nxv2i32(<vscale x 2 x ptr> %ptr, i324, <vscale x 2 x i1> %mask, <vscale x 2 x i32> undef)
48
47
%masked = select <vscale x 2 x i1> %inv_mask, <vscale x 2 x i32> zeroinitializer, <vscale x 2 x i32> %gather
49
48
ret <vscale x 2 x i32> %masked
@@ -56,8 +55,7 @@ define <vscale x 2 x i32> @masked_gather_and_zero_inactive_5(<vscale x 2 x ptr>
56
55
; CHECK-NEXT: [[GATHER:%.*]] = call <vscale x 2 x i32> @llvm.masked.gather.nxv2i32.nxv2p0(<vscale x 2 x ptr> [[PTR:%.*]], i32 4, <vscale x 2 x i1> [[MASK]], <vscale x 2 x i32> zeroinitializer)
57
56
; CHECK-NEXT: ret <vscale x 2 x i32> [[GATHER]]
58
57
;
59
-
%splat = shufflevector <vscale x 2 x i1> insertelement (<vscale x 2 x i1> undef, i1true, i320), <vscale x 2 x i1> undef, <vscale x 2 x i32> zeroinitializer
60
-
%mask = xor <vscale x 2 x i1> %inv_mask, %splat
58
+
%mask = xor <vscale x 2 x i1> %inv_mask, splat (i1true)
61
59
%gather = call <vscale x 2 x i32> @llvm.masked.gather.nxv2i32(<vscale x 2 x ptr> %ptr, i324, <vscale x 2 x i1> %mask, <vscale x 2 x i32> zeroinitializer)
62
60
%masked = select <vscale x 2 x i1> %inv_mask, <vscale x 2 x i32> zeroinitializer, <vscale x 2 x i32> %gather
63
61
ret <vscale x 2 x i32> %masked
@@ -71,8 +69,7 @@ define <vscale x 2 x i32> @masked_gather_and_zero_inactive_6(<vscale x 2 x ptr>
71
69
; CHECK-NEXT: [[MASKED:%.*]] = select <vscale x 2 x i1> [[INV_MASK]], <vscale x 2 x i32> zeroinitializer, <vscale x 2 x i32> [[GATHER]]
72
70
; CHECK-NEXT: ret <vscale x 2 x i32> [[MASKED]]
73
71
;
74
-
%splat = shufflevector <vscale x 2 x i1> insertelement (<vscale x 2 x i1> undef, i1true, i320), <vscale x 2 x i1> undef, <vscale x 2 x i32> zeroinitializer
75
-
%mask = xor <vscale x 2 x i1> %inv_mask, %splat
72
+
%mask = xor <vscale x 2 x i1> %inv_mask, splat (i1true)
76
73
%gather = call <vscale x 2 x i32> @llvm.masked.gather.nxv2i32(<vscale x 2 x ptr> %ptr, i324, <vscale x 2 x i1> %mask, <vscale x 2 x i32> %passthrough)
77
74
%masked = select <vscale x 2 x i1> %inv_mask, <vscale x 2 x i32> zeroinitializer, <vscale x 2 x i32> %gather
78
75
ret <vscale x 2 x i32> %masked
@@ -99,8 +96,7 @@ define <vscale x 2 x float> @masked_gather_and_zero_inactive_8(<vscale x 2 x ptr
99
96
; CHECK-NEXT: [[GATHER:%.*]] = call <vscale x 2 x float> @llvm.masked.gather.nxv2f32.nxv2p0(<vscale x 2 x ptr> [[PTR:%.*]], i32 4, <vscale x 2 x i1> [[PG]], <vscale x 2 x float> zeroinitializer)
100
97
; CHECK-NEXT: ret <vscale x 2 x float> [[GATHER]]
101
98
;
102
-
%splat = shufflevector <vscale x 2 x i1> insertelement (<vscale x 2 x i1> undef, i1true, i320), <vscale x 2 x i1> undef, <vscale x 2 x i32> zeroinitializer
103
-
%mask = xor <vscale x 2 x i1> %inv_mask, %splat
99
+
%mask = xor <vscale x 2 x i1> %inv_mask, splat (i1true)
104
100
%pg = and <vscale x 2 x i1> %mask, %cond
105
101
%gather = call <vscale x 2 x float> @llvm.masked.gather.nxv2f32(<vscale x 2 x ptr> %ptr, i324, <vscale x 2 x i1> %pg, <vscale x 2 x float> undef)
106
102
%masked = select <vscale x 2 x i1> %inv_mask, <vscale x 2 x float> zeroinitializer, <vscale x 2 x float> %gather
0 commit comments