blob: b7682a5bab41c3f9733f74883d6b012893318f52 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
/* { dg-do compile } */
/* Verify that atomic op mappings match Table A.6's recommended mapping. */
/* { dg-options "-O3" } */
/* { dg-add-options riscv_zaamo } */
/* { dg-skip-if "" { *-*-* } { "-g" "-flto"} } */
/* { dg-final { check-function-bodies "**" "" } } */
/*
** foo:
** amoadd\.w\.aq\tzero,a1,0\(a0\)
** ret
*/
void foo (int* bar, int* baz)
{
__atomic_add_fetch(bar, baz, __ATOMIC_ACQUIRE);
}
|