testsuite: Improve builtin-bswap-5.c
gcc/testsuite/ChangeLog * gcc.dg/builtin-bswap-5.c: Improve test vector to avoid nibble swaps passing.
This commit is contained in:
parent
5e9f71254a
commit
b3becb17b8
1 changed files with 3 additions and 3 deletions
|
@ -6,13 +6,13 @@ main (void)
|
|||
/* Test constant folding. */
|
||||
extern void link_error (void);
|
||||
|
||||
if (__builtin_bswap16(0xaabb) != 0xbbaa)
|
||||
if (__builtin_bswap16(0xabcd) != 0xcdab)
|
||||
link_error ();
|
||||
|
||||
if (__builtin_bswap32(0xaabbccdd) != 0xddccbbaa)
|
||||
if (__builtin_bswap32(0x89abcdef) != 0xefcdab89)
|
||||
link_error ();
|
||||
|
||||
if (__builtin_bswap64(0x1122334455667788ULL) != 0x8877665544332211ULL)
|
||||
if (__builtin_bswap64(0x0123456789abcdefULL) != 0xefcdab8967452301ULL)
|
||||
link_error ();
|
||||
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Reference in a new issue