summaryrefslogtreecommitdiffstats
path: root/compiler-rt/test/Unit/floatundixf_test.c
diff options
context:
space:
mode:
Diffstat (limited to 'compiler-rt/test/Unit/floatundixf_test.c')
-rw-r--r--compiler-rt/test/Unit/floatundixf_test.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/compiler-rt/test/Unit/floatundixf_test.c b/compiler-rt/test/Unit/floatundixf_test.c
index 11263482764..40e1d720efc 100644
--- a/compiler-rt/test/Unit/floatundixf_test.c
+++ b/compiler-rt/test/Unit/floatundixf_test.c
@@ -11,11 +11,11 @@
//
//===----------------------------------------------------------------------===//
-#if !_ARCH_PPC
-
#include "int_lib.h"
#include <stdio.h>
+
+#if HAS_80_BIT_LONG_DOUBLE
// Returns: convert a to a long double, rounding toward even.
// Assumption: long double is a IEEE 80 bit floating point type padded to 128 bits
@@ -38,12 +38,11 @@ int test__floatundixf(du_int a, long double expected)
char assumption_1[sizeof(du_int) == 2*sizeof(si_int)] = {0};
char assumption_2[sizeof(du_int)*CHAR_BIT == 64] = {0};
char assumption_3[sizeof(long double)*CHAR_BIT == 128] = {0};
-
#endif
int main()
{
-#if !_ARCH_PPC
+#if HAS_80_BIT_LONG_DOUBLE
if (test__floatundixf(0, 0.0))
return 1;
OpenPOWER on IntegriCloud