diff options
Diffstat (limited to 'test/Transforms')
-rw-r--r-- | test/Transforms/InstCombine/fneg-ext.ll | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/fneg-ext.ll b/test/Transforms/InstCombine/fneg-ext.ll index 49ad232..922d26a 100644 --- a/test/Transforms/InstCombine/fneg-ext.ll +++ b/test/Transforms/InstCombine/fneg-ext.ll @@ -10,3 +10,14 @@ define double @test1(float %a, double %b) nounwind readnone ssp uwtable { %3 = fsub double %b, %2 ret double %3 } + +; CHECK: test2 +define double @test2(float %a, double %b) nounwind readnone ssp uwtable { +; CHECK-NOT: fsub +; CHECK: fpext +; CHECK: fadd fast + %1 = fsub float -0.000000e+00, %a + %2 = fpext float %1 to double + %3 = fsub fast double %b, %2 + ret double %3 +} |