summaryrefslogtreecommitdiff
path: root/test/builtins/Unit/floattixf_test.c
diff options
context:
space:
mode:
authorJoerg Sonnenberger <joerg@bec.de>2014-03-18 21:35:30 +0000
committerJoerg Sonnenberger <joerg@bec.de>2014-03-18 21:35:30 +0000
commit111c0b708ec2e6d3cb70a7a8d877ce36e68642fa (patch)
tree1ce5c137768ce4179e918afd6434df58ba10c4d9 /test/builtins/Unit/floattixf_test.c
parente65df207ef73bf915d4e57564b62193fce988196 (diff)
downloadcompiler-rt-111c0b708ec2e6d3cb70a7a8d877ce36e68642fa.tar.gz
Use CRT_HAS_128BIT.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@204182 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/builtins/Unit/floattixf_test.c')
-rw-r--r--test/builtins/Unit/floattixf_test.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/builtins/Unit/floattixf_test.c b/test/builtins/Unit/floattixf_test.c
index 4a9dfb56a..ce3566867 100644
--- a/test/builtins/Unit/floattixf_test.c
+++ b/test/builtins/Unit/floattixf_test.c
@@ -11,12 +11,12 @@
//
//===----------------------------------------------------------------------===//
-#if __x86_64
-
#include "int_lib.h"
#include <float.h>
#include <stdio.h>
+#ifdef CRT_HAS_128BIT
+
// 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
@@ -48,7 +48,7 @@ char assumption_3[sizeof(long double)*CHAR_BIT == 128] = {0};
int main()
{
-#if __x86_64
+#ifdef CRT_HAS_128BIT
if (test__floattixf(0, 0.0))
return 1;