1 ; RUN: llc -mtriple s390x-zos < %s | FileCheck %s
3 define float @sqrt_ieee(float %x) {
5 %res = call float @llvm.sqrt.f32(float %x)
9 define float @cos_ieee(float %x) {
11 %res = call float @llvm.cos.f32(float %x)
15 define double @sin_ieee(double %x) {
17 %res = call double @llvm.sin.f64(double %x)
21 define fp128 @exp2_ieee(fp128 %x) {
23 %res = call fp128 @llvm.exp2.f128(fp128 %x)
27 declare float @llvm.sqrt.f32(float)
28 declare float @llvm.cos.f32(float)
29 declare double @llvm.sin.f64(double)
30 declare fp128 @llvm.exp2.f128(fp128)
32 ; Check the calls in the ADA.
33 ; CHECK: .section ".ada"
35 ; Check that there is no call to sqrt.
36 ; CHECK-NOT: .quad R(@@WSQT@B)
37 ; CHECK-NOT: .quad V(@@WSQT@B)
39 ; Check that there is the correct library call.
40 ; CHECK: .quad R(@@FCOS@B)
41 ; CHECK-NEXT: .quad V(@@FCOS@B)
42 ; CHECK: .quad R(@@SSIN@B)
43 ; CHECK-NEXT: .quad V(@@SSIN@B)
44 ; CHECK: .quad R(@@LXP2@B)
45 ; CHECK-NEXT: .quad V(@@LXP2@B)