blob: 38bedcd6b41de0b6ac98334c4bc3ccbe2a3538ba (
plain)
1
2
3
4
5
6
7
8
9
10
|
/* { dg-do compile } */
/* Verify that subword atomic op mappings match Table A.6's recommended mapping. */
/* { dg-add-options riscv_zalrsc } */
/* { dg-final { scan-assembler-times "lr.w\t" 1 } } */
/* { dg-final { scan-assembler-times "sc.w.rl\t" 1 } } */
void foo (short* bar, short baz)
{
__atomic_add_fetch(bar, baz, __ATOMIC_RELEASE);
}
|