xref: /llvm-project/llvm/test/Transforms/InstCombine/pow-exp-nofastmath.ll (revision acdc419c897f8a9414c7a00c8908ac32312afee2)
1; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
2; RUN: opt < %s -passes=instcombine -S | FileCheck %s
3
4define double @mypow(double %x, double %y) {
5; CHECK-LABEL: @mypow(
6; CHECK-NEXT:    [[CALL:%.*]] = call double @exp(double [[X:%.*]])
7; CHECK-NEXT:    [[POW:%.*]] = call double @llvm.pow.f64(double [[CALL]], double [[Y:%.*]])
8; CHECK-NEXT:    ret double [[POW]]
9;
10  %call = call double @exp(double %x)
11  %pow = call double @llvm.pow.f64(double %call, double %y)
12  ret double %pow
13}
14
15declare double @exp(double) #1
16declare double @llvm.pow.f64(double, double)
17