Fix pointer info on PPC byval stores
[oota-llvm.git] / test / Transforms / InstCombine / 2008-11-08-FCmp.ll
index c636288661b1c6f57345e75c7a0d2e6d96460a08..f33a1f59f61b290bfa304f0175a172d2a7d82625 100644 (file)
@@ -45,3 +45,12 @@ define i1 @test6(i32 %val) {
   ret i1 %2
 ; CHECK: ret i1 false
 }
+
+; Check that optimizing unsigned >= comparisons correctly distinguishes
+; positive and negative constants.  <rdar://problem/12029145>
+define i1 @test7(i32 %val) {
+  %1 = uitofp i32 %val to double
+  %2 = fcmp oge double %1, 3.200000e+00
+  ret i1 %2
+; CHECK: icmp ugt i32 %val, 3
+}