Debian Codegraph @

gcc/testsuite/gcc.target/riscv/amo/zabha-zacas-atomic-cas.c

raw
1 /* { dg-do compile } */
2 /* PR target/120995 ICE unrecognized subword atomic cas */
3 /* { dg-options "-O" } */
4 /* { dg-add-options riscv_zacas } */
5 /* { dg-add-options riscv_zabha } */
6
7 _Bool b;
8 void atomic_bool_cmpxchg()
9 {
10 __sync_bool_compare_and_swap(&b, 1, 0);
11 }