gcc/testsuite/gcc.target/sh/pr64851-0.h
raw| 1 | /* Check that atomic not ops are generated. */ |
| 2 | |
| 3 | #define emitfuncs(name)\ |
| 4 | void test_ ## name ## _0 (char* mem)\ |
| 5 | {\ |
| 6 | name (mem, -1, __ATOMIC_ACQ_REL);\ |
| 7 | }\ |
| 8 | void test_ ## name ## _1 (short* mem)\ |
| 9 | {\ |
| 10 | name (mem, -1, __ATOMIC_ACQ_REL);\ |
| 11 | }\ |
| 12 | void test_ ## name ##_2 (int* mem)\ |
| 13 | {\ |
| 14 | name (mem, -1, __ATOMIC_ACQ_REL);\ |
| 15 | }\ |
| 16 | |
| 17 | emitfuncs (__atomic_xor_fetch) |
| 18 | emitfuncs (__atomic_fetch_xor) |
| 19 | |
| 20 | emitfuncs (__atomic_nand_fetch) |
| 21 | emitfuncs (__atomic_fetch_nand) |