Fix pointer info on PPC byval stores
[oota-llvm.git] / test / Transforms / InstCombine / fpcast.ll
index 05d1b48d59964693ae971765dd81a4a627d0ddc8..9be66fd42c68d75a1d03cd6e478a078431a9daf0 100644 (file)
@@ -31,6 +31,15 @@ define half @test4(float %a) {
   ret half %c
 }
 
+; CHECK: test4-fast
+define half @test4-fast(float %a) {
+; CHECK: fptrunc
+; CHECK: fsub fast
+  %b = fsub fast float -0.0, %a
+  %c = fptrunc float %b to half
+  ret half %c
+}
+
 ; CHECK: test5
 define half @test5(float %a, float %b, float %c) {
 ; CHECK: fcmp ogt