1 ; Test strict conversions of unsigned i64s to floating-point values (z10 only).
3 ; RUN: llc < %s -mtriple=s390x-linux-gnu -mcpu=z10 | FileCheck %s
5 declare float @llvm.experimental.constrained.uitofp.f32.i64(i64, metadata, metadata)
6 declare double @llvm.experimental.constrained.uitofp.f64.i64(i64, metadata, metadata)
7 declare fp128 @llvm.experimental.constrained.uitofp.f128.i64(i64, metadata, metadata)
9 ; Test i64->f32. There's no native support for unsigned i64-to-fp conversions,
10 ; but we should be able to implement them using signed i64-to-fp conversions.
11 define float @f1(i64 %i) #0 {
16 %conv = call float @llvm.experimental.constrained.uitofp.f32.i64(i64 %i,
17 metadata !"round.dynamic",
18 metadata !"fpexcept.strict") #0
23 define double @f2(i64 %i) #0 {
28 %conv = call double @llvm.experimental.constrained.uitofp.f64.i64(i64 %i,
29 metadata !"round.dynamic",
30 metadata !"fpexcept.strict") #0
35 define void @f3(i64 %i, ptr %dst) #0 {
40 %conv = call fp128 @llvm.experimental.constrained.uitofp.f128.i64(i64 %i,
41 metadata !"round.dynamic",
42 metadata !"fpexcept.strict") #0
43 store fp128 %conv, ptr %dst
47 attributes #0 = { strictfp }