You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
354 B
14 lines
354 B
4 months ago
|
; 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)
|
||
|
|