bswap-2.c (main): Handle more bitfield layouts.

* gcc.c-torture/execute/bswap-2.c (main): Handle more bitfield
layouts.

From-SVN: r210897
This commit is contained in:
Andreas Schwab 2014-05-24 18:54:28 +00:00 committed by Andreas Schwab
parent 4df199d153
commit 63cbc2d48f
2 changed files with 7 additions and 2 deletions

View 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:

View 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)