1 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --check-globals
2 ; RUN: opt -mattr=+sve -vector-library=sleefgnuabi -replace-with-veclib -S < %s | FileCheck %s
4 target triple = "aarch64-unknown-linux-gnu"
6 ; NOTE: The existing TLI mappings are not used since the -replace-with-veclib pass is broken for scalable vectors.
8 define <vscale x 2 x double> @llvm_ceil_vscale_f64(<vscale x 2 x double> %in) {
9 ; CHECK-LABEL: @llvm_ceil_vscale_f64(
10 ; CHECK-NEXT: [[TMP1:%.*]] = call fast <vscale x 2 x double> @llvm.ceil.nxv2f64(<vscale x 2 x double> [[IN:%.*]])
11 ; CHECK-NEXT: ret <vscale x 2 x double> [[TMP1]]
13 %1 = call fast <vscale x 2 x double> @llvm.ceil.nxv2f64(<vscale x 2 x double> %in)
14 ret <vscale x 2 x double> %1
17 define <vscale x 4 x float> @llvm_ceil_vscale_f32(<vscale x 4 x float> %in) {
18 ; CHECK-LABEL: @llvm_ceil_vscale_f32(
19 ; CHECK-NEXT: [[TMP1:%.*]] = call fast <vscale x 4 x float> @llvm.ceil.nxv4f32(<vscale x 4 x float> [[IN:%.*]])
20 ; CHECK-NEXT: ret <vscale x 4 x float> [[TMP1]]
22 %1 = call fast <vscale x 4 x float> @llvm.ceil.nxv4f32(<vscale x 4 x float> %in)
23 ret <vscale x 4 x float> %1
26 define <vscale x 2 x double> @llvm_copysign_vscale_f64(<vscale x 2 x double> %mag, <vscale x 2 x double> %sgn) {
27 ; CHECK-LABEL: @llvm_copysign_vscale_f64(
28 ; CHECK-NEXT: [[TMP1:%.*]] = call fast <vscale x 2 x double> @llvm.copysign.nxv2f64(<vscale x 2 x double> [[MAG:%.*]], <vscale x 2 x double> [[SGN:%.*]])
29 ; CHECK-NEXT: ret <vscale x 2 x double> [[TMP1]]
31 %1 = call fast <vscale x 2 x double> @llvm.copysign.nxv2f64(<vscale x 2 x double> %mag, <vscale x 2 x double> %sgn)
32 ret <vscale x 2 x double> %1
35 define <vscale x 4 x float> @llvm_copysign_vscale_f32(<vscale x 4 x float> %mag, <vscale x 4 x float> %sgn) {
36 ; CHECK-LABEL: @llvm_copysign_vscale_f32(
37 ; CHECK-NEXT: [[TMP1:%.*]] = call fast <vscale x 4 x float> @llvm.copysign.nxv4f32(<vscale x 4 x float> [[MAG:%.*]], <vscale x 4 x float> [[SGN:%.*]])
38 ; CHECK-NEXT: ret <vscale x 4 x float> [[TMP1]]
40 %1 = call fast <vscale x 4 x float> @llvm.copysign.nxv4f32(<vscale x 4 x float> %mag, <vscale x 4 x float> %sgn)
41 ret <vscale x 4 x float> %1
44 define <vscale x 2 x double> @llvm_cos_vscale_f64(<vscale x 2 x double> %in) {
45 ; CHECK-LABEL: @llvm_cos_vscale_f64(
46 ; CHECK-NEXT: [[TMP1:%.*]] = call fast <vscale x 2 x double> @llvm.cos.nxv2f64(<vscale x 2 x double> [[IN:%.*]])
47 ; CHECK-NEXT: ret <vscale x 2 x double> [[TMP1]]
49 %1 = call fast <vscale x 2 x double> @llvm.cos.nxv2f64(<vscale x 2 x double> %in)
50 ret <vscale x 2 x double> %1
53 define <vscale x 4 x float> @llvm_cos_vscale_f32(<vscale x 4 x float> %in) {
54 ; CHECK-LABEL: @llvm_cos_vscale_f32(
55 ; CHECK-NEXT: [[TMP1:%.*]] = call fast <vscale x 4 x float> @llvm.cos.nxv4f32(<vscale x 4 x float> [[IN:%.*]])
56 ; CHECK-NEXT: ret <vscale x 4 x float> [[TMP1]]
58 %1 = call fast <vscale x 4 x float> @llvm.cos.nxv4f32(<vscale x 4 x float> %in)
59 ret <vscale x 4 x float> %1
62 define <vscale x 2 x double> @llvm_exp_vscale_f64(<vscale x 2 x double> %in) {
63 ; CHECK-LABEL: @llvm_exp_vscale_f64(
64 ; CHECK-NEXT: [[TMP1:%.*]] = call fast <vscale x 2 x double> @llvm.exp.nxv2f64(<vscale x 2 x double> [[IN:%.*]])
65 ; CHECK-NEXT: ret <vscale x 2 x double> [[TMP1]]
67 %1 = call fast <vscale x 2 x double> @llvm.exp.nxv2f64(<vscale x 2 x double> %in)
68 ret <vscale x 2 x double> %1
71 define <vscale x 4 x float> @llvm_exp_vscale_f32(<vscale x 4 x float> %in) {
72 ; CHECK-LABEL: @llvm_exp_vscale_f32(
73 ; CHECK-NEXT: [[TMP1:%.*]] = call fast <vscale x 4 x float> @llvm.exp.nxv4f32(<vscale x 4 x float> [[IN:%.*]])
74 ; CHECK-NEXT: ret <vscale x 4 x float> [[TMP1]]
76 %1 = call fast <vscale x 4 x float> @llvm.exp.nxv4f32(<vscale x 4 x float> %in)
77 ret <vscale x 4 x float> %1
80 define <vscale x 2 x double> @llvm_exp2_vscale_f64(<vscale x 2 x double> %in) {
81 ; CHECK-LABEL: @llvm_exp2_vscale_f64(
82 ; CHECK-NEXT: [[TMP1:%.*]] = call fast <vscale x 2 x double> @llvm.exp2.nxv2f64(<vscale x 2 x double> [[IN:%.*]])
83 ; CHECK-NEXT: ret <vscale x 2 x double> [[TMP1]]
85 %1 = call fast <vscale x 2 x double> @llvm.exp2.nxv2f64(<vscale x 2 x double> %in)
86 ret <vscale x 2 x double> %1
89 define <vscale x 4 x float> @llvm_exp2_vscale_f32(<vscale x 4 x float> %in) {
90 ; CHECK-LABEL: @llvm_exp2_vscale_f32(
91 ; CHECK-NEXT: [[TMP1:%.*]] = call fast <vscale x 4 x float> @llvm.exp2.nxv4f32(<vscale x 4 x float> [[IN:%.*]])
92 ; CHECK-NEXT: ret <vscale x 4 x float> [[TMP1]]
94 %1 = call fast <vscale x 4 x float> @llvm.exp2.nxv4f32(<vscale x 4 x float> %in)
95 ret <vscale x 4 x float> %1
98 define <vscale x 2 x double> @llvm_fabs_vscale_f64(<vscale x 2 x double> %in) {
99 ; CHECK-LABEL: @llvm_fabs_vscale_f64(
100 ; CHECK-NEXT: [[TMP1:%.*]] = call fast <vscale x 2 x double> @llvm.fabs.nxv2f64(<vscale x 2 x double> [[IN:%.*]])
101 ; CHECK-NEXT: ret <vscale x 2 x double> [[TMP1]]
103 %1 = call fast <vscale x 2 x double> @llvm.fabs.nxv2f64(<vscale x 2 x double> %in)
104 ret <vscale x 2 x double> %1
107 define <vscale x 4 x float> @llvm_fabs_vscale_f32(<vscale x 4 x float> %in) {
108 ; CHECK-LABEL: @llvm_fabs_vscale_f32(
109 ; CHECK-NEXT: [[TMP1:%.*]] = call fast <vscale x 4 x float> @llvm.fabs.nxv4f32(<vscale x 4 x float> [[IN:%.*]])
110 ; CHECK-NEXT: ret <vscale x 4 x float> [[TMP1]]
112 %1 = call fast <vscale x 4 x float> @llvm.fabs.nxv4f32(<vscale x 4 x float> %in)
113 ret <vscale x 4 x float> %1
116 define <vscale x 2 x double> @llvm_floor_vscale_f64(<vscale x 2 x double> %in) {
117 ; CHECK-LABEL: @llvm_floor_vscale_f64(
118 ; CHECK-NEXT: [[TMP1:%.*]] = call fast <vscale x 2 x double> @llvm.floor.nxv2f64(<vscale x 2 x double> [[IN:%.*]])
119 ; CHECK-NEXT: ret <vscale x 2 x double> [[TMP1]]
121 %1 = call fast <vscale x 2 x double> @llvm.floor.nxv2f64(<vscale x 2 x double> %in)
122 ret <vscale x 2 x double> %1
125 define <vscale x 4 x float> @llvm_floor_vscale_f32(<vscale x 4 x float> %in) {
126 ; CHECK-LABEL: @llvm_floor_vscale_f32(
127 ; CHECK-NEXT: [[TMP1:%.*]] = call fast <vscale x 4 x float> @llvm.floor.nxv4f32(<vscale x 4 x float> [[IN:%.*]])
128 ; CHECK-NEXT: ret <vscale x 4 x float> [[TMP1]]
130 %1 = call fast <vscale x 4 x float> @llvm.floor.nxv4f32(<vscale x 4 x float> %in)
131 ret <vscale x 4 x float> %1
134 define <vscale x 2 x double> @llvm_fma_vscale_f64(<vscale x 2 x double> %a, <vscale x 2 x double> %b, <vscale x 2 x double> %c ) {
135 ; CHECK-LABEL: @llvm_fma_vscale_f64(
136 ; CHECK-NEXT: [[TMP1:%.*]] = call fast <vscale x 2 x double> @llvm.fma.nxv2f64(<vscale x 2 x double> [[A:%.*]], <vscale x 2 x double> [[B:%.*]], <vscale x 2 x double> [[C:%.*]])
137 ; CHECK-NEXT: ret <vscale x 2 x double> [[TMP1]]
139 %1 = call fast <vscale x 2 x double> @llvm.fma.nxv2f64(<vscale x 2 x double> %a, <vscale x 2 x double> %b, <vscale x 2 x double> %c)
140 ret <vscale x 2 x double> %1
143 define <vscale x 4 x float> @llvm_fma_vscale_f32(<vscale x 4 x float> %a, <vscale x 4 x float> %b, <vscale x 4 x float> %c) {
144 ; CHECK-LABEL: @llvm_fma_vscale_f32(
145 ; CHECK-NEXT: [[TMP1:%.*]] = call fast <vscale x 4 x float> @llvm.fma.nxv4f32(<vscale x 4 x float> [[A:%.*]], <vscale x 4 x float> [[B:%.*]], <vscale x 4 x float> [[C:%.*]])
146 ; CHECK-NEXT: ret <vscale x 4 x float> [[TMP1]]
148 %1 = call fast <vscale x 4 x float> @llvm.fma.nxv4f32(<vscale x 4 x float> %a, <vscale x 4 x float> %b, <vscale x 4 x float> %c)
149 ret <vscale x 4 x float> %1
152 define <vscale x 2 x double> @llvm_log_vscale_f64(<vscale x 2 x double> %in) {
153 ; CHECK-LABEL: @llvm_log_vscale_f64(
154 ; CHECK-NEXT: [[TMP1:%.*]] = call fast <vscale x 2 x double> @llvm.log.nxv2f64(<vscale x 2 x double> [[IN:%.*]])
155 ; CHECK-NEXT: ret <vscale x 2 x double> [[TMP1]]
157 %1 = call fast <vscale x 2 x double> @llvm.log.nxv2f64(<vscale x 2 x double> %in)
158 ret <vscale x 2 x double> %1
161 define <vscale x 4 x float> @llvm_log_vscale_f32(<vscale x 4 x float> %in) {
162 ; CHECK-LABEL: @llvm_log_vscale_f32(
163 ; CHECK-NEXT: [[TMP1:%.*]] = call fast <vscale x 4 x float> @llvm.log.nxv4f32(<vscale x 4 x float> [[IN:%.*]])
164 ; CHECK-NEXT: ret <vscale x 4 x float> [[TMP1]]
166 %1 = call fast <vscale x 4 x float> @llvm.log.nxv4f32(<vscale x 4 x float> %in)
167 ret <vscale x 4 x float> %1
170 define <vscale x 2 x double> @llvm_log10_vscale_f64(<vscale x 2 x double> %in) {
171 ; CHECK-LABEL: @llvm_log10_vscale_f64(
172 ; CHECK-NEXT: [[TMP1:%.*]] = call fast <vscale x 2 x double> @llvm.log10.nxv2f64(<vscale x 2 x double> [[IN:%.*]])
173 ; CHECK-NEXT: ret <vscale x 2 x double> [[TMP1]]
175 %1 = call fast <vscale x 2 x double> @llvm.log10.nxv2f64(<vscale x 2 x double> %in)
176 ret <vscale x 2 x double> %1
179 define <vscale x 4 x float> @llvm_log10_vscale_f32(<vscale x 4 x float> %in) {
180 ; CHECK-LABEL: @llvm_log10_vscale_f32(
181 ; CHECK-NEXT: [[TMP1:%.*]] = call fast <vscale x 4 x float> @llvm.log10.nxv4f32(<vscale x 4 x float> [[IN:%.*]])
182 ; CHECK-NEXT: ret <vscale x 4 x float> [[TMP1]]
184 %1 = call fast <vscale x 4 x float> @llvm.log10.nxv4f32(<vscale x 4 x float> %in)
185 ret <vscale x 4 x float> %1
188 define <vscale x 2 x double> @llvm_log2_vscale_f64(<vscale x 2 x double> %in) {
189 ; CHECK-LABEL: @llvm_log2_vscale_f64(
190 ; CHECK-NEXT: [[TMP1:%.*]] = call fast <vscale x 2 x double> @llvm.log2.nxv2f64(<vscale x 2 x double> [[IN:%.*]])
191 ; CHECK-NEXT: ret <vscale x 2 x double> [[TMP1]]
193 %1 = call fast <vscale x 2 x double> @llvm.log2.nxv2f64(<vscale x 2 x double> %in)
194 ret <vscale x 2 x double> %1
197 define <vscale x 4 x float> @llvm_log2_vscale_f32(<vscale x 4 x float> %in) {
198 ; CHECK-LABEL: @llvm_log2_vscale_f32(
199 ; CHECK-NEXT: [[TMP1:%.*]] = call fast <vscale x 4 x float> @llvm.log2.nxv4f32(<vscale x 4 x float> [[IN:%.*]])
200 ; CHECK-NEXT: ret <vscale x 4 x float> [[TMP1]]
202 %1 = call fast <vscale x 4 x float> @llvm.log2.nxv4f32(<vscale x 4 x float> %in)
203 ret <vscale x 4 x float> %1
206 define <vscale x 2 x double> @llvm_maxnum_vscale_f64(<vscale x 2 x double> %in0, <vscale x 2 x double> %in1) {
207 ; CHECK-LABEL: @llvm_maxnum_vscale_f64(
208 ; CHECK-NEXT: [[TMP1:%.*]] = call fast <vscale x 2 x double> @llvm.maxnum.nxv2f64(<vscale x 2 x double> [[IN0:%.*]], <vscale x 2 x double> [[IN1:%.*]])
209 ; CHECK-NEXT: ret <vscale x 2 x double> [[TMP1]]
211 %1 = call fast <vscale x 2 x double> @llvm.maxnum.nxv2f64(<vscale x 2 x double> %in0, <vscale x 2 x double> %in1)
212 ret <vscale x 2 x double> %1
215 define <vscale x 4 x float> @llvm_maxnum_vscale_f32(<vscale x 4 x float> %in0, <vscale x 4 x float> %in1) {
216 ; CHECK-LABEL: @llvm_maxnum_vscale_f32(
217 ; CHECK-NEXT: [[TMP1:%.*]] = call fast <vscale x 4 x float> @llvm.maxnum.nxv4f32(<vscale x 4 x float> [[IN0:%.*]], <vscale x 4 x float> [[IN1:%.*]])
218 ; CHECK-NEXT: ret <vscale x 4 x float> [[TMP1]]
220 %1 = call fast <vscale x 4 x float> @llvm.maxnum.nxv4f32(<vscale x 4 x float> %in0, <vscale x 4 x float> %in1)
221 ret <vscale x 4 x float> %1
224 define <vscale x 2 x double> @llvm_minnum_vscale_f64(<vscale x 2 x double> %in0, <vscale x 2 x double> %in1) {
225 ; CHECK-LABEL: @llvm_minnum_vscale_f64(
226 ; CHECK-NEXT: [[TMP1:%.*]] = call fast <vscale x 2 x double> @llvm.minnum.nxv2f64(<vscale x 2 x double> [[IN0:%.*]], <vscale x 2 x double> [[IN1:%.*]])
227 ; CHECK-NEXT: ret <vscale x 2 x double> [[TMP1]]
229 %1 = call fast <vscale x 2 x double> @llvm.minnum.nxv2f64(<vscale x 2 x double> %in0, <vscale x 2 x double> %in1)
230 ret <vscale x 2 x double> %1
233 define <vscale x 4 x float> @llvm_minnum_vscale_f32(<vscale x 4 x float> %in0, <vscale x 4 x float> %in1) {
234 ; CHECK-LABEL: @llvm_minnum_vscale_f32(
235 ; CHECK-NEXT: [[TMP1:%.*]] = call fast <vscale x 4 x float> @llvm.minnum.nxv4f32(<vscale x 4 x float> [[IN0:%.*]], <vscale x 4 x float> [[IN1:%.*]])
236 ; CHECK-NEXT: ret <vscale x 4 x float> [[TMP1]]
238 %1 = call fast <vscale x 4 x float> @llvm.minnum.nxv4f32(<vscale x 4 x float> %in0, <vscale x 4 x float> %in1)
239 ret <vscale x 4 x float> %1
242 define <vscale x 2 x double> @llvm_nearbyint_vscale_f64(<vscale x 2 x double> %in) {
243 ; CHECK-LABEL: @llvm_nearbyint_vscale_f64(
244 ; CHECK-NEXT: [[TMP1:%.*]] = call fast <vscale x 2 x double> @llvm.nearbyint.nxv2f64(<vscale x 2 x double> [[IN:%.*]])
245 ; CHECK-NEXT: ret <vscale x 2 x double> [[TMP1]]
247 %1 = call fast <vscale x 2 x double> @llvm.nearbyint.nxv2f64(<vscale x 2 x double> %in)
248 ret <vscale x 2 x double> %1
251 define <vscale x 4 x float> @llvm_nearbyint_vscale_f32(<vscale x 4 x float> %in) {
252 ; CHECK-LABEL: @llvm_nearbyint_vscale_f32(
253 ; CHECK-NEXT: [[TMP1:%.*]] = call fast <vscale x 4 x float> @llvm.nearbyint.nxv4f32(<vscale x 4 x float> [[IN:%.*]])
254 ; CHECK-NEXT: ret <vscale x 4 x float> [[TMP1]]
256 %1 = call fast <vscale x 4 x float> @llvm.nearbyint.nxv4f32(<vscale x 4 x float> %in)
257 ret <vscale x 4 x float> %1
260 define <vscale x 2 x double> @llvm_pow_vscale_f64(<vscale x 2 x double> %in, <vscale x 2 x double> %pow) {
261 ; CHECK-LABEL: @llvm_pow_vscale_f64(
262 ; CHECK-NEXT: [[TMP1:%.*]] = call fast <vscale x 2 x double> @llvm.pow.nxv2f64(<vscale x 2 x double> [[IN:%.*]], <vscale x 2 x double> [[POW:%.*]])
263 ; CHECK-NEXT: ret <vscale x 2 x double> [[TMP1]]
265 %1 = call fast <vscale x 2 x double> @llvm.pow.nxv2f64(<vscale x 2 x double> %in, <vscale x 2 x double> %pow)
266 ret <vscale x 2 x double> %1
269 define <vscale x 4 x float> @llvm_pow_vscale_f32(<vscale x 4 x float> %in, <vscale x 4 x float> %pow) {
270 ; CHECK-LABEL: @llvm_pow_vscale_f32(
271 ; CHECK-NEXT: [[TMP1:%.*]] = call fast <vscale x 4 x float> @llvm.pow.nxv4f32(<vscale x 4 x float> [[IN:%.*]], <vscale x 4 x float> [[POW:%.*]])
272 ; CHECK-NEXT: ret <vscale x 4 x float> [[TMP1]]
274 %1 = call fast <vscale x 4 x float> @llvm.pow.nxv4f32(<vscale x 4 x float> %in, <vscale x 4 x float> %pow)
275 ret <vscale x 4 x float> %1
278 define <vscale x 2 x double> @llvm_rint_vscale_f64(<vscale x 2 x double> %in) {
279 ; CHECK-LABEL: @llvm_rint_vscale_f64(
280 ; CHECK-NEXT: [[TMP1:%.*]] = call fast <vscale x 2 x double> @llvm.rint.nxv2f64(<vscale x 2 x double> [[IN:%.*]])
281 ; CHECK-NEXT: ret <vscale x 2 x double> [[TMP1]]
283 %1 = call fast <vscale x 2 x double> @llvm.rint.nxv2f64(<vscale x 2 x double> %in)
284 ret <vscale x 2 x double> %1
287 define <vscale x 4 x float> @llvm_rint_vscale_f32(<vscale x 4 x float> %in) {
288 ; CHECK-LABEL: @llvm_rint_vscale_f32(
289 ; CHECK-NEXT: [[TMP1:%.*]] = call fast <vscale x 4 x float> @llvm.rint.nxv4f32(<vscale x 4 x float> [[IN:%.*]])
290 ; CHECK-NEXT: ret <vscale x 4 x float> [[TMP1]]
292 %1 = call fast <vscale x 4 x float> @llvm.rint.nxv4f32(<vscale x 4 x float> %in)
293 ret <vscale x 4 x float> %1
296 define <vscale x 2 x double> @llvm_round_vscale_f64(<vscale x 2 x double> %in) {
297 ; CHECK-LABEL: @llvm_round_vscale_f64(
298 ; CHECK-NEXT: [[TMP1:%.*]] = call fast <vscale x 2 x double> @llvm.round.nxv2f64(<vscale x 2 x double> [[IN:%.*]])
299 ; CHECK-NEXT: ret <vscale x 2 x double> [[TMP1]]
301 %1 = call fast <vscale x 2 x double> @llvm.round.nxv2f64(<vscale x 2 x double> %in)
302 ret <vscale x 2 x double> %1
305 define <vscale x 4 x float> @llvm_round_vscale_f32(<vscale x 4 x float> %in) {
306 ; CHECK-LABEL: @llvm_round_vscale_f32(
307 ; CHECK-NEXT: [[TMP1:%.*]] = call fast <vscale x 4 x float> @llvm.round.nxv4f32(<vscale x 4 x float> [[IN:%.*]])
308 ; CHECK-NEXT: ret <vscale x 4 x float> [[TMP1]]
310 %1 = call fast <vscale x 4 x float> @llvm.round.nxv4f32(<vscale x 4 x float> %in)
311 ret <vscale x 4 x float> %1
314 define <vscale x 2 x double> @llvm_sin_vscale_f64(<vscale x 2 x double> %in) {
315 ; CHECK-LABEL: @llvm_sin_vscale_f64(
316 ; CHECK-NEXT: [[TMP1:%.*]] = call fast <vscale x 2 x double> @llvm.sin.nxv2f64(<vscale x 2 x double> [[IN:%.*]])
317 ; CHECK-NEXT: ret <vscale x 2 x double> [[TMP1]]
319 %1 = call fast <vscale x 2 x double> @llvm.sin.nxv2f64(<vscale x 2 x double> %in)
320 ret <vscale x 2 x double> %1
323 define <vscale x 4 x float> @llvm_sin_vscale_f32(<vscale x 4 x float> %in) {
324 ; CHECK-LABEL: @llvm_sin_vscale_f32(
325 ; CHECK-NEXT: [[TMP1:%.*]] = call fast <vscale x 4 x float> @llvm.sin.nxv4f32(<vscale x 4 x float> [[IN:%.*]])
326 ; CHECK-NEXT: ret <vscale x 4 x float> [[TMP1]]
328 %1 = call fast <vscale x 4 x float> @llvm.sin.nxv4f32(<vscale x 4 x float> %in)
329 ret <vscale x 4 x float> %1
332 define <vscale x 2 x double> @llvm_sqrt_vscale_f64(<vscale x 2 x double> %in) {
333 ; CHECK-LABEL: @llvm_sqrt_vscale_f64(
334 ; CHECK-NEXT: [[TMP1:%.*]] = call fast <vscale x 2 x double> @llvm.sqrt.nxv2f64(<vscale x 2 x double> [[IN:%.*]])
335 ; CHECK-NEXT: ret <vscale x 2 x double> [[TMP1]]
337 %1 = call fast <vscale x 2 x double> @llvm.sqrt.nxv2f64(<vscale x 2 x double> %in)
338 ret <vscale x 2 x double> %1
341 define <vscale x 4 x float> @llvm_sqrt_vscale_f32(<vscale x 4 x float> %in) {
342 ; CHECK-LABEL: @llvm_sqrt_vscale_f32(
343 ; CHECK-NEXT: [[TMP1:%.*]] = call fast <vscale x 4 x float> @llvm.sqrt.nxv4f32(<vscale x 4 x float> [[IN:%.*]])
344 ; CHECK-NEXT: ret <vscale x 4 x float> [[TMP1]]
346 %1 = call fast <vscale x 4 x float> @llvm.sqrt.nxv4f32(<vscale x 4 x float> %in)
347 ret <vscale x 4 x float> %1
350 define <vscale x 2 x double> @llvm_trunc_vscale_f64(<vscale x 2 x double> %in) {
351 ; CHECK-LABEL: @llvm_trunc_vscale_f64(
352 ; CHECK-NEXT: [[TMP1:%.*]] = call fast <vscale x 2 x double> @llvm.trunc.nxv2f64(<vscale x 2 x double> [[IN:%.*]])
353 ; CHECK-NEXT: ret <vscale x 2 x double> [[TMP1]]
355 %1 = call fast <vscale x 2 x double> @llvm.trunc.nxv2f64(<vscale x 2 x double> %in)
356 ret <vscale x 2 x double> %1
359 define <vscale x 4 x float> @llvm_trunc_vscale_f32(<vscale x 4 x float> %in) {
360 ; CHECK-LABEL: @llvm_trunc_vscale_f32(
361 ; CHECK-NEXT: [[TMP1:%.*]] = call fast <vscale x 4 x float> @llvm.trunc.nxv4f32(<vscale x 4 x float> [[IN:%.*]])
362 ; CHECK-NEXT: ret <vscale x 4 x float> [[TMP1]]
364 %1 = call fast <vscale x 4 x float> @llvm.trunc.nxv4f32(<vscale x 4 x float> %in)
365 ret <vscale x 4 x float> %1
368 declare <vscale x 2 x double> @llvm.ceil.nxv2f64(<vscale x 2 x double>)
369 declare <vscale x 4 x float> @llvm.ceil.nxv4f32(<vscale x 4 x float>)
370 declare <vscale x 2 x double> @llvm.copysign.nxv2f64(<vscale x 2 x double>, <vscale x 2 x double>)
371 declare <vscale x 4 x float> @llvm.copysign.nxv4f32(<vscale x 4 x float>, <vscale x 4 x float>)
372 declare <vscale x 2 x double> @llvm.cos.nxv2f64(<vscale x 2 x double>)
373 declare <vscale x 4 x float> @llvm.cos.nxv4f32(<vscale x 4 x float>)
374 declare <vscale x 2 x double> @llvm.exp.nxv2f64(<vscale x 2 x double>)
375 declare <vscale x 4 x float> @llvm.exp.nxv4f32(<vscale x 4 x float>)
376 declare <vscale x 2 x double> @llvm.exp2.nxv2f64(<vscale x 2 x double>)
377 declare <vscale x 4 x float> @llvm.exp2.nxv4f32(<vscale x 4 x float>)
378 declare <vscale x 2 x double> @llvm.fabs.nxv2f64(<vscale x 2 x double>)
379 declare <vscale x 4 x float> @llvm.fabs.nxv4f32(<vscale x 4 x float>)
380 declare <vscale x 2 x double> @llvm.floor.nxv2f64(<vscale x 2 x double>)
381 declare <vscale x 4 x float> @llvm.floor.nxv4f32(<vscale x 4 x float>)
382 declare <vscale x 2 x double> @llvm.fma.nxv2f64(<vscale x 2 x double>, <vscale x 2 x double>, <vscale x 2 x double>)
383 declare <vscale x 4 x float> @llvm.fma.nxv4f32(<vscale x 4 x float>, <vscale x 4 x float>, <vscale x 4 x float>)
384 declare <vscale x 2 x double> @llvm.log.nxv2f64(<vscale x 2 x double>)
385 declare <vscale x 4 x float> @llvm.log.nxv4f32(<vscale x 4 x float>)
386 declare <vscale x 2 x double> @llvm.log10.nxv2f64(<vscale x 2 x double>)
387 declare <vscale x 4 x float> @llvm.log10.nxv4f32(<vscale x 4 x float>)
388 declare <vscale x 2 x double> @llvm.log2.nxv2f64(<vscale x 2 x double>)
389 declare <vscale x 4 x float> @llvm.log2.nxv4f32(<vscale x 4 x float>)
390 declare <vscale x 2 x double> @llvm.maxnum.nxv2f64(<vscale x 2 x double>, <vscale x 2 x double>)
391 declare <vscale x 4 x float> @llvm.maxnum.nxv4f32(<vscale x 4 x float>, <vscale x 4 x float>)
392 declare <vscale x 2 x double> @llvm.minnum.nxv2f64(<vscale x 2 x double>, <vscale x 2 x double>)
393 declare <vscale x 4 x float> @llvm.minnum.nxv4f32(<vscale x 4 x float>, <vscale x 4 x float>)
394 declare <vscale x 2 x double> @llvm.nearbyint.nxv2f64(<vscale x 2 x double>)
395 declare <vscale x 4 x float> @llvm.nearbyint.nxv4f32(<vscale x 4 x float>)
396 declare <vscale x 2 x double> @llvm.pow.nxv2f64(<vscale x 2 x double>, <vscale x 2 x double>)
397 declare <vscale x 4 x float> @llvm.pow.nxv4f32(<vscale x 4 x float>, <vscale x 4 x float>)
398 declare <vscale x 2 x double> @llvm.rint.nxv2f64(<vscale x 2 x double>)
399 declare <vscale x 4 x float> @llvm.rint.nxv4f32(<vscale x 4 x float>)
400 declare <vscale x 2 x double> @llvm.round.nxv2f64(<vscale x 2 x double>)
401 declare <vscale x 4 x float> @llvm.round.nxv4f32(<vscale x 4 x float>)
402 declare <vscale x 2 x double> @llvm.sin.nxv2f64(<vscale x 2 x double>)
403 declare <vscale x 4 x float> @llvm.sin.nxv4f32(<vscale x 4 x float>)
404 declare <vscale x 2 x double> @llvm.sqrt.nxv2f64(<vscale x 2 x double>)
405 declare <vscale x 4 x float> @llvm.sqrt.nxv4f32(<vscale x 4 x float>)
406 declare <vscale x 2 x double> @llvm.trunc.nxv2f64(<vscale x 2 x double>)
407 declare <vscale x 4 x float> @llvm.trunc.nxv4f32(<vscale x 4 x float>)
409 ; CHECK: attributes #[[ATTR0:[0-9]+]] = { "target-features"="+sve" }
410 ; CHECK: attributes #[[ATTR1:[0-9]+]] = { nocallback nofree nosync nounwind speculatable willreturn memory(none) "target-features"="+sve" }