bswap-2.c (main): Handle more bitfield layouts.
authorAndreas Schwab <schwab@suse.de>
Sat, 24 May 2014 18:54:28 +0000 (18:54 +0000)
committerAndreas Schwab <schwab@gcc.gnu.org>
Sat, 24 May 2014 18:54:28 +0000 (18:54 +0000)
* gcc.c-torture/execute/bswap-2.c (main): Handle more bitfield
layouts.

From-SVN: r210897

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/bswap-2.c

index 47d4171321224ddb2c142ab1707037427ca721ce..69358cb186067762c11378fe6276e49f15c0adf1 100644 (file)
@@ -1,3 +1,8 @@
+2014-05-24  Andreas Schwab  <schwab@suse.de>
+
+       * gcc.c-torture/execute/bswap-2.c (main): Handle more bitfield
+       layouts.
+
 2014-05-24  Dominique d'Humieres <dominiq@lps.ens.fr>
 
        * gfortran.dg/gfortran.dg/bind_c_array_params_2.f90:
index e91b4874fc89ca06a640a49f9becc33c6ad15896..38f18fd6c95748c190ad3c551644e4b24577d34e 100644 (file)
@@ -74,11 +74,11 @@ main ()
     return 0;
   bfin.inval = (struct ok) { 0x83, 0x85, 0x87, 0x89 };
   out = partial_read_le32 (bfin);
-  if (out != 0x09070503 && out != 0x88868482)
+  if (out != 0x09070503 && out != 0x88868482 && out != 0x78306141)
     __builtin_abort ();
   bfin.inval = (struct ok) { 0x83, 0x85, 0x87, 0x89 };
   out = partial_read_be32 (bfin);
-  if (out != 0x03050709 && out != 0x82848688)
+  if (out != 0x03050709 && out != 0x82848688 && out != 0x41613078)
     __builtin_abort ();
   out = fake_read_le32 (cin, &cin[2]);
   if (out != 0x89018583)