diff options
Diffstat (limited to 'llvm/test/Transforms/InstCombine/log-pow-nofastmath.ll')
-rw-r--r-- | llvm/test/Transforms/InstCombine/log-pow-nofastmath.ll | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/llvm/test/Transforms/InstCombine/log-pow-nofastmath.ll b/llvm/test/Transforms/InstCombine/log-pow-nofastmath.ll index 0811e63cc74..6c37c5466ce 100644 --- a/llvm/test/Transforms/InstCombine/log-pow-nofastmath.ll +++ b/llvm/test/Transforms/InstCombine/log-pow-nofastmath.ll @@ -13,5 +13,18 @@ entry: ; CHECK: ret double %call ; CHECK: } +define double @test3(double %x) #0 { + %call2 = call double @exp2(double %x) #0 + %call3 = call double @log(double %call2) #0 + ret double %call3 +} + +; CHECK-LABEL: @test3 +; CHECK: %call2 = call double @exp2(double %x) +; CHECK: %call3 = call double @log(double %call2) +; CHECK: ret double %call3 +; CHECK: } + declare double @log(double) #0 +declare double @exp2(double) declare double @llvm.pow.f64(double, double) |