/* { dg-do compile } */ /* Verify that subword atomic op mappings match Table A.6's recommended mapping. */ /* { dg-add-options riscv_a } */ /* { dg-final { scan-assembler-times "lr.w.aqrl\t" 1 } } */ /* { dg-final { scan-assembler-times "sc.w.rl\t" 1 } } */ void foo (short* bar, short* baz) { __atomic_add_fetch(bar, baz, __ATOMIC_SEQ_CST); }