[llvm-branch-commits] [compiler-rt] d3592fe - feedback
Sam Clegg via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Mon Feb 10 19:33:31 PST 2020
Author: Sam Clegg
Date: 2020-02-10T19:33:02-08:00
New Revision: d3592fec22a6769ab29656a490d1f3e1725add2c
URL: https://github.com/llvm/llvm-project/commit/d3592fec22a6769ab29656a490d1f3e1725add2c
DIFF: https://github.com/llvm/llvm-project/commit/d3592fec22a6769ab29656a490d1f3e1725add2c.diff
LOG: feedback
Added:
Modified:
compiler-rt/lib/builtins/powitf2.c
compiler-rt/test/builtins/Unit/powitf2_test.c
Removed:
################################################################################
diff --git a/compiler-rt/lib/builtins/powitf2.c b/compiler-rt/lib/builtins/powitf2.c
index 22617401270b..141a3a0ea727 100644
--- a/compiler-rt/lib/builtins/powitf2.c
+++ b/compiler-rt/lib/builtins/powitf2.c
@@ -10,9 +10,10 @@
//
//===----------------------------------------------------------------------===//
-#include "int_lib.h"
+#define QUAD_PRECISION
+#include "fp_lib.h"
-#if defined(_ARCH_PPC) || defined(__wasm__)
+#if defined(CRT_HAS_128BIT) && defined(CRT_LDBL_128BIT)
// Returns: a ^ b
diff --git a/compiler-rt/test/builtins/Unit/powitf2_test.c b/compiler-rt/test/builtins/Unit/powitf2_test.c
index 2e679e30a9dc..fd25f38d5177 100644
--- a/compiler-rt/test/builtins/Unit/powitf2_test.c
+++ b/compiler-rt/test/builtins/Unit/powitf2_test.c
@@ -14,7 +14,7 @@
#include <stdio.h>
-#if defined (_ARCH_PPC) || defined (__wasm__)
+#if __LDBL_MANT_DIG__ == 113
#include "int_lib.h"
#include <math.h>
@@ -37,7 +37,7 @@ int test__powitf2(long double a, si_int b, long double expected)
int main()
{
-#if defined(_ARCH_PPC) || defined (__wasm__)
+#if __LDBL_MANT_DIG__ == 113
if (test__powitf2(0, 0, 1))
return 1;
if (test__powitf2(1, 0, 1))
More information about the llvm-branch-commits
mailing list