From: Justin Lebar Date: Sat, 21 Jan 2017 02:02:27 +0000 (+0000) Subject: [ConstantFold] Remove test checking that we don't constant-fold sqrt(-2). X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f103cf347377f8c68822d5e458f3e6ee589893d9;p=llvm [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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@292701 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Transforms/InstCombine/constant-fold-math.ll b/test/Transforms/InstCombine/constant-fold-math.ll index 6eb371addd3..50cd6070896 100644 --- a/test/Transforms/InstCombine/constant-fold-math.ll +++ b/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 }