** amoadd\.w\tzero,a1,0\(a0\)
** ret
*/
-void foo (int* bar, int* baz)
+void foo (int* bar, int baz)
{
__atomic_add_fetch(bar, baz, __ATOMIC_RELAXED);
}
** amoadd\.w\.aq\tzero,a1,0\(a0\)
** ret
*/
-void foo (int* bar, int* baz)
+void foo (int* bar, int baz)
{
__atomic_add_fetch(bar, baz, __ATOMIC_ACQUIRE);
}
** amoadd\.w\.rl\tzero,a1,0\(a0\)
** ret
*/
-void foo (int* bar, int* baz)
+void foo (int* bar, int baz)
{
__atomic_add_fetch(bar, baz, __ATOMIC_RELEASE);
}
** amoadd\.w\.aqrl\tzero,a1,0\(a0\)
** ret
*/
-void foo (int* bar, int* baz)
+void foo (int* bar, int baz)
{
__atomic_add_fetch(bar, baz, __ATOMIC_ACQ_REL);
}
** amoadd\.w\.aqrl\tzero,a1,0\(a0\)
** ret
*/
-void foo (int* bar, int* baz)
+void foo (int* bar, int baz)
{
__atomic_add_fetch(bar, baz, __ATOMIC_SEQ_CST);
}
/* { dg-final { scan-assembler-times "lr.w\t" 1 } } */
/* { dg-final { scan-assembler-times "sc.w\t" 1 } } */
-void foo (short* bar, short* baz)
+void foo (short* bar, short baz)
{
__atomic_add_fetch(bar, baz, __ATOMIC_RELAXED);
}
/* { dg-final { scan-assembler-times "lr.w.aq\t" 1 } } */
/* { dg-final { scan-assembler-times "sc.w\t" 1 } } */
-void foo (short* bar, short* baz)
+void foo (short* bar, short baz)
{
__atomic_add_fetch(bar, baz, __ATOMIC_ACQUIRE);
}
/* { 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)
+void foo (short* bar, short baz)
{
__atomic_add_fetch(bar, baz, __ATOMIC_RELEASE);
}
/* { dg-final { scan-assembler-times "lr.w.aq\t" 1 } } */
/* { dg-final { scan-assembler-times "sc.w.rl\t" 1 } } */
-void foo (short* bar, short* baz)
+void foo (short* bar, short baz)
{
__atomic_add_fetch(bar, baz, __ATOMIC_ACQ_REL);
}
/* { 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)
+void foo (short* bar, short baz)
{
__atomic_add_fetch(bar, baz, __ATOMIC_SEQ_CST);
}
** amoadd\.w\tzero,a1,0\(a0\)
** ret
*/
-void foo (int* bar, int* baz)
+void foo (int* bar, int baz)
{
__atomic_add_fetch(bar, baz, __ATOMIC_RELAXED);
}
** amoadd\.w\tzero,a1,0\(a0\)
** ret
*/
-void foo (int* bar, int* baz)
+void foo (int* bar, int baz)
{
__atomic_add_fetch(bar, baz, __ATOMIC_ACQUIRE);
}
** amoadd\.w\tzero,a1,0\(a0\)
** ret
*/
-void foo (int* bar, int* baz)
+void foo (int* bar, int baz)
{
__atomic_add_fetch(bar, baz, __ATOMIC_RELEASE);
}
** amoadd\.w\tzero,a1,0\(a0\)
** ret
*/
-void foo (int* bar, int* baz)
+void foo (int* bar, int baz)
{
__atomic_add_fetch(bar, baz, __ATOMIC_ACQ_REL);
}
** amoadd\.w\tzero,a1,0\(a0\)
** ret
*/
-void foo (int* bar, int* baz)
+void foo (int* bar, int baz)
{
__atomic_add_fetch(bar, baz, __ATOMIC_SEQ_CST);
}
/* { dg-final { scan-assembler-times "lr.w\t" 1 } } */
/* { dg-final { scan-assembler-times "sc.w\t" 1 } } */
-void foo (short* bar, short* baz)
+void foo (short* bar, short baz)
{
__atomic_add_fetch(bar, baz, __ATOMIC_RELAXED);
}
/* { dg-final { scan-assembler-times "lr.w\t" 1 } } */
/* { dg-final { scan-assembler-times "sc.w\t" 1 } } */
-void foo (short* bar, short* baz)
+void foo (short* bar, short baz)
{
__atomic_add_fetch(bar, baz, __ATOMIC_ACQUIRE);
}
/* { dg-final { scan-assembler-times "lr.w\t" 1 } } */
/* { dg-final { scan-assembler-times "sc.w\t" 1 } } */
-void foo (short* bar, short* baz)
+void foo (short* bar, short baz)
{
__atomic_add_fetch(bar, baz, __ATOMIC_RELEASE);
}
/* { dg-final { scan-assembler-times "lr.w\t" 1 } } */
/* { dg-final { scan-assembler-times "sc.w\t" 1 } } */
-void foo (short* bar, short* baz)
+void foo (short* bar, short baz)
{
__atomic_add_fetch(bar, baz, __ATOMIC_ACQ_REL);
}
/* { 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)
+void foo (short* bar, short baz)
{
__atomic_add_fetch(bar, baz, __ATOMIC_SEQ_CST);
}
** amoadd\.w\tzero,a1,0\(a0\)
** ret
*/
-void foo (int* bar, int* baz)
+void foo (int* bar, int baz)
{
__atomic_add_fetch(bar, baz, __ATOMIC_RELAXED);
}
** bnez\t[atx][0-9]+, 1b
** ret
*/
-void foo (int* bar, int* baz)
+void foo (int* bar, int baz)
{
__atomic_add_fetch(bar, baz, __ATOMIC_RELAXED);
}
** bnez\t[atx][0-9]+, 1b
** ret
*/
-void foo (int* bar, int* baz)
+void foo (int* bar, int baz)
{
__atomic_add_fetch(bar, baz, __ATOMIC_ACQUIRE);
}
** bnez\t[atx][0-9]+, 1b
** ret
*/
-void foo (int* bar, int* baz)
+void foo (int* bar, int baz)
{
__atomic_add_fetch(bar, baz, __ATOMIC_RELEASE);
}
** bnez\t[atx][0-9]+, 1b
** ret
*/
-void foo (int* bar, int* baz)
+void foo (int* bar, int baz)
{
__atomic_add_fetch(bar, baz, __ATOMIC_ACQ_REL);
}
** bnez\t[atx][0-9]+, 1b
** ret
*/
-void foo (int* bar, int* baz)
+void foo (int* bar, int baz)
{
__atomic_add_fetch(bar, baz, __ATOMIC_SEQ_CST);
}