1 ; RUN: llvm-as < %s | opt -instcombine | llvm-dis | not grep sitofp
3 define i1 @test1(i8 %A) {
4 %B = sitofp i8 %A to double
5 %C = fcmp ult double %B, 128.0
8 define i1 @test2(i8 %A) {
9 %B = sitofp i8 %A to double
10 %C = fcmp ugt double %B, -128.1
14 define i1 @test3(i8 %A) {
15 %B = sitofp i8 %A to double
16 %C = fcmp ule double %B, 127.0
20 define i1 @test4(i8 %A) {
21 %B = sitofp i8 %A to double
22 %C = fcmp ult double %B, 127.0