Changeset View
Changeset View
Standalone View
Standalone View
llvm/trunk/test/Transforms/InstCombine/constant-fold-libfunc.ll
Show All 17 Lines | |||||
; CHECK-LABEL: @test_acos_nobuiltin | ; CHECK-LABEL: @test_acos_nobuiltin | ||||
%pi = call double @acos(double -1.000000e+00) nobuiltin | %pi = call double @acos(double -1.000000e+00) nobuiltin | ||||
; CHECK: call double @acos(double -1.000000e+00) | ; CHECK: call double @acos(double -1.000000e+00) | ||||
ret double %pi | ret double %pi | ||||
} | } | ||||
; Check that we don't constant fold strictfp results that require rounding. | ; Check that we don't constant fold strictfp results that require rounding. | ||||
define double @test_acos_strictfp() { | define double @test_acos_strictfp() strictfp { | ||||
; CHECK-LABEL: @test_acos_strictfp | ; CHECK-LABEL: @test_acos_strictfp | ||||
%pi = call double @acos(double -1.000000e+00) strictfp | %pi = call double @acos(double -1.000000e+00) strictfp | ||||
; CHECK: call double @acos(double -1.000000e+00) | ; CHECK: call double @acos(double -1.000000e+00) | ||||
ret double %pi | ret double %pi | ||||
} | } |