[ConstProp] Fix calls-math-finite.ll on FreeBSD
authorFangrui Song <maskray@google.com>
Thu, 26 Jul 2018 06:24:11 +0000 (06:24 +0000)
committerFangrui Song <maskray@google.com>
Thu, 26 Jul 2018 06:24:11 +0000 (06:24 +0000)
FreeBSD's log(3.0) is less precise than glibc and musl.
Let's forgive its rounding error of more than half an ulp.

llvm-svn: 338009

llvm/test/Transforms/ConstProp/calls-math-finite.ll

index 2713045..9374161 100644 (file)
@@ -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]]