[llvm] r338009 - [ConstProp] Fix calls-math-finite.ll on FreeBSD

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 25 23:24:11 PDT 2018


Author: maskray
Date: Wed Jul 25 23:24:11 2018
New Revision: 338009

URL: http://llvm.org/viewvc/llvm-project?rev=338009&view=rev
Log:
[ConstProp] Fix calls-math-finite.ll on FreeBSD

FreeBSD's log(3.0) is less precise than glibc and musl.
Let's forgive its rounding error of more than half an ulp.

Modified:
    llvm/trunk/test/Transforms/ConstProp/calls-math-finite.ll

Modified: llvm/trunk/test/Transforms/ConstProp/calls-math-finite.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/ConstProp/calls-math-finite.ll?rev=338009&r1=338008&r2=338009&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/ConstProp/calls-math-finite.ll (original)
+++ llvm/trunk/test/Transforms/ConstProp/calls-math-finite.ll Wed Jul 25 23:24:11 2018
@@ -41,7 +41,7 @@ define void @T() {
 ; CHECK-NEXT:    store double 0x402422A497D6185E, double* [[SLOT]]
 ; CHECK-NEXT:    store double 0x403415E5BF6FB106, double* [[SLOT]]
 ; CHECK-NEXT:    store double 8.000000e+00, double* [[SLOT]]
-; CHECK-NEXT:    store double 0x3FF193EA7AAD030B, double* [[SLOT]]
+; CHECK-NEXT:    store double 0x3FF193EA7AAD030{{[AB]}}, double* [[SLOT]]
 ; CHECK-NEXT:    store double 0x3FDE8927964FD5FD, double* [[SLOT]]
 ; CHECK-NEXT:    store double 1.000000e+00, double* [[SLOT]]
 ; CHECK-NEXT:    store double 0x40240926E70949AE, double* [[SLOT]]




More information about the llvm-commits mailing list