]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
RISC-V: Require a extension for ztso testcases with atomic insns
authorPatrick O'Neill <patrick@rivosinc.com>
Thu, 21 Mar 2024 16:47:21 +0000 (09:47 -0700)
committerPatrick O'Neill <patrick@rivosinc.com>
Fri, 22 Mar 2024 17:41:39 +0000 (10:41 -0700)
Use dg_add_options riscv_a to add atomic extension when running compile
tests on non-a targets.

gcc/testsuite/ChangeLog:

* gcc.target/riscv/amo-table-ztso-amo-add-1.c: Add
dg_add_options riscv_a
* gcc.target/riscv/amo-table-ztso-amo-add-2.c: Ditto.
* gcc.target/riscv/amo-table-ztso-amo-add-3.c: Ditto.
* gcc.target/riscv/amo-table-ztso-amo-add-4.c: Ditto.
* gcc.target/riscv/amo-table-ztso-amo-add-5.c: Ditto.
* gcc.target/riscv/amo-table-ztso-compare-exchange-1.c: Ditto.
* gcc.target/riscv/amo-table-ztso-compare-exchange-2.c: Ditto.
* gcc.target/riscv/amo-table-ztso-compare-exchange-3.c: Ditto.
* gcc.target/riscv/amo-table-ztso-compare-exchange-4.c: Ditto.
* gcc.target/riscv/amo-table-ztso-compare-exchange-5.c: Ditto.
* gcc.target/riscv/amo-table-ztso-compare-exchange-6.c: Ditto.
* gcc.target/riscv/amo-table-ztso-compare-exchange-7.c: Ditto.
* gcc.target/riscv/amo-table-ztso-subword-amo-add-1.c: Ditto.
* gcc.target/riscv/amo-table-ztso-subword-amo-add-2.c: Ditto.
* gcc.target/riscv/amo-table-ztso-subword-amo-add-3.c: Ditto.
* gcc.target/riscv/amo-table-ztso-subword-amo-add-4.c: Ditto.
* gcc.target/riscv/amo-table-ztso-subword-amo-add-5.c: Ditto.

Signed-off-by: Patrick O'Neill <patrick@rivosinc.com>
17 files changed:
gcc/testsuite/gcc.target/riscv/amo-table-ztso-amo-add-1.c
gcc/testsuite/gcc.target/riscv/amo-table-ztso-amo-add-2.c
gcc/testsuite/gcc.target/riscv/amo-table-ztso-amo-add-3.c
gcc/testsuite/gcc.target/riscv/amo-table-ztso-amo-add-4.c
gcc/testsuite/gcc.target/riscv/amo-table-ztso-amo-add-5.c
gcc/testsuite/gcc.target/riscv/amo-table-ztso-compare-exchange-1.c
gcc/testsuite/gcc.target/riscv/amo-table-ztso-compare-exchange-2.c
gcc/testsuite/gcc.target/riscv/amo-table-ztso-compare-exchange-3.c
gcc/testsuite/gcc.target/riscv/amo-table-ztso-compare-exchange-4.c
gcc/testsuite/gcc.target/riscv/amo-table-ztso-compare-exchange-5.c
gcc/testsuite/gcc.target/riscv/amo-table-ztso-compare-exchange-6.c
gcc/testsuite/gcc.target/riscv/amo-table-ztso-compare-exchange-7.c
gcc/testsuite/gcc.target/riscv/amo-table-ztso-subword-amo-add-1.c
gcc/testsuite/gcc.target/riscv/amo-table-ztso-subword-amo-add-2.c
gcc/testsuite/gcc.target/riscv/amo-table-ztso-subword-amo-add-3.c
gcc/testsuite/gcc.target/riscv/amo-table-ztso-subword-amo-add-4.c
gcc/testsuite/gcc.target/riscv/amo-table-ztso-subword-amo-add-5.c

index 65a4351025d55d09c8ce8e8aeafc9f9eaef99d70..a9edc33ff39dfa7251d6d3295fc839661d77fe5e 100644 (file)
@@ -1,6 +1,7 @@
 /* { dg-do compile } */
 /* Verify that atomic op mappings match the Ztso suggested mapping.  */
 /* { dg-options "-O3" } */
+/* { dg-add-options riscv_a } */
 /* { dg-add-options riscv_ztso } */
 /* { dg-skip-if "" { *-*-* } { "-g" "-flto"} } */
 /* { dg-final { check-function-bodies "**" "" } } */
index 03da6b04de09cee73bfa83199ddd10090ffb7928..ad843402bcc75e9018c1901a6da33f4474978c98 100644 (file)
@@ -1,6 +1,7 @@
 /* { dg-do compile } */
 /* Verify that atomic op mappings the Ztso suggested mapping.  */
 /* { dg-options "-O3" } */
+/* { dg-add-options riscv_a } */
 /* { dg-add-options riscv_ztso } */
 /* { dg-skip-if "" { *-*-* } { "-g" "-flto"} } */
 /* { dg-final { check-function-bodies "**" "" } } */
index 695306e9d6f347ed7616303c6090e38e461c4fbc..bdae5bb83a60c5289d68aa6e6ed71ec869445842 100644 (file)
@@ -1,6 +1,7 @@
 /* { dg-do compile } */
 /* Verify that atomic op mappings match the Ztso suggested mapping.  */
 /* { dg-options "-O3" } */
+/* { dg-add-options riscv_a } */
 /* { dg-add-options riscv_ztso } */
 /* { dg-skip-if "" { *-*-* } { "-g" "-flto"} } */
 /* { dg-final { check-function-bodies "**" "" } } */
index e7e5ac7cc88f56201eaf3ba5b7e04ed42e76da86..815a72f1e56487563421ca4df296dd10d35f1c9f 100644 (file)
@@ -1,6 +1,7 @@
 /* { dg-do compile } */
 /* Verify that atomic op mappings match the Ztso suggested mapping.  */
 /* { dg-options "-O3" } */
+/* { dg-add-options riscv_a } */
 /* { dg-add-options riscv_ztso } */
 /* { dg-skip-if "" { *-*-* } { "-g" "-flto"} } */
 /* { dg-final { check-function-bodies "**" "" } } */
index 457d0b12fbe6f21e1aa891d7e8a7919d3d9379cf..eda6f01096ea7573379e92439915f746c32d4067 100644 (file)
@@ -1,6 +1,7 @@
 /* { dg-do compile } */
 /* Verify that atomic op mappings match the Ztso suggested mapping.  */
 /* { dg-options "-O3" } */
+/* { dg-add-options riscv_a } */
 /* { dg-add-options riscv_ztso } */
 /* { dg-skip-if "" { *-*-* } { "-g" "-flto"} } */
 /* { dg-final { check-function-bodies "**" "" } } */
index dd6b5c24aa017c079091c3bceaa51818e8e59a89..b6315c45e85ed6e947dfc06dae81b864f282626f 100644 (file)
@@ -1,5 +1,6 @@
 /* { dg-do compile } */
 /* Verify that compare exchange mappings match the Ztso suggested mapping.  */
+/* { dg-add-options riscv_a } */
 /* { dg-add-options riscv_ztso } */
 /* { dg-final { scan-assembler-times "lr.w\t" 1 } } */
 /* { dg-final { scan-assembler-times "sc.w\t" 1 } } */
index b0bafa3296e24c568d8d432a02cfaeda2fe523da..e487184f6cf9d5c1d9867391301cacb0fe5b72c2 100644 (file)
@@ -1,5 +1,6 @@
 /* { dg-do compile } */
 /* Verify that compare exchange mappings match the Ztso suggested mapping.  */
+/* { dg-add-options riscv_a } */
 /* { dg-add-options riscv_ztso } */
 /* { dg-final { scan-assembler-times "lr.w\t" 1 } } */
 /* { dg-final { scan-assembler-times "sc.w\t" 1 } } */
index 78cb8aa9748ae6510a741aa4d07088593db5e02a..e9c925f0923c62ad44a34b31c0168c377a6af6e5 100644 (file)
@@ -1,5 +1,6 @@
 /* { dg-do compile } */
 /* Verify that compare exchange mappings match the Ztso suggested mapping.  */
+/* { dg-add-options riscv_a } */
 /* { dg-add-options riscv_ztso } */
 /* { dg-final { scan-assembler-times "lr.w\t" 1 } } */
 /* { dg-final { scan-assembler-times "sc.w\t" 1 } } */
index 0656b84c7873bc56d892360b90015101cb2bd085..6b4545596339fba271cd674560cef1fc0e532ad8 100644 (file)
@@ -1,5 +1,6 @@
 /* { dg-do compile } */
 /* Verify that compare exchange mappings match the Ztso suggested mapping.  */
+/* { dg-add-options riscv_a } */
 /* { dg-add-options riscv_ztso } */
 /* { dg-final { scan-assembler-times "lr.w\t" 1 } } */
 /* { dg-final { scan-assembler-times "sc.w\t" 1 } } */
index 33d486c26cacab13b89a832e16679c77992a8371..02c9f0ada778e5d171edfc62efd3e840c6d605f0 100644 (file)
@@ -1,5 +1,6 @@
 /* { dg-do compile } */
 /* Verify that compare exchange mappings match the Ztso suggested mapping.  */
+/* { dg-add-options riscv_a } */
 /* { dg-add-options riscv_ztso } */
 /* { dg-final { scan-assembler-times "lr.w.aqrl\t" 1 } } */
 /* { dg-final { scan-assembler-times "sc.w.rl\t" 1 } } */
index f8331bfcd0d464d0303872cc085fa5ce5293b0f4..75abd5d3dfbde75fa7ef34cede118b01c0eaae14 100644 (file)
@@ -1,5 +1,6 @@
 /* { dg-do compile } */
 /* Verify that compare exchange mappings match the Ztso suggested mapping.  */
+/* { dg-add-options riscv_a } */
 /* { dg-add-options riscv_ztso } */
 /* { dg-final { scan-assembler-times "lr.w\t" 1 } } */
 /* { dg-final { scan-assembler-times "sc.w\t" 1 } } */
index b5c42e1df1df6fd5dec615dc844925190bcb32b3..33928c0eac41677a7bcd4aaf959e078c1df0cdf8 100644 (file)
@@ -1,5 +1,6 @@
 /* { dg-do compile } */
 /* Verify that compare exchange mappings match the Ztso suggested mapping.  */
+/* { dg-add-options riscv_a } */
 /* { dg-add-options riscv_ztso } */
 /* { dg-final { scan-assembler-times "lr.w.aqrl\t" 1 } } */
 /* { dg-final { scan-assembler-times "sc.w.rl\t" 1 } } */
index 3ba69ebc325333288cd02644b4668318de37f1f2..2a40d6b13761a6103878de66fa6556d3c4d5aa5c 100644 (file)
@@ -1,5 +1,6 @@
 /* { dg-do compile } */
 /* Verify that subword atomic op mappings match the Ztso suggested mapping.  */
+/* { dg-add-options riscv_a } */
 /* { dg-add-options riscv_ztso } */
 /* { dg-final { scan-assembler-times "lr.w\t" 1 } } */
 /* { dg-final { scan-assembler-times "sc.w\t" 1 } } */
index 4f38ed3015c0b379149cb90e452d656ec970b29c..c79380f2611798350ea06051a34f2ab102c58315 100644 (file)
@@ -1,5 +1,6 @@
 /* { dg-do compile } */
 /* Verify that subword atomic op mappings match the Ztso suggested mapping.  */
+/* { dg-add-options riscv_a } */
 /* { dg-add-options riscv_ztso } */
 /* { dg-final { scan-assembler-times "lr.w\t" 1 } } */
 /* { dg-final { scan-assembler-times "sc.w\t" 1 } } */
index e5bcb1275521b9e5835af1b95228124420d295b9..d1a94eccfa837268ca7fbbf457d101aaadec44e5 100644 (file)
@@ -1,5 +1,6 @@
 /* { dg-do compile } */
 /* Verify that subword atomic op mappings match the Ztso suggested mapping.  */
+/* { dg-add-options riscv_a } */
 /* { dg-add-options riscv_ztso } */
 /* { dg-final { scan-assembler-times "lr.w\t" 1 } } */
 /* { dg-final { scan-assembler-times "sc.w\t" 1 } } */
index 316183c268b5ea01f257787adbad2bd68598f56d..3d65bc2f64aa52cb849a23b796b596c84b2a1628 100644 (file)
@@ -1,5 +1,6 @@
 /* { dg-do compile } */
 /* Verify that subword atomic op mappings match the Ztso suggested mapping.  */
+/* { dg-add-options riscv_a } */
 /* { dg-add-options riscv_ztso } */
 /* { dg-final { scan-assembler-times "lr.w\t" 1 } } */
 /* { dg-final { scan-assembler-times "sc.w\t" 1 } } */
index fc1aa8d94f131c79158dbade9e94a49c70f98fbd..10354387a1376bd37fdbe6667d1c6dd935bc4673 100644 (file)
@@ -1,5 +1,6 @@
 /* { dg-do compile } */
 /* Verify that subword atomic op mappings match the Ztso suggested mapping.  */
+/* { dg-add-options riscv_a } */
 /* { dg-add-options riscv_ztso } */
 /* { dg-final { scan-assembler-times "lr.w.aqrl\t" 1 } } */
 /* { dg-final { scan-assembler-times "sc.w.rl\t" 1 } } */