1 ; Test conversion of floating-point values to unsigned i32s (z10 only).
3 ; RUN: llc < %s -mtriple=s390x-linux-gnu -mcpu=z10 | FileCheck %s
5 ; z10 doesn't have native support for unsigned fp-to-i32 conversions;
6 ; they were added in z196 as the Convert to Logical family of instructions.
7 ; Promoting to i64 doesn't generate an inexact condition for values that are
8 ; outside the i32 range but in the i64 range, so use the default expansion.
11 define i32 @f1(float %f) {
18 %conv = fptoui float %f to i32
23 define i32 @f2(double %f) {
30 %conv = fptoui double %f to i32
35 define i32 @f3(fp128 *%src) {
42 %f = load fp128 , fp128 *%src
43 %conv = fptoui fp128 %f to i32