From bd6a21e2e7c87725b9a1992e0179dae1009e7d40 Mon Sep 17 00:00:00 2001 From: xleroy Date: Mon, 5 Jan 2009 10:29:33 +0000 Subject: Endianness in tests git-svn-id: https://yquem.inria.fr/compcert/svn/compcert/trunk@939 fca1b0fc-160b-0410-b1d3-a4f43f01ea2e --- test/cminor/sha1.cmp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'test/cminor/sha1.cmp') diff --git a/test/cminor/sha1.cmp b/test/cminor/sha1.cmp index 9d7744c5..98a6b51a 100644 --- a/test/cminor/sha1.cmp +++ b/test/cminor/sha1.cmp @@ -6,7 +6,13 @@ extern "memcpy" : int -> int -> int -> void extern "memset" : int -> int -> int -> void +#if defined(__ppc__) || defined(__PPC__) #define ARCH_BIG_ENDIAN +#elif defined(__i386__) || defined(__x86_64__) || defined(__ARMEL__) +#undef ARCH_BIG_ENDIAN +#else +#error "unknown endianness" +#endif #define rol1(x) (((x) << 1) | ((x) >>u 31)) #define rol5(x) (((x) << 5) | ((x) >>u 27)) -- cgit