brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.2 KiB · c963d85 Raw
48 lines · plain
1; RUN: llc -mtriple s390x-zos < %s | FileCheck %s2 3define float @sqrt_ieee(float %x) {4entry:5  %res = call float @llvm.sqrt.f32(float %x)6  ret float %res7}8 9define float @cos_ieee(float %x) {10entry:11  %res = call float @llvm.cos.f32(float %x)12  ret float %res13}14 15define double @sin_ieee(double %x) {16entry:17  %res = call double @llvm.sin.f64(double %x)18  ret double %res19}20 21define fp128 @exp2_ieee(fp128 %x) {22entry:23  %res = call fp128 @llvm.exp2.f128(fp128 %x)24  ret fp128 %res25}26 27declare float @llvm.sqrt.f32(float)28declare float @llvm.cos.f32(float)29declare double @llvm.sin.f64(double)30declare fp128 @llvm.exp2.f128(fp128)31 32; Check the calls in the ADA.33; CHECK: stdin#C CSECT34; CHECK: C_WSA64 CATTR ALIGN(4),FILL(0),DEFLOAD,NOTEXECUTABLE,RMODE(64),PART(stdin#S)35; CHECK: stdin#S XATTR LINKAGE(XPLINK),REFERENCE(DATA),SCOPE(SECTION)36 37; Check that there is no call to sqrt.38; CHECK-NOT:  .quad   R(@@WSQT@B)39; CHECK-NOT:  .quad   V(@@WSQT@B)40 41; Check that there is the correct library call.42; CHECK:      .quad   R(@@FCOS@B)43; CHECK-NEXT: .quad   V(@@FCOS@B)44; CHECK:      .quad   R(@@SSIN@B)45; CHECK-NEXT: .quad   V(@@SSIN@B)46; CHECK:      .quad   R(@@LXP2@B)47; CHECK-NEXT: .quad   V(@@LXP2@B)48