Mercurial > hg > CbC > CbC_llvm
diff test/Transforms/InstCombine/pow-sqrt.ll @ 100:7d135dc70f03 LLVM 3.9
LLVM 3.9
author | Miyagi Mitsuki <e135756@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 26 Jan 2016 22:53:40 +0900 |
parents | |
children | 803732b1fca8 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test/Transforms/InstCombine/pow-sqrt.ll Tue Jan 26 22:53:40 2016 +0900 @@ -0,0 +1,13 @@ +; RUN: opt < %s -instcombine -S | FileCheck %s + +define double @pow_half(double %x) { + %pow = call fast double @llvm.pow.f64(double %x, double 5.000000e-01) + ret double %pow +} + +; CHECK-LABEL: define double @pow_half( +; CHECK-NEXT: %sqrt = call fast double @sqrt(double %x) +; CHECK-NEXT: ret double %sqrt + +declare double @llvm.pow.f64(double, double) +