aboutsummaryrefslogtreecommitdiffstats
path: root/test/regression/floats-basics.c
diff options
context:
space:
mode:
authorXavier Leroy <xavierleroy@users.noreply.github.com>2019-09-11 15:13:12 +0200
committerGitHub <noreply@github.com>2019-09-11 15:13:12 +0200
commit7601fb5e792a5305336e5cda9794c4041d053b95 (patch)
treef0dc0acd7bb5ad6dae80e4389fb165fa93eb3cb8 /test/regression/floats-basics.c
parentd3eba50731c23546c6e9ccb14230460fc1da592e (diff)
parentc243b565ab0744086e10efcfee16768f6c3cf880 (diff)
downloadcompcert-7601fb5e792a5305336e5cda9794c4041d053b95.tar.gz
compcert-7601fb5e792a5305336e5cda9794c4041d053b95.zip
Merge pull request #313 from AbsInt/aarch64
Support target architecture AArch64 (ARMv8 in 64-bit mode)
Diffstat (limited to 'test/regression/floats-basics.c')
-rw-r--r--test/regression/floats-basics.c14
1 files changed, 3 insertions, 11 deletions
diff --git a/test/regression/floats-basics.c b/test/regression/floats-basics.c
index a7ba3623..876a0d42 100644
--- a/test/regression/floats-basics.c
+++ b/test/regression/floats-basics.c
@@ -1,18 +1,10 @@
-#include<stdio.h>
-#include<stdlib.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include "../endian.h"
#define STR_EXPAND(tok) #tok
#define STR(tok) STR_EXPAND(tok)
-#if defined(__ppc__) || defined(__PPC__) || defined(__ARMEB__)
-#define ARCH_BIG_ENDIAN
-#elif defined(__i386__) || defined(__x86_64__) || defined(__ARMEL__) \
- || defined(__riscv)
-#undef ARCH_BIG_ENDIAN
-#else
-#error "unknown endianness"
-#endif
-
union converter64 {
double dbl;
struct {