1 ; Test conversions of unsigned i32s to floating-point values (z10 only).
3 ; RUN: llc < %s -mtriple=s390x-linux-gnu -mcpu=z10 | FileCheck %s
5 ; Check i32->f32. There is no native instruction, so we must promote
7 define float @f1(i32 %i) {
9 ; CHECK: llgfr [[REGISTER:%r[0-5]]], %r2
10 ; CHECK: cegbr %f0, [[REGISTER]]
12 %conv = uitofp i32 %i to float
17 define double @f2(i32 %i) {
19 ; CHECK: llgfr [[REGISTER:%r[0-5]]], %r2
20 ; CHECK: cdgbr %f0, [[REGISTER]]
22 %conv = uitofp i32 %i to double
27 define void @f3(i32 %i, fp128 *%dst) {
29 ; CHECK: llgfr [[REGISTER:%r[0-5]]], %r2
30 ; CHECK: cxgbr %f0, [[REGISTER]]
31 ; CHECK: std %f0, 0(%r3)
32 ; CHECK: std %f2, 8(%r3)
34 %conv = uitofp i32 %i to fp128
35 store fp128 %conv, fp128 *%dst