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