summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/InstCombine/pow-exp-nofastmath.ll
blob: 9e596fa3a7233609a613cc83302353a782a88473 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
; RUN: opt < %s -instcombine -S | FileCheck %s

define double @mypow(double %x, double %y) #0 {
entry:
  %call = call double @exp(double %x)
  %pow = call double @llvm.pow.f64(double %call, double %y)
  ret double %pow
}

; CHECK-LABEL: define double @mypow(
; CHECK:   %call = call double @exp(double %x)
; CHECK:   %pow = call double @llvm.pow.f64(double %call, double %y)
; CHECK:   ret double %pow
; CHECK: }

declare double @exp(double) #1
declare double @llvm.pow.f64(double, double)
OpenPOWER on IntegriCloud