2 /* { dg-require-effective-target sync_char_short } */
3 /* { dg-options "-Wsync-nand" } */
4 /* { dg-options "-Wsync-nand -march=i486" { target { { i?86-*-* x86_64-*-* } && ilp32 } } } */
5 /* { dg-options "-Wsync-nand -mcpu=v9" { target sparc*-*-* } } */
8 extern void abort (void);
14 short xIn, xOut, xExpect, i = 1;
16 xLoc = xIn = ~ (1 << i);
17 xExpect = ~ (xIn & 0x7F);
19 xOut = __sync_nand_and_fetch (&xLoc, 0x7F); /* { dg-message "note: '__sync_nand_and_fetch' changed semantics in GCC 4.4" "" } */