1 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
2 ; RUN: opt -S -passes=float2int < %s | FileCheck %s
8 ; CHECK-NEXT: [[CMP:%.*]] = icmp eq i32 -1, -1
9 ; CHECK-NEXT: ret i1 [[CMP]]
11 %add = fadd double 2.000000e+00, -1.000000e+00
12 %mul = fmul double %add, 0x41EFFFFFFFE00000
13 %conv = fptoui double %mul to i32
14 %cmp = icmp eq i32 %conv, -1
15 %conv2 = fptoui double %add to i32