[gcc r15-1218] RISC-V: Fix amoadd call arguments
Patrick O'Neill
poneill@gcc.gnu.org
Wed Jun 12 18:19:51 GMT 2024
https://gcc.gnu.org/g:6343adcef7de1a1214c9b6dd845810aa4a0d19e5
commit r15-1218-g6343adcef7de1a1214c9b6dd845810aa4a0d19e5
Author: Patrick O'Neill <patrick@rivosinc.com>
Date: Mon Jun 10 16:58:12 2024 -0700
RISC-V: Fix amoadd call arguments
Update __atomic_add_fetch arguments to be a pointer and value rather
than two pointers.
gcc/testsuite/ChangeLog:
* gcc.target/riscv/amo/amo-table-a-6-amo-add-1.c: Update
__atomic_add_fetch args.
* gcc.target/riscv/amo/amo-table-a-6-amo-add-2.c: Ditto.
* gcc.target/riscv/amo/amo-table-a-6-amo-add-3.c: Ditto.
* gcc.target/riscv/amo/amo-table-a-6-amo-add-4.c: Ditto.
* gcc.target/riscv/amo/amo-table-a-6-amo-add-5.c: Ditto.
* gcc.target/riscv/amo/amo-table-a-6-subword-amo-add-1.c: Ditto.
* gcc.target/riscv/amo/amo-table-a-6-subword-amo-add-2.c: Ditto.
* gcc.target/riscv/amo/amo-table-a-6-subword-amo-add-3.c: Ditto.
* gcc.target/riscv/amo/amo-table-a-6-subword-amo-add-4.c: Ditto.
* gcc.target/riscv/amo/amo-table-a-6-subword-amo-add-5.c: Ditto.
* gcc.target/riscv/amo/amo-table-ztso-amo-add-1.c: Ditto.
* gcc.target/riscv/amo/amo-table-ztso-amo-add-2.c: Ditto.
* gcc.target/riscv/amo/amo-table-ztso-amo-add-3.c: Ditto.
* gcc.target/riscv/amo/amo-table-ztso-amo-add-4.c: Ditto.
* gcc.target/riscv/amo/amo-table-ztso-amo-add-5.c: Ditto.
* gcc.target/riscv/amo/amo-table-ztso-subword-amo-add-1.c: Ditto.
* gcc.target/riscv/amo/amo-table-ztso-subword-amo-add-2.c: Ditto.
* gcc.target/riscv/amo/amo-table-ztso-subword-amo-add-3.c: Ditto.
* gcc.target/riscv/amo/amo-table-ztso-subword-amo-add-4.c: Ditto.
* gcc.target/riscv/amo/amo-table-ztso-subword-amo-add-5.c: Ditto.
* gcc.target/riscv/amo/amo-zaamo-preferred-over-zalrsc.c: Ditto.
* gcc.target/riscv/amo/amo-zalrsc-amo-add-1.c: Ditto.
* gcc.target/riscv/amo/amo-zalrsc-amo-add-2.c: Ditto.
* gcc.target/riscv/amo/amo-zalrsc-amo-add-3.c: Ditto.
* gcc.target/riscv/amo/amo-zalrsc-amo-add-4.c: Ditto.
* gcc.target/riscv/amo/amo-zalrsc-amo-add-5.c: Ditto.
Signed-off-by: Patrick O'Neill <patrick@rivosinc.com>
Diff:
---
gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-amo-add-1.c | 2 +-
gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-amo-add-2.c | 2 +-
gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-amo-add-3.c | 2 +-
gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-amo-add-4.c | 2 +-
gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-amo-add-5.c | 2 +-
gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-subword-amo-add-1.c | 2 +-
gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-subword-amo-add-2.c | 2 +-
gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-subword-amo-add-3.c | 2 +-
gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-subword-amo-add-4.c | 2 +-
gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-subword-amo-add-5.c | 2 +-
gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-amo-add-1.c | 2 +-
gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-amo-add-2.c | 2 +-
gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-amo-add-3.c | 2 +-
gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-amo-add-4.c | 2 +-
gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-amo-add-5.c | 2 +-
gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-subword-amo-add-1.c | 2 +-
gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-subword-amo-add-2.c | 2 +-
gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-subword-amo-add-3.c | 2 +-
gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-subword-amo-add-4.c | 2 +-
gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-subword-amo-add-5.c | 2 +-
gcc/testsuite/gcc.target/riscv/amo/amo-zaamo-preferred-over-zalrsc.c | 2 +-
gcc/testsuite/gcc.target/riscv/amo/amo-zalrsc-amo-add-1.c | 2 +-
gcc/testsuite/gcc.target/riscv/amo/amo-zalrsc-amo-add-2.c | 2 +-
gcc/testsuite/gcc.target/riscv/amo/amo-zalrsc-amo-add-3.c | 2 +-
gcc/testsuite/gcc.target/riscv/amo/amo-zalrsc-amo-add-4.c | 2 +-
gcc/testsuite/gcc.target/riscv/amo/amo-zalrsc-amo-add-5.c | 2 +-
26 files changed, 26 insertions(+), 26 deletions(-)
diff --git a/gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-amo-add-1.c b/gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-amo-add-1.c
index 9c2ba39789ae..2e53abf28aa2 100644
--- a/gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-amo-add-1.c
+++ b/gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-amo-add-1.c
@@ -10,7 +10,7 @@
** 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);
}
diff --git a/gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-amo-add-2.c b/gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-amo-add-2.c
index b7682a5bab41..14d6b7e4b1b5 100644
--- a/gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-amo-add-2.c
+++ b/gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-amo-add-2.c
@@ -10,7 +10,7 @@
** 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);
}
diff --git a/gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-amo-add-3.c b/gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-amo-add-3.c
index c8776872d915..937a00daf4cb 100644
--- a/gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-amo-add-3.c
+++ b/gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-amo-add-3.c
@@ -10,7 +10,7 @@
** 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);
}
diff --git a/gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-amo-add-4.c b/gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-amo-add-4.c
index b37c4c3f242e..7d7f4e11dd41 100644
--- a/gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-amo-add-4.c
+++ b/gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-amo-add-4.c
@@ -10,7 +10,7 @@
** 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);
}
diff --git a/gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-amo-add-5.c b/gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-amo-add-5.c
index 8d45ca7a3476..e5cf1e2e9cf6 100644
--- a/gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-amo-add-5.c
+++ b/gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-amo-add-5.c
@@ -10,7 +10,7 @@
** 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);
}
diff --git a/gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-subword-amo-add-1.c b/gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-subword-amo-add-1.c
index 4174fdee352b..348b9c8db9c1 100644
--- a/gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-subword-amo-add-1.c
+++ b/gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-subword-amo-add-1.c
@@ -4,7 +4,7 @@
/* { 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);
}
diff --git a/gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-subword-amo-add-2.c b/gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-subword-amo-add-2.c
index 4c06c90b5582..310115806848 100644
--- a/gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-subword-amo-add-2.c
+++ b/gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-subword-amo-add-2.c
@@ -4,7 +4,7 @@
/* { 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);
}
diff --git a/gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-subword-amo-add-3.c b/gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-subword-amo-add-3.c
index 7e791c901b66..38bedcd6b41d 100644
--- a/gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-subword-amo-add-3.c
+++ b/gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-subword-amo-add-3.c
@@ -4,7 +4,7 @@
/* { 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);
}
diff --git a/gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-subword-amo-add-4.c b/gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-subword-amo-add-4.c
index 76f3be271108..d69610e2d9ed 100644
--- a/gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-subword-amo-add-4.c
+++ b/gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-subword-amo-add-4.c
@@ -4,7 +4,7 @@
/* { 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);
}
diff --git a/gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-subword-amo-add-5.c b/gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-subword-amo-add-5.c
index 8dbfa9c4fc82..976f8909bdda 100644
--- a/gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-subword-amo-add-5.c
+++ b/gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-subword-amo-add-5.c
@@ -4,7 +4,7 @@
/* { 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);
}
diff --git a/gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-amo-add-1.c b/gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-amo-add-1.c
index 82169390925e..000407a25830 100644
--- a/gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-amo-add-1.c
+++ b/gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-amo-add-1.c
@@ -11,7 +11,7 @@
** 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);
}
diff --git a/gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-amo-add-2.c b/gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-amo-add-2.c
index a238c6f44030..3e441cadbf34 100644
--- a/gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-amo-add-2.c
+++ b/gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-amo-add-2.c
@@ -11,7 +11,7 @@
** 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);
}
diff --git a/gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-amo-add-3.c b/gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-amo-add-3.c
index c97bf467c63b..8af1a2f79a4a 100644
--- a/gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-amo-add-3.c
+++ b/gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-amo-add-3.c
@@ -11,7 +11,7 @@
** 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);
}
diff --git a/gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-amo-add-4.c b/gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-amo-add-4.c
index 14e632ba2f27..0b3a7e596896 100644
--- a/gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-amo-add-4.c
+++ b/gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-amo-add-4.c
@@ -11,7 +11,7 @@
** 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);
}
diff --git a/gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-amo-add-5.c b/gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-amo-add-5.c
index 74d8df99ddca..f189827d6cf8 100644
--- a/gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-amo-add-5.c
+++ b/gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-amo-add-5.c
@@ -11,7 +11,7 @@
** 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);
}
diff --git a/gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-subword-amo-add-1.c b/gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-subword-amo-add-1.c
index 5c0a8b8f6e9f..a44d6980ecea 100644
--- a/gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-subword-amo-add-1.c
+++ b/gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-subword-amo-add-1.c
@@ -5,7 +5,7 @@
/* { 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);
}
diff --git a/gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-subword-amo-add-2.c b/gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-subword-amo-add-2.c
index 551078186ec9..8d28569c79cb 100644
--- a/gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-subword-amo-add-2.c
+++ b/gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-subword-amo-add-2.c
@@ -5,7 +5,7 @@
/* { 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);
}
diff --git a/gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-subword-amo-add-3.c b/gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-subword-amo-add-3.c
index 5f0f78707210..fb803ab9cbf3 100644
--- a/gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-subword-amo-add-3.c
+++ b/gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-subword-amo-add-3.c
@@ -5,7 +5,7 @@
/* { 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);
}
diff --git a/gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-subword-amo-add-4.c b/gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-subword-amo-add-4.c
index 24f4f02dceaf..a88e409063a0 100644
--- a/gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-subword-amo-add-4.c
+++ b/gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-subword-amo-add-4.c
@@ -5,7 +5,7 @@
/* { 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);
}
diff --git a/gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-subword-amo-add-5.c b/gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-subword-amo-add-5.c
index 405e498fb40f..d851e5e59447 100644
--- a/gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-subword-amo-add-5.c
+++ b/gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-subword-amo-add-5.c
@@ -5,7 +5,7 @@
/* { 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);
}
diff --git a/gcc/testsuite/gcc.target/riscv/amo/amo-zaamo-preferred-over-zalrsc.c b/gcc/testsuite/gcc.target/riscv/amo/amo-zaamo-preferred-over-zalrsc.c
index 1c124c2b8b1e..dae30c32e016 100644
--- a/gcc/testsuite/gcc.target/riscv/amo/amo-zaamo-preferred-over-zalrsc.c
+++ b/gcc/testsuite/gcc.target/riscv/amo/amo-zaamo-preferred-over-zalrsc.c
@@ -11,7 +11,7 @@
** 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);
}
diff --git a/gcc/testsuite/gcc.target/riscv/amo/amo-zalrsc-amo-add-1.c b/gcc/testsuite/gcc.target/riscv/amo/amo-zalrsc-amo-add-1.c
index 3fa743324333..49c1a181d696 100644
--- a/gcc/testsuite/gcc.target/riscv/amo/amo-zalrsc-amo-add-1.c
+++ b/gcc/testsuite/gcc.target/riscv/amo/amo-zalrsc-amo-add-1.c
@@ -13,7 +13,7 @@
** 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);
}
diff --git a/gcc/testsuite/gcc.target/riscv/amo/amo-zalrsc-amo-add-2.c b/gcc/testsuite/gcc.target/riscv/amo/amo-zalrsc-amo-add-2.c
index af0a2d50d38f..af93c9a182b3 100644
--- a/gcc/testsuite/gcc.target/riscv/amo/amo-zalrsc-amo-add-2.c
+++ b/gcc/testsuite/gcc.target/riscv/amo/amo-zalrsc-amo-add-2.c
@@ -13,7 +13,7 @@
** 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);
}
diff --git a/gcc/testsuite/gcc.target/riscv/amo/amo-zalrsc-amo-add-3.c b/gcc/testsuite/gcc.target/riscv/amo/amo-zalrsc-amo-add-3.c
index 521869b2165f..ce68af841ea4 100644
--- a/gcc/testsuite/gcc.target/riscv/amo/amo-zalrsc-amo-add-3.c
+++ b/gcc/testsuite/gcc.target/riscv/amo/amo-zalrsc-amo-add-3.c
@@ -13,7 +13,7 @@
** 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);
}
diff --git a/gcc/testsuite/gcc.target/riscv/amo/amo-zalrsc-amo-add-4.c b/gcc/testsuite/gcc.target/riscv/amo/amo-zalrsc-amo-add-4.c
index 8b6e7579f6f6..be9f847782ec 100644
--- a/gcc/testsuite/gcc.target/riscv/amo/amo-zalrsc-amo-add-4.c
+++ b/gcc/testsuite/gcc.target/riscv/amo/amo-zalrsc-amo-add-4.c
@@ -13,7 +13,7 @@
** 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);
}
diff --git a/gcc/testsuite/gcc.target/riscv/amo/amo-zalrsc-amo-add-5.c b/gcc/testsuite/gcc.target/riscv/amo/amo-zalrsc-amo-add-5.c
index 0bdc47d5c46e..b31170c15db7 100644
--- a/gcc/testsuite/gcc.target/riscv/amo/amo-zalrsc-amo-add-5.c
+++ b/gcc/testsuite/gcc.target/riscv/amo/amo-zalrsc-amo-add-5.c
@@ -13,7 +13,7 @@
** 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);
}
More information about the Gcc-cvs
mailing list