1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 2
2 ; RUN: llc -mcpu=pwr9 -mtriple=powerpc64le-unknown-unknown \
3 ; RUN: -ppc-vsr-nums-as-vr -ppc-asm-full-reg-names < %s | FileCheck %s
5 define float @call_exp10f(float %a) {
6 ; CHECK-LABEL: call_exp10f:
9 ; CHECK-NEXT: stdu r1, -32(r1)
10 ; CHECK-NEXT: std r0, 48(r1)
11 ; CHECK-NEXT: .cfi_def_cfa_offset 32
12 ; CHECK-NEXT: .cfi_offset lr, 16
13 ; CHECK-NEXT: bl exp10f
15 ; CHECK-NEXT: addi r1, r1, 32
16 ; CHECK-NEXT: ld r0, 16(r1)
19 %result = call float @exp10f(float %a)
23 define double @call_exp10(double %a) {
24 ; CHECK-LABEL: call_exp10:
27 ; CHECK-NEXT: stdu r1, -32(r1)
28 ; CHECK-NEXT: std r0, 48(r1)
29 ; CHECK-NEXT: .cfi_def_cfa_offset 32
30 ; CHECK-NEXT: .cfi_offset lr, 16
31 ; CHECK-NEXT: bl exp10
33 ; CHECK-NEXT: addi r1, r1, 32
34 ; CHECK-NEXT: ld r0, 16(r1)
37 %result = call double @exp10(double %a)
41 define ppc_fp128 @call_exp10l(ppc_fp128 %a) {
42 ; CHECK-LABEL: call_exp10l:
45 ; CHECK-NEXT: stdu r1, -32(r1)
46 ; CHECK-NEXT: std r0, 48(r1)
47 ; CHECK-NEXT: .cfi_def_cfa_offset 32
48 ; CHECK-NEXT: .cfi_offset lr, 16
49 ; CHECK-NEXT: bl exp10l
51 ; CHECK-NEXT: addi r1, r1, 32
52 ; CHECK-NEXT: ld r0, 16(r1)
55 %result = call ppc_fp128 @exp10l(ppc_fp128 %a)
59 declare float @exp10f(float %a) #0
60 declare double @exp10(double %a) #0
61 declare ppc_fp128 @exp10l(ppc_fp128 %a) #0
63 attributes #0 = { nounwind readonly }