Mercurial > hg > CbC > CbC_llvm
view test/Transforms/InstCombine/pow-exp-nofastmath.ll @ 121:803732b1fca8
LLVM 5.0
author | kono |
---|---|
date | Fri, 27 Oct 2017 17:07:41 +0900 |
parents | 7d135dc70f03 |
children | c2174574ed3a |
line wrap: on
line source
; 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)