1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-22 12:33:33 +02:00
llvm-mirror/test/Transforms/InstCombine/pow-sqrt.ll
2015-11-18 23:21:32 +00:00

16 lines
397 B
LLVM

; RUN: opt < %s -instcombine -S | FileCheck %s
define double @mypow(double %x) #0 {
entry:
%pow = call double @llvm.pow.f64(double %x, double 5.000000e-01)
ret double %pow
}
; CHECK-LABEL: define double @mypow(
; CHECK: %sqrt = call double @sqrt(double %x) #1
; CHECK: ret double %sqrt
; CHECK: }
declare double @llvm.pow.f64(double, double)
attributes #0 = { "unsafe-fp-math"="true" }