1 ; Test rint()-like rounding, with non-integer values triggering an
4 ; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s
7 declare float @llvm.rint.f32(float %f)
8 define float @f1(float %f) {
10 ; CHECK: fiebr %f0, 0, %f0
12 %res = call float @llvm.rint.f32(float %f)
17 declare double @llvm.rint.f64(double %f)
18 define double @f2(double %f) {
20 ; CHECK: fidbr %f0, 0, %f0
22 %res = call double @llvm.rint.f64(double %f)
27 declare fp128 @llvm.rint.f128(fp128 %f)
28 define void @f3(fp128 *%ptr) {
30 ; CHECK: fixbr %f0, 0, %f0
32 %src = load fp128 *%ptr
33 %res = call fp128 @llvm.rint.f128(fp128 %src)
34 store fp128 %res, fp128 *%ptr