diff options
| author | Justin Lebar <jlebar@google.com> | 2017-01-21 02:02:27 +0000 | 
|---|---|---|
| committer | Justin Lebar <jlebar@google.com> | 2017-01-21 02:02:27 +0000 | 
| commit | ba4041ac4fd09d9d2805b5d8cc0786b6234d8f12 (patch) | |
| tree | 16e4fe84ad92c03cebf92e9cadaa5373e7590026 | |
| parent | b365d921cf1432a76027e8b97f3df1142e3827ca (diff) | |
| download | bcm5719-llvm-ba4041ac4fd09d9d2805b5d8cc0786b6234d8f12.tar.gz bcm5719-llvm-ba4041ac4fd09d9d2805b5d8cc0786b6234d8f12.zip | |
[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
| -rw-r--r-- | llvm/test/Transforms/InstCombine/constant-fold-math.ll | 9 | 
1 files changed, 0 insertions, 9 deletions
| diff --git a/llvm/test/Transforms/InstCombine/constant-fold-math.ll b/llvm/test/Transforms/InstCombine/constant-fold-math.ll index 6eb371addd3..50cd6070896 100644 --- a/llvm/test/Transforms/InstCombine/constant-fold-math.ll +++ b/llvm/test/Transforms/InstCombine/constant-fold-math.ll @@ -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 } | 

