Xamarin Public Jenkins (auto-signing) 8625704ad8 Imported Upstream version 5.18.0.179
Former-commit-id: 67aa10e65b237e1c4537630979ee99ebe1374215
2018-10-25 08:34:57 +00:00

13 lines
472 B
LLVM

; Test that the pow won't get simplified to sqrt(fabs) when they are not available.
;
; RUN: opt < %s -disable-simplify-libcalls -instcombine -S | FileCheck %s
declare double @llvm.pow.f64(double %Val, double %Power)
define double @test_simplify_unavailable(double %x) {
; CHECK-LABEL: @test_simplify_unavailable(
%retval = call double @llvm.pow.f64(double %x, double 0.5)
; CHECK-NEXT: call double @llvm.pow.f64(double %x, double 5.000000e-01)
ret double %retval
}