1 ; Test conversions of signed i32s to floating-point values.
3 ; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s
6 define float @f1(i32 %i) {
8 ; CHECK: cefbr %f0, %r2
10 %conv = sitofp i32 %i to float
15 define double @f2(i32 %i) {
17 ; CHECK: cdfbr %f0, %r2
19 %conv = sitofp i32 %i to double
24 define void @f3(i32 %i, fp128 *%dst) {
26 ; CHECK: cxfbr %f0, %r2
27 ; CHECK: std %f0, 0(%r3)
28 ; CHECK: std %f2, 8(%r3)
30 %conv = sitofp i32 %i to fp128
31 store fp128 %conv, fp128 *%dst