1 ; Test conversion of floating-point values to signed i32s.
3 ; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s
6 define i32 @f1(float %f) {
8 ; CHECK: cfebr %r2, 5, %f0
10 %conv = fptosi float %f to i32
15 define i32 @f2(double %f) {
17 ; CHECK: cfdbr %r2, 5, %f0
19 %conv = fptosi double %f to i32
24 define i32 @f3(ptr %src) {
26 ; CHECK: ld %f0, 0(%r2)
27 ; CHECK: ld %f2, 8(%r2)
28 ; CHECK: cfxbr %r2, 5, %f0
30 %f = load fp128, ptr %src
31 %conv = fptosi fp128 %f to i32