Lines Matching +full:4 +full:d
5 ; a / D; b / D; c / D;
7 ; recip = 1.0 / D; a * recip; b * recip; c * recip;
8 define void @three_fdiv_float(float %D, float %a, float %b, float %c) #0 {
17 %div = fdiv float %a, %D
18 %div1 = fdiv float %b, %D
19 %div2 = fdiv float %c, %D
24 define void @three_fdiv_double(double %D, double %a, double %b, double %c) #0 {
33 %div = fdiv double %a, %D
34 %div1 = fdiv double %b, %D
35 %div2 = fdiv double %c, %D
40 define void @three_fdiv_4xfloat(<4 x float> %D, <4 x float> %a, <4 x float> %b, <4 x float> %c) #0 {
43 ; CHECK-NEXT: fmov v4.4s, #1.00000000
44 ; CHECK-NEXT: fdiv v4.4s, v4.4s, v0.4s
45 ; CHECK-NEXT: fmul v0.4s, v1.4s, v4.4s
46 ; CHECK-NEXT: fmul v1.4s, v2.4s, v4.4s
47 ; CHECK-NEXT: fmul v2.4s, v3.4s, v4.4s
49 %div = fdiv <4 x float> %a, %D
50 %div1 = fdiv <4 x float> %b, %D
51 %div2 = fdiv <4 x float> %c, %D
52 tail call void @foo_3_4xf(<4 x float> %div, <4 x float> %div1, <4 x float> %div2)
56 define void @three_fdiv_2xdouble(<2 x double> %D, <2 x double> %a, <2 x double> %b, <2 x double> %c…
59 ; CHECK-NEXT: fmov v4.2d, #1.00000000
60 ; CHECK-NEXT: fdiv v4.2d, v4.2d, v0.2d
61 ; CHECK-NEXT: fmul v0.2d, v1.2d, v4.2d
62 ; CHECK-NEXT: fmul v1.2d, v2.2d, v4.2d
63 ; CHECK-NEXT: fmul v2.2d, v3.2d, v4.2d
65 %div = fdiv <2 x double> %a, %D
66 %div1 = fdiv <2 x double> %b, %D
67 %div2 = fdiv <2 x double> %c, %D
74 define void @two_fdiv_float(float %D, float %a, float %b) #0 {
81 %div = fdiv float %a, %D
82 %div1 = fdiv float %b, %D
87 define void @two_fdiv_double(double %D, double %a, double %b) #0 {
94 %div = fdiv double %a, %D
95 %div1 = fdiv double %b, %D
100 define void @splat_three_fdiv_4xfloat(float %D, <4 x float> %a, <4 x float> %b, <4 x float> %c) #0 {
104 ; CHECK-NEXT: fmov v4.4s, #1.00000000
105 ; CHECK-NEXT: dup v0.4s, v0.s[0]
106 ; CHECK-NEXT: fdiv v4.4s, v4.4s, v0.4s
107 ; CHECK-NEXT: fmul v0.4s, v1.4s, v4.4s
108 ; CHECK-NEXT: fmul v1.4s, v2.4s, v4.4s
109 ; CHECK-NEXT: fmul v2.4s, v3.4s, v4.4s
111 %D.ins = insertelement <4 x float> poison, float %D, i64 0
112 %splat = shufflevector <4 x float> %D.ins, <4 x float> poison, <4 x i32> zeroinitializer
113 %div = fdiv <4 x float> %a, %splat
114 %div1 = fdiv <4 x float> %b, %splat
115 %div2 = fdiv <4 x float> %c, %splat
116 tail call void @foo_3_4xf(<4 x float> %div, <4 x float> %div1, <4 x float> %div2)
120 define <4 x float> @splat_fdiv_v4f32(float %D, <4 x float> %a) #1 {
124 ; CHECK-NEXT: fmov v2.4s, #1.00000000
125 ; CHECK-NEXT: dup v0.4s, v0.s[0]
126 ; CHECK-NEXT: fdiv v0.4s, v2.4s, v0.4s
127 ; CHECK-NEXT: fmul v0.4s, v1.4s, v0.4s
130 %D.ins = insertelement <4 x float> poison, float %D, i64 0
131 %splat = shufflevector <4 x float> %D.ins, <4 x float> poison, <4 x i32> zeroinitializer
132 %div = fdiv <4 x float> %a, %splat
133 ret <4 x float> %div
136 define <vscale x 4 x float> @splat_fdiv_nxv4f32(float %D, <vscale x 4 x float> %a) #1 {
145 %D.ins = insertelement <vscale x 4 x float> poison, float %D, i64 0
146 …%splat = shufflevector <vscale x 4 x float> %D.ins, <vscale x 4 x float> poison, <vscale x 4 x i32…
147 %div = fdiv <vscale x 4 x float> %a, %splat
148 ret <vscale x 4 x float> %div
151 …efine void @splat_three_fdiv_nxv4f32(float %D, <vscale x 4 x float> %a, <vscale x 4 x float> %b, <…
162 %D.ins = insertelement <vscale x 4 x float> poison, float %D, i64 0
163 …%splat = shufflevector <vscale x 4 x float> %D.ins, <vscale x 4 x float> poison, <vscale x 4 x i32…
164 %div = fdiv <vscale x 4 x float> %a, %splat
165 %div1 = fdiv <vscale x 4 x float> %b, %splat
166 %div2 = fdiv <vscale x 4 x float> %c, %splat
167 …tail call void @foo_3_nxv4f32(<vscale x 4 x float> %div, <vscale x 4 x float> %div1, <vscale x 4 x…
171 define <vscale x 2 x double> @splat_fdiv_nxv2f64(double %D, <vscale x 2 x double> %a) #1 {
175 ; CHECK-NEXT: ptrue p0.d
176 ; CHECK-NEXT: mov z0.d, d0
177 ; CHECK-NEXT: fdivr z0.d, p0/m, z0.d, z1.d
180 %D.ins = insertelement <vscale x 2 x double> poison, double %D, i64 0
181 …%splat = shufflevector <vscale x 2 x double> %D.ins, <vscale x 2 x double> poison, <vscale x 2 x i…
186 define void @splat_two_fdiv_nxv2f64(double %D, <vscale x 2 x double> %a, <vscale x 2 x double> %b) …
191 ; CHECK-NEXT: mov z3.d, d0
192 ; CHECK-NEXT: fmul z0.d, z1.d, z3.d
193 ; CHECK-NEXT: fmul z1.d, z2.d, z3.d
196 %D.ins = insertelement <vscale x 2 x double> poison, double %D, i64 0
197 …%splat = shufflevector <vscale x 2 x double> %D.ins, <vscale x 2 x double> poison, <vscale x 2 x i…
206 declare void @foo_3_4xf(<4 x float>, <4 x float>, <4 x float>)
210 declare void @foo_3_nxv4f32(<vscale x 4 x float>, <vscale x 4 x float>, <vscale x 4 x float>)