summaryrefslogtreecommitdiffstats
path: root/compiler-rt/test/Unit/floatdixf_test.c
diff options
context:
space:
mode:
authorNick Kledzik <kledzik@apple.com>2009-09-11 19:09:36 +0000
committerNick Kledzik <kledzik@apple.com>2009-09-11 19:09:36 +0000
commit7e71865ca5a876825a2e43649246119789a35c36 (patch)
tree22a3ad5e808774c50ff557d0f29119b7b3f2c666 /compiler-rt/test/Unit/floatdixf_test.c
parent31e48cdb5dcc7176b47ba417407b21d1172842a1 (diff)
downloadbcm5719-llvm-7e71865ca5a876825a2e43649246119789a35c36.tar.gz
bcm5719-llvm-7e71865ca5a876825a2e43649246119789a35c36.zip
use HAS_80_BIT_LONG_DOUBLE so some tests work properly on arm
llvm-svn: 81552
Diffstat (limited to 'compiler-rt/test/Unit/floatdixf_test.c')
-rw-r--r--compiler-rt/test/Unit/floatdixf_test.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/compiler-rt/test/Unit/floatdixf_test.c b/compiler-rt/test/Unit/floatdixf_test.c
index cb3f5e0a3bf..d96c7e8e41c 100644
--- a/compiler-rt/test/Unit/floatdixf_test.c
+++ b/compiler-rt/test/Unit/floatdixf_test.c
@@ -11,11 +11,10 @@
//
//===----------------------------------------------------------------------===//
-#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 +37,11 @@ int test__floatdixf(di_int a, long double expected)
char assumption_1[sizeof(di_int) == 2*sizeof(si_int)] = {0};
char assumption_2[sizeof(di_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__floatdixf(0, 0.0))
return 1;
OpenPOWER on IntegriCloud