mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-23 22:15:25 +00:00
[ConstantFold] Remove test checking that we don't constant-fold sqrt(-2).
This depended on libm's errno behavior (we constant fold iff libm's sqrt(-2) does not set errno) and was breaking on mac. llvm-svn: 292701
This commit is contained in:
parent
309d88535a
commit
1a976ec6c1
@ -45,13 +45,4 @@ define double @constant_fold_fmuladd_f64() #0 {
|
||||
ret double %x
|
||||
}
|
||||
|
||||
; Currently we don't constant-fold intrinsics whose corresponding libcalls
|
||||
; raise an fp exception.
|
||||
; CHECK-LABEL: @bad_sqrt
|
||||
; CHECK-NEXT: call double @llvm.sqrt.f64(double -2
|
||||
define double @bad_sqrt() {
|
||||
%x = call double @llvm.sqrt.f64(double -2.000000e+00)
|
||||
ret double %x
|
||||
}
|
||||
|
||||
attributes #0 = { nounwind readnone }
|
||||
|
Loading…
x
Reference in New Issue
Block a user