Lines Matching full:arg

27 define float @test_log_f32(float %arg) {
29 ; CHECK-SAME: (float [[ARG:%.*]]) {
30 ; CHECK-NEXT: [[LOG:%.*]] = tail call float @_Z3logf(float [[ARG]]), !fpmath !0
33 %log = tail call float @_Z3logf(float %arg), !fpmath !0
37 define <2 x float> @test_log_v2f32(<2 x float> %arg) {
39 ; CHECK-SAME: (<2 x float> [[ARG:%.*]]) {
40 ; CHECK-NEXT: [[LOG:%.*]] = tail call <2 x float> @_Z3logDv2_f(<2 x float> [[ARG]]), !fpmath !0
43 %log = tail call <2 x float> @_Z3logDv2_f(<2 x float> %arg), !fpmath !0
47 define <3 x float> @test_log_v3f32(<3 x float> %arg) {
49 ; CHECK-SAME: (<3 x float> [[ARG:%.*]]) {
50 ; CHECK-NEXT: [[LOG:%.*]] = tail call <3 x float> @_Z3logDv3_f(<3 x float> [[ARG]]), !fpmath !0
53 %log = tail call <3 x float> @_Z3logDv3_f(<3 x float> %arg), !fpmath !0
57 define <4 x float> @test_log_v4f32(<4 x float> %arg) {
59 ; CHECK-SAME: (<4 x float> [[ARG:%.*]]) {
60 ; CHECK-NEXT: [[LOG:%.*]] = tail call <4 x float> @_Z3logDv4_f(<4 x float> [[ARG]]), !fpmath !0
63 %log = tail call <4 x float> @_Z3logDv4_f(<4 x float> %arg), !fpmath !0
67 define <8 x float> @test_log_v8f32(<8 x float> %arg) {
69 ; CHECK-SAME: (<8 x float> [[ARG:%.*]]) {
70 ; CHECK-NEXT: [[LOG:%.*]] = tail call <8 x float> @_Z3logDv8_f(<8 x float> [[ARG]]), !fpmath !0
73 %log = tail call <8 x float> @_Z3logDv8_f(<8 x float> %arg), !fpmath !0
77 define <16 x float> @test_log_v16f32(<16 x float> %arg) {
79 ; CHECK-SAME: (<16 x float> [[ARG:%.*]]) {
80 ; CHECK-NEXT: [[LOG:%.*]] = tail call <16 x float> @_Z3logDv16_f(<16 x float> [[ARG]]), !fpmath …
83 %log = tail call <16 x float> @_Z3logDv16_f(<16 x float> %arg), !fpmath !0
87 define float @test_log_cr_f32(float %arg) {
89 ; CHECK-SAME: (float [[ARG:%.*]]) {
90 ; CHECK-NEXT: [[LOG:%.*]] = tail call float @_Z3logf(float [[ARG]])
93 %log = tail call float @_Z3logf(float %arg)
97 define <2 x float> @test_log_cr_v2f32(<2 x float> %arg) {
99 ; CHECK-SAME: (<2 x float> [[ARG:%.*]]) {
100 ; CHECK-NEXT: [[LOG:%.*]] = tail call <2 x float> @_Z3logDv2_f(<2 x float> [[ARG]])
103 %log = tail call <2 x float> @_Z3logDv2_f(<2 x float> %arg)
107 define <3 x float> @test_log_cr_v3f32(<3 x float> %arg) {
109 ; CHECK-SAME: (<3 x float> [[ARG:%.*]]) {
110 ; CHECK-NEXT: [[LOG:%.*]] = tail call <3 x float> @_Z3logDv3_f(<3 x float> [[ARG]])
113 %log = tail call <3 x float> @_Z3logDv3_f(<3 x float> %arg)
117 define <4 x float> @test_log_cr_v4f32(<4 x float> %arg) {
119 ; CHECK-SAME: (<4 x float> [[ARG:%.*]]) {
120 ; CHECK-NEXT: [[LOG:%.*]] = tail call <4 x float> @_Z3logDv4_f(<4 x float> [[ARG]])
123 %log = tail call <4 x float> @_Z3logDv4_f(<4 x float> %arg)
127 define <8 x float> @test_log_cr_v8f32(<8 x float> %arg) {
129 ; CHECK-SAME: (<8 x float> [[ARG:%.*]]) {
130 ; CHECK-NEXT: [[LOG:%.*]] = tail call <8 x float> @_Z3logDv8_f(<8 x float> [[ARG]])
133 %log = tail call <8 x float> @_Z3logDv8_f(<8 x float> %arg)
137 define <16 x float> @test_log_cr_v16f32(<16 x float> %arg) {
139 ; CHECK-SAME: (<16 x float> [[ARG:%.*]]) {
140 ; CHECK-NEXT: [[LOG:%.*]] = tail call <16 x float> @_Z3logDv16_f(<16 x float> [[ARG]])
143 %log = tail call <16 x float> @_Z3logDv16_f(<16 x float> %arg)
147 define double @test_log_f64(double %arg) {
149 ; CHECK-SAME: (double [[ARG:%.*]]) {
150 ; CHECK-NEXT: [[LOG:%.*]] = tail call double @_Z3logd(double [[ARG]])
153 %log = tail call double @_Z3logd(double %arg)
157 define <2 x double> @test_log_v2f64(<2 x double> %arg) {
159 ; CHECK-SAME: (<2 x double> [[ARG:%.*]]) {
160 ; CHECK-NEXT: [[LOG:%.*]] = tail call <2 x double> @_Z3logDv2_d(<2 x double> [[ARG]])
163 %log = tail call <2 x double> @_Z3logDv2_d(<2 x double> %arg)
167 define <3 x double> @test_log_v3f64(<3 x double> %arg) {
169 ; CHECK-SAME: (<3 x double> [[ARG:%.*]]) {
170 ; CHECK-NEXT: [[LOG:%.*]] = tail call <3 x double> @_Z3logDv3_d(<3 x double> [[ARG]])
173 %log = tail call <3 x double> @_Z3logDv3_d(<3 x double> %arg)
177 define <4 x double> @test_log_v4f64(<4 x double> %arg) {
179 ; CHECK-SAME: (<4 x double> [[ARG:%.*]]) {
180 ; CHECK-NEXT: [[LOG:%.*]] = tail call <4 x double> @_Z3logDv4_d(<4 x double> [[ARG]])
183 %log = tail call <4 x double> @_Z3logDv4_d(<4 x double> %arg)
187 define <8 x double> @test_log_v8f64(<8 x double> %arg) {
189 ; CHECK-SAME: (<8 x double> [[ARG:%.*]]) {
190 ; CHECK-NEXT: [[LOG:%.*]] = tail call <8 x double> @_Z3logDv8_d(<8 x double> [[ARG]])
193 %log = tail call <8 x double> @_Z3logDv8_d(<8 x double> %arg)
197 define <16 x double> @test_log_v16f64(<16 x double> %arg) {
199 ; CHECK-SAME: (<16 x double> [[ARG:%.*]]) {
200 ; CHECK-NEXT: [[LOG:%.*]] = tail call <16 x double> @_Z3logDv16_d(<16 x double> [[ARG]])
203 %log = tail call <16 x double> @_Z3logDv16_d(<16 x double> %arg)
207 define half @test_log_f16(half %arg) {
209 ; CHECK-SAME: (half [[ARG:%.*]]) {
210 ; CHECK-NEXT: [[LOG:%.*]] = tail call half @_Z3logDh(half [[ARG]])
213 %log = tail call half @_Z3logDh(half %arg)
217 define half @test_log_f16_fast(half %arg) {
219 ; CHECK-SAME: (half [[ARG:%.*]]) {
220 ; CHECK-NEXT: [[LOG:%.*]] = tail call fast half @llvm.log.f16(half [[ARG]])
223 %log = tail call fast half @_Z3logDh(half %arg)
227 define <2 x half> @test_log_v2f16(<2 x half> %arg) {
229 ; CHECK-SAME: (<2 x half> [[ARG:%.*]]) {
230 ; CHECK-NEXT: [[LOG:%.*]] = tail call <2 x half> @_Z3logDv2_Dh(<2 x half> [[ARG]])
233 %log = tail call <2 x half> @_Z3logDv2_Dh(<2 x half> %arg)
237 define <3 x half> @test_log_v3f16(<3 x half> %arg) {
239 ; CHECK-SAME: (<3 x half> [[ARG:%.*]]) {
240 ; CHECK-NEXT: [[LOG:%.*]] = tail call <3 x half> @_Z3logDv3_Dh(<3 x half> [[ARG]])
243 %log = tail call <3 x half> @_Z3logDv3_Dh(<3 x half> %arg)
247 define <4 x half> @test_log_v4f16(<4 x half> %arg) {
249 ; CHECK-SAME: (<4 x half> [[ARG:%.*]]) {
250 ; CHECK-NEXT: [[LOG:%.*]] = tail call <4 x half> @_Z3logDv4_Dh(<4 x half> [[ARG]])
253 %log = tail call <4 x half> @_Z3logDv4_Dh(<4 x half> %arg)
257 define <8 x half> @test_log_v8f16(<8 x half> %arg) {
259 ; CHECK-SAME: (<8 x half> [[ARG:%.*]]) {
260 ; CHECK-NEXT: [[LOG:%.*]] = tail call <8 x half> @_Z3logDv8_Dh(<8 x half> [[ARG]])
263 %log = tail call <8 x half> @_Z3logDv8_Dh(<8 x half> %arg)
267 define <16 x half> @test_log_v16f16(<16 x half> %arg) {
269 ; CHECK-SAME: (<16 x half> [[ARG:%.*]]) {
270 ; CHECK-NEXT: [[LOG:%.*]] = tail call <16 x half> @_Z3logDv16_Dh(<16 x half> [[ARG]])
273 %log = tail call <16 x half> @_Z3logDv16_Dh(<16 x half> %arg)
277 define float @test_log_f32_nobuiltin_callsite(float %arg) {
279 ; CHECK-SAME: (float [[ARG:%.*]]) {
280 ; CHECK-NEXT: [[LOG:%.*]] = tail call float @_Z3logf(float [[ARG]]) #[[ATTR6:[0-9]+]], !fpmath !0
283 %log = tail call float @_Z3logf(float %arg) #0, !fpmath !0
287 define <2 x float> @test_log_v2f32_nobuiltin_callsite(<2 x float> %arg) {
289 ; CHECK-SAME: (<2 x float> [[ARG:%.*]]) {
290 ; CHECK-NEXT: [[LOG:%.*]] = tail call <2 x float> @_Z3logDv2_f(<2 x float> [[ARG]]) #[[ATTR6]], …
293 %log = tail call <2 x float> @_Z3logDv2_f(<2 x float> %arg) #0, !fpmath !0
297 define float @test_log_cr_f32_nobuiltin_callsite(float %arg) {
299 ; CHECK-SAME: (float [[ARG:%.*]]) {
300 ; CHECK-NEXT: [[LOG:%.*]] = tail call float @_Z3logf(float [[ARG]]) #[[ATTR6]]
303 %log = tail call float @_Z3logf(float %arg) #0
307 define <2 x float> @test_log_cr_v2f32_nobuiltin_callsite(<2 x float> %arg) {
309 ; CHECK-SAME: (<2 x float> [[ARG:%.*]]) {
310 ; CHECK-NEXT: [[LOG:%.*]] = tail call <2 x float> @_Z3logDv2_f(<2 x float> [[ARG]]) #[[ATTR6]]
313 %log = tail call <2 x float> @_Z3logDv2_f(<2 x float> %arg) #0
318 define float @test_log_f32_nobuiltins(float %arg) #1 {
320 ; CHECK-SAME: (float [[ARG:%.*]]) #[[ATTR0:[0-9]+]] {
321 ; CHECK-NEXT: [[LOG:%.*]] = tail call float @_Z3logf(float [[ARG]]) #[[ATTR6]], !fpmath !0
324 %log = tail call float @_Z3logf(float %arg) #0, !fpmath !0
328 define <2 x float> @test_log_v2f32_nobuiltins(<2 x float> %arg) #1 {
330 ; CHECK-SAME: (<2 x float> [[ARG:%.*]]) #[[ATTR0]] {
331 ; CHECK-NEXT: [[LOG:%.*]] = tail call <2 x float> @_Z3logDv2_f(<2 x float> [[ARG]]) #[[ATTR6]], …
334 %log = tail call <2 x float> @_Z3logDv2_f(<2 x float> %arg) #0, !fpmath !0
338 define float @test_log_cr_f32_nobuiltins(float %arg) #1 {
340 ; CHECK-SAME: (float [[ARG:%.*]]) #[[ATTR0]] {
341 ; CHECK-NEXT: [[LOG:%.*]] = tail call float @_Z3logf(float [[ARG]]) #[[ATTR6]]
344 %log = tail call float @_Z3logf(float %arg) #0
348 define <2 x float> @test_log_cr_v2f32_nobuiltins(<2 x float> %arg) #1 {
350 ; CHECK-SAME: (<2 x float> [[ARG:%.*]]) #[[ATTR0]] {
351 ; CHECK-NEXT: [[LOG:%.*]] = tail call <2 x float> @_Z3logDv2_f(<2 x float> [[ARG]]) #[[ATTR6]]
354 %log = tail call <2 x float> @_Z3logDv2_f(<2 x float> %arg) #0
358 define float @test_log_f32_preserve_flags(float %arg) {
360 ; CHECK-SAME: (float [[ARG:%.*]]) {
361 ; CHECK-NEXT: [[LOG:%.*]] = tail call nnan ninf float @llvm.log.f32(float [[ARG]]), !fpmath !0
364 %log = tail call nnan ninf float @_Z3logf(float %arg), !fpmath !0
368 define <2 x float> @test_log_v2f32_preserve_flags(<2 x float> %arg) {
370 ; CHECK-SAME: (<2 x float> [[ARG:%.*]]) {
371 …OG:%.*]] = tail call nnan nsz contract <2 x float> @llvm.log.v2f32(<2 x float> [[ARG]]), !fpmath !0
374 %log = tail call contract nsz nnan <2 x float> @_Z3logDv2_f(<2 x float> %arg), !fpmath !0
378 define float @test_log_f32_preserve_flags_md(float %arg) {
380 ; CHECK-SAME: (float [[ARG:%.*]]) {
381 ; CHECK-NEXT: [[LOG:%.*]] = tail call nnan ninf float @llvm.log.f32(float [[ARG]]), !fpmath !0, …
384 %log = tail call nnan ninf float @_Z3logf(float %arg), !fpmath !0, !foo !1
388 define <2 x float> @test_log_v2f32_preserve_flags_md(<2 x float> %arg) {
390 ; CHECK-SAME: (<2 x float> [[ARG:%.*]]) {
391 …]] = tail call nnan nsz contract <2 x float> @llvm.log.v2f32(<2 x float> [[ARG]]), !fpmath !0, !fo…
394 %log = tail call contract nsz nnan <2 x float> @_Z3logDv2_f(<2 x float> %arg), !fpmath !0, !foo !1
398 define float @test_log_cr_f32_preserve_flags(float %arg) {
400 ; CHECK-SAME: (float [[ARG:%.*]]) {
401 ; CHECK-NEXT: [[LOG:%.*]] = tail call ninf contract float @llvm.log.f32(float [[ARG]])
404 %log = tail call ninf contract float @_Z3logf(float %arg)
408 define <2 x float> @test_log_cr_v2f32_preserve_flags(<2 x float> %arg) {
410 ; CHECK-SAME: (<2 x float> [[ARG:%.*]]) {
411 ; CHECK-NEXT: [[LOG:%.*]] = tail call nnan nsz <2 x float> @llvm.log.v2f32(<2 x float> [[ARG]])
414 %log = tail call nnan nsz <2 x float> @_Z3logDv2_f(<2 x float> %arg)
422 define float @test_libm_log_f32(float %arg) {
424 ; CHECK-SAME: (float [[ARG:%.*]]) {
425 ; CHECK-NEXT: [[LOG:%.*]] = tail call float @logf(float [[ARG]])
428 %log = tail call float @logf(float %arg)
432 define float @test_libm_log_f32_fast(float %arg) {
434 ; CHECK-SAME: (float [[ARG:%.*]]) {
435 ; CHECK-NEXT: [[LOG:%.*]] = tail call fast float @logf(float [[ARG]])
438 %log = tail call fast float @logf(float %arg)
442 define float @test_libm_log_f32_fpmath(float %arg) {
444 ; CHECK-SAME: (float [[ARG:%.*]]) {
445 ; CHECK-NEXT: [[LOG:%.*]] = tail call float @logf(float [[ARG]]), !fpmath !0
448 %log = tail call float @logf(float %arg), !fpmath !0
452 define double @test_libm_log_f64(double %arg) {
454 ; CHECK-SAME: (double [[ARG:%.*]]) {
455 ; CHECK-NEXT: [[LOG:%.*]] = tail call double @log(double [[ARG]])
458 %log = tail call double @log(double %arg)
462 define double @test_libm_log_f64_fast(double %arg) {
464 ; CHECK-SAME: (double [[ARG:%.*]]) {
465 ; CHECK-NEXT: [[LOG:%.*]] = tail call fast double @log(double [[ARG]])
468 %log = tail call fast double @log(double %arg)
472 define double @test_libm_log_f64_fpmath(double %arg) {
474 ; CHECK-SAME: (double [[ARG:%.*]]) {
475 ; CHECK-NEXT: [[LOG:%.*]] = tail call double @log(double [[ARG]]), !fpmath !0
478 %log = tail call double @log(double %arg), !fpmath !0
482 define float @test_log_f32_fast_noinline(float %arg) {
484 ; CHECK-SAME: (float [[ARG:%.*]]) {
485 ; CHECK-NEXT: [[LOG:%.*]] = tail call fast float @_Z3logf(float [[ARG]]) #[[ATTR7:[0-9]+]], !fpm…
488 %log = tail call fast float @_Z3logf(float %arg) #3, !fpmath !0
492 define float @test_log_f32_fast_optsize(float %arg) #4 {
494 ; CHECK-SAME: (float [[ARG:%.*]]) #[[ATTR2:[0-9]+]] {
495 ; CHECK-NEXT: [[LOG:%.*]] = tail call fast float @llvm.log.f32(float [[ARG]]), !fpmath !0
498 %log = tail call fast float @_Z3logf(float %arg), !fpmath !0
502 define float @test_log_f32_fast_minsize(float %arg) #5 {
504 ; CHECK-SAME: (float [[ARG:%.*]]) #[[ATTR3:[0-9]+]] {
505 ; CHECK-NEXT: [[LOG:%.*]] = tail call fast float @llvm.log.f32(float [[ARG]]), !fpmath !0
508 %log = tail call fast float @_Z3logf(float %arg), !fpmath !0
512 define float @test_log_f32_nsz_contract_optsize(float %arg) #4 {
514 ; CHECK-SAME: (float [[ARG:%.*]]) #[[ATTR2]] {
515 ; CHECK-NEXT: [[LOG:%.*]] = tail call nsz contract float @llvm.log.f32(float [[ARG]]), !fpmath !0
518 %log = tail call nsz contract float @_Z3logf(float %arg), !fpmath !0
522 define float @test_log_f32_nsz_contract_minsize(float %arg) #5 {
524 ; CHECK-SAME: (float [[ARG:%.*]]) #[[ATTR3]] {
525 ; CHECK-NEXT: [[LOG:%.*]] = tail call nsz contract float @_Z3logf(float [[ARG]]), !fpmath !0
528 %log = tail call nsz contract float @_Z3logf(float %arg), !fpmath !0
532 define half @test_log_f16_fast_minsize(half %arg) #5 {
534 ; CHECK-SAME: (half [[ARG:%.*]]) #[[ATTR3]] {
535 ; CHECK-NEXT: [[LOG:%.*]] = tail call half @_Z3logDh(half [[ARG]])
538 %log = tail call half @_Z3logDh(half %arg)
542 define float @test_log_f32_strictfp(float %arg) #6 {
544 ; CHECK-SAME: (float [[ARG:%.*]]) #[[ATTR4:[0-9]+]] {
545 ; CHECK-NEXT: [[LOG:%.*]] = tail call nsz float @_Z3logf(float [[ARG]]) #[[ATTR4]]
548 %log = tail call nsz float @_Z3logf(float %arg) #6