1*9880d681SAndroid Build Coastguard Worker; Test conversions of unsigned i64s to floating-point values (z10 only). 2*9880d681SAndroid Build Coastguard Worker; 3*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s -mtriple=s390x-linux-gnu -mcpu=z10 | FileCheck %s 4*9880d681SAndroid Build Coastguard Worker 5*9880d681SAndroid Build Coastguard Worker; Test i64->f32. There's no native support for unsigned i64-to-fp conversions, 6*9880d681SAndroid Build Coastguard Worker; but we should be able to implement them using signed i64-to-fp conversions. 7*9880d681SAndroid Build Coastguard Workerdefine float @f1(i64 %i) { 8*9880d681SAndroid Build Coastguard Worker; CHECK-LABEL: f1: 9*9880d681SAndroid Build Coastguard Worker; CHECK: cegbr 10*9880d681SAndroid Build Coastguard Worker; CHECK: aebr 11*9880d681SAndroid Build Coastguard Worker; CHECK: br %r14 12*9880d681SAndroid Build Coastguard Worker %conv = uitofp i64 %i to float 13*9880d681SAndroid Build Coastguard Worker ret float %conv 14*9880d681SAndroid Build Coastguard Worker} 15*9880d681SAndroid Build Coastguard Worker 16*9880d681SAndroid Build Coastguard Worker; Test i64->f64. 17*9880d681SAndroid Build Coastguard Workerdefine double @f2(i64 %i) { 18*9880d681SAndroid Build Coastguard Worker; CHECK-LABEL: f2: 19*9880d681SAndroid Build Coastguard Worker; CHECK: ldgr 20*9880d681SAndroid Build Coastguard Worker; CHECK: adbr 21*9880d681SAndroid Build Coastguard Worker; CHECK: br %r14 22*9880d681SAndroid Build Coastguard Worker %conv = uitofp i64 %i to double 23*9880d681SAndroid Build Coastguard Worker ret double %conv 24*9880d681SAndroid Build Coastguard Worker} 25*9880d681SAndroid Build Coastguard Worker 26*9880d681SAndroid Build Coastguard Worker; Test i64->f128. 27*9880d681SAndroid Build Coastguard Workerdefine void @f3(i64 %i, fp128 *%dst) { 28*9880d681SAndroid Build Coastguard Worker; CHECK-LABEL: f3: 29*9880d681SAndroid Build Coastguard Worker; CHECK: cxgbr 30*9880d681SAndroid Build Coastguard Worker; CHECK: axbr 31*9880d681SAndroid Build Coastguard Worker; CHECK: br %r14 32*9880d681SAndroid Build Coastguard Worker %conv = uitofp i64 %i to fp128 33*9880d681SAndroid Build Coastguard Worker store fp128 %conv, fp128 *%dst 34*9880d681SAndroid Build Coastguard Worker ret void 35*9880d681SAndroid Build Coastguard Worker} 36