This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Fix PR71984 testcase


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;
 }


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]