This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Fix PR71984 testcase
- From: Richard Biener <rguenther at suse dot de>
- To: gcc-patches at gcc dot gnu dot org
- Date: Thu, 4 Aug 2016 09:02:16 +0200 (CEST)
- Subject: [PATCH] Fix PR71984 testcase
- Authentication-results: sourceware.org; auth=none
Committed.
Richard.
2016-08-04 Richard Biener <rguenther@suse.de>
PR middle-end/71984
* gcc.dg/torture/pr71984.c: Guard correctness check for
little-endian.
Index: gcc/testsuite/gcc.dg/torture/pr71984.c
===================================================================
--- gcc/testsuite/gcc.dg/torture/pr71984.c (revision 239113)
+++ gcc/testsuite/gcc.dg/torture/pr71984.c (working copy)
@@ -15,7 +15,9 @@ int
main ()
{
u8 x = foo((v64u64){0x0706050403020100UL});
+#if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
if (x != 5)
__builtin_abort ();
+#endif
return 0;
}