summaryrefslogtreecommitdiffstats
path: root/compiler-rt/test/Unit/fixxfdi_test.c
diff options
context:
space:
mode:
Diffstat (limited to 'compiler-rt/test/Unit/fixxfdi_test.c')
-rw-r--r--compiler-rt/test/Unit/fixxfdi_test.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/compiler-rt/test/Unit/fixxfdi_test.c b/compiler-rt/test/Unit/fixxfdi_test.c
index 9fe4e0a7cee..47820c35b5a 100644
--- a/compiler-rt/test/Unit/fixxfdi_test.c
+++ b/compiler-rt/test/Unit/fixxfdi_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 signed long long, rounding toward zero.
// Assumption: long double is an intel 80 bit floating point type padded with 6 bytes
@@ -39,12 +39,11 @@ int test__fixxfdi(long double a, di_int expected)
char assumption_1[sizeof(di_int) == 2*sizeof(si_int)] = {0};
char assumption_2[sizeof(su_int)*CHAR_BIT == 32] = {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__fixxfdi(0.0, 0))
return 1;
OpenPOWER on IntegriCloud