]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
RISC-V: Specify -mabi for ztso testcases
authorPatrick O'Neill <patrick@rivosinc.com>
Fri, 11 Aug 2023 18:53:14 +0000 (11:53 -0700)
committerPatrick O'Neill <patrick@rivosinc.com>
Fri, 11 Aug 2023 20:45:48 +0000 (13:45 -0700)
On rv32 targets, this patch fixes ztso testcases errors like this:
cc1: error: ABI requires '-march=rv32'

2023-08-11 Patrick O'Neill <patrick@rivosinc.com>

gcc/testsuite/ChangeLog:

* gcc.target/riscv/amo-table-ztso-amo-add-1.c: Add -mabi=lp64d
to dg-options.
* 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-fence-1.c: Ditto.
* gcc.target/riscv/amo-table-ztso-fence-2.c: Ditto.
* gcc.target/riscv/amo-table-ztso-fence-3.c: Ditto.
* gcc.target/riscv/amo-table-ztso-fence-4.c: Ditto.
* gcc.target/riscv/amo-table-ztso-fence-5.c: Ditto.
* gcc.target/riscv/amo-table-ztso-load-1.c: Ditto.
* gcc.target/riscv/amo-table-ztso-load-2.c: Ditto.
* gcc.target/riscv/amo-table-ztso-load-3.c: Ditto.
* gcc.target/riscv/amo-table-ztso-store-1.c: Ditto.
* gcc.target/riscv/amo-table-ztso-store-2.c: Ditto.
* gcc.target/riscv/amo-table-ztso-store-3.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>
28 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-fence-1.c
gcc/testsuite/gcc.target/riscv/amo-table-ztso-fence-2.c
gcc/testsuite/gcc.target/riscv/amo-table-ztso-fence-3.c
gcc/testsuite/gcc.target/riscv/amo-table-ztso-fence-4.c
gcc/testsuite/gcc.target/riscv/amo-table-ztso-fence-5.c
gcc/testsuite/gcc.target/riscv/amo-table-ztso-load-1.c
gcc/testsuite/gcc.target/riscv/amo-table-ztso-load-2.c
gcc/testsuite/gcc.target/riscv/amo-table-ztso-load-3.c
gcc/testsuite/gcc.target/riscv/amo-table-ztso-store-1.c
gcc/testsuite/gcc.target/riscv/amo-table-ztso-store-2.c
gcc/testsuite/gcc.target/riscv/amo-table-ztso-store-3.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 a7097e9aab96b361f3eb3a56d5d06f43301b5e50..a88d08eb3f40ed1eb4b6f4063ec87cab8f5c2253 100644 (file)
@@ -1,6 +1,6 @@
 /* { dg-do compile } */
 /* Verify that atomic op mappings match the Ztso suggested mapping.  */
-/* { dg-options "-march=rv64id_ztso -O3" } */
+/* { dg-options "-march=rv64id_ztso -mabi=lp64d -O3" } */
 /* { dg-skip-if "" { *-*-* } { "-g" "-flto"} } */
 /* { dg-final { check-function-bodies "**" "" } } */
 
index 8e99390343980ed28882c1a366ada1aa3171f6a8..ebd240f9dd2f5c4350d75db0e0e8323d3e1140cd 100644 (file)
@@ -1,6 +1,6 @@
 /* { dg-do compile } */
 /* Verify that atomic op mappings the Ztso suggested mapping.  */
-/* { dg-options "-march=rv64id_ztso -O3" } */
+/* { dg-options "-march=rv64id_ztso -mabi=lp64d -O3" } */
 /* { dg-skip-if "" { *-*-* } { "-g" "-flto"} } */
 /* { dg-final { check-function-bodies "**" "" } } */
 
index e1cd209fcb2ca690a2cadb6ad2e3a448a8a13697..ee00d222eceac4fa44ca08156337d592df847bf4 100644 (file)
@@ -1,6 +1,6 @@
 /* { dg-do compile } */
 /* Verify that atomic op mappings match the Ztso suggested mapping.  */
-/* { dg-options "-march=rv64id_ztso -O3" } */
+/* { dg-options "-march=rv64id_ztso -mabi=lp64d -O3" } */
 /* { dg-skip-if "" { *-*-* } { "-g" "-flto"} } */
 /* { dg-final { check-function-bodies "**" "" } } */
 
index 484d11eb100ddeb0fd67e78e08709bd672b07c17..ff08811c5d708aa0ace539adc0eeee8dd101e73f 100644 (file)
@@ -1,6 +1,6 @@
 /* { dg-do compile } */
 /* Verify that atomic op mappings match the Ztso suggested mapping.  */
-/* { dg-options "-march=rv64id_ztso -O3" } */
+/* { dg-options "-march=rv64id_ztso -mabi=lp64d -O3" } */
 /* { dg-skip-if "" { *-*-* } { "-g" "-flto"} } */
 /* { dg-final { check-function-bodies "**" "" } } */
 
index 2117283fd0d3b193f52859f908deba6387f98b27..b129df4b6071effa6275cd241c2959992f5f045e 100644 (file)
@@ -1,6 +1,6 @@
 /* { dg-do compile } */
 /* Verify that atomic op mappings match the Ztso suggested mapping.  */
-/* { dg-options "-march=rv64id_ztso -O3" } */
+/* { dg-options "-march=rv64id_ztso -mabi=lp64d -O3" } */
 /* { dg-skip-if "" { *-*-* } { "-g" "-flto"} } */
 /* { dg-final { check-function-bodies "**" "" } } */
 
index 03247c632fd0e9e54b831b8a8aa4394797d5d085..9d5b8c2a5f6364216c09776a2ee2f87ee55249be 100644 (file)
@@ -1,6 +1,6 @@
 /* { dg-do compile } */
 /* Verify that compare exchange mappings match the Ztso suggested mapping.  */
-/* { dg-options "-march=rv64id_ztso" } */
+/* { dg-options "-march=rv64id_ztso -mabi=lp64d" } */
 /* { dg-final { scan-assembler-times "lr.w\t" 1 } } */
 /* { dg-final { scan-assembler-times "sc.w\t" 1 } } */
 
index 463567470679b26cc66bb6cd41132372ba51c143..57d6746ee220e017aa17602a92b24aaffe4d8826 100644 (file)
@@ -1,6 +1,6 @@
 /* { dg-do compile } */
 /* Verify that compare exchange mappings match the Ztso suggested mapping.  */
-/* { dg-options "-march=rv64id_ztso" } */
+/* { dg-options "-march=rv64id_ztso -mabi=lp64d" } */
 /* { dg-final { scan-assembler-times "lr.w\t" 1 } } */
 /* { dg-final { scan-assembler-times "sc.w\t" 1 } } */
 
index cf252dba6ecd6a0ee3aa1ce62a178aa3f92bad5b..d0044106d36041098a2b26dd9b88a9228940778f 100644 (file)
@@ -1,6 +1,6 @@
 /* { dg-do compile } */
 /* Verify that compare exchange mappings match the Ztso suggested mapping.  */
-/* { dg-options "-march=rv64id_ztso" } */
+/* { dg-options "-march=rv64id_ztso -mabi=lp64d" } */
 /* { dg-final { scan-assembler-times "lr.w\t" 1 } } */
 /* { dg-final { scan-assembler-times "sc.w\t" 1 } } */
 
index 9a0c86569b540203f7fdb200ace899ec9bcc19f5..6a53473e26bb8ec11f8c16d29b95929e1d83e287 100644 (file)
@@ -1,6 +1,6 @@
 /* { dg-do compile } */
 /* Verify that compare exchange mappings match the Ztso suggested mapping.  */
-/* { dg-options "-march=rv64id_ztso" } */
+/* { dg-options "-march=rv64id_ztso -mabi=lp64d" } */
 /* { dg-final { scan-assembler-times "lr.w\t" 1 } } */
 /* { dg-final { scan-assembler-times "sc.w\t" 1 } } */
 
index 750ba89cd7456ee435366fea294d9242c1f5d9e0..80729091c73058f085d53f024aa7846789f0943e 100644 (file)
@@ -1,6 +1,6 @@
 /* { dg-do compile } */
 /* Verify that compare exchange mappings match the Ztso suggested mapping.  */
-/* { dg-options "-march=rv64id_ztso" } */
+/* { dg-options "-march=rv64id_ztso -mabi=lp64d" } */
 /* { dg-final { scan-assembler-times "lr.w.aqrl\t" 1 } } */
 /* { dg-final { scan-assembler-times "sc.w.rl\t" 1 } } */
 
index 0d0bf26d95adf5a6e413257c83b7df55edd4fd5d..731f7f84af4cef8e72d12f803b7ed91ae54ba5d8 100644 (file)
@@ -1,6 +1,6 @@
 /* { dg-do compile } */
 /* Verify that compare exchange mappings match the Ztso suggested mapping.  */
-/* { dg-options "-march=rv64id_ztso" } */
+/* { dg-options "-march=rv64id_ztso -mabi=lp64d" } */
 /* { dg-final { scan-assembler-times "lr.w\t" 1 } } */
 /* { dg-final { scan-assembler-times "sc.w\t" 1 } } */
 
index 838568ed588ee73913a4ea53f10e1f5777d9330f..3806d55da1d85344ed229298aa515008bd87c4d6 100644 (file)
@@ -1,6 +1,6 @@
 /* { dg-do compile } */
 /* Verify that compare exchange mappings match the Ztso suggested mapping.  */
-/* { dg-options "-march=rv64id_ztso" } */
+/* { dg-options "-march=rv64id_ztso -mabi=lp64d" } */
 /* { dg-final { scan-assembler-times "lr.w.aqrl\t" 1 } } */
 /* { dg-final { scan-assembler-times "sc.w.rl\t" 1 } } */
 
index a9ba4a252e7444d4ed16d4c009afd55405bf9794..81f2f9fbbd68eec2915f9def90bb3e4a7d77fb87 100644 (file)
@@ -1,6 +1,6 @@
 /* { dg-do compile } */
 /* Verify that fence mappings match the Ztso suggested mapping.  */
-/* { dg-options "-march=rv64id_ztso -O3" } */
+/* { dg-options "-march=rv64id_ztso -mabi=lp64d -O3" } */
 /* { dg-skip-if "" { *-*-* } { "-g" "-flto"} } */
 /* { dg-final { check-function-bodies "**" "" } } */
 
index 9b083431d1a37b17634658e1c56d55081836903a..8e868890bae6999208fcfbaae6205d88409cb334 100644 (file)
@@ -1,6 +1,6 @@
 /* { dg-do compile } */
 /* Verify that fence mappings match the Ztso suggested mapping.  */
-/* { dg-options "-march=rv64id_ztso -O3" } */
+/* { dg-options "-march=rv64id_ztso -mabi=lp64d -O3" } */
 /* { dg-skip-if "" { *-*-* } { "-g" "-flto"} } */
 /* { dg-final { check-function-bodies "**" "" } } */
 
index db21ee6f0314034ea59fcfa861315c8d11ce8b15..5eb1aa7f47200b1f3d368de2e965e24231319602 100644 (file)
@@ -1,6 +1,6 @@
 /* { dg-do compile } */
 /* Verify that fence mappings match the Ztso suggested mapping.  */
-/* { dg-options "-march=rv64id_ztso -O3" } */
+/* { dg-options "-march=rv64id_ztso -mabi=lp64d -O3" } */
 /* { dg-skip-if "" { *-*-* } { "-g" "-flto"} } */
 /* { dg-final { check-function-bodies "**" "" } } */
 
index d5bc61b57e88b54108b6dfa5fa7e5b1220e177a9..3df959a3eb020916fa9542517f79033f4b20e118 100644 (file)
@@ -1,6 +1,6 @@
 /* { dg-do compile } */
 /* Verify that fence mappings match the Ztso suggested mapping.  */
-/* { dg-options "-march=rv64id_ztso -O3" } */
+/* { dg-options "-march=rv64id_ztso -mabi=lp64d -O3" } */
 /* { dg-skip-if "" { *-*-* } { "-g" "-flto"} } */
 /* { dg-final { check-function-bodies "**" "" } } */
 
index e5e5f4e50126e95ee591a6bd3a08c00a776f79c4..731f9a342677ae425cb4239a1b42dcc57a38be14 100644 (file)
@@ -1,6 +1,6 @@
 /* { dg-do compile } */
 /* Verify that fence mappings match the Ztso suggested mapping.  */
-/* { dg-options "-march=rv64id_ztso -O3" } */
+/* { dg-options "-march=rv64id_ztso -mabi=lp64d -O3" } */
 /* { dg-skip-if "" { *-*-* } { "-g" "-flto"} } */
 /* { dg-final { check-function-bodies "**" "" } } */
 
index be5f8d310a422eae0cd865906ec97b2122e90099..b911a6e3207eedbd41de0759c030803f0209ead0 100644 (file)
@@ -1,6 +1,6 @@
 /* { dg-do compile } */
 /* Verify that load mappings match the Ztso suggested mapping.  */
-/* { dg-options "-march=rv64id_ztso -O3" } */
+/* { dg-options "-march=rv64id_ztso -mabi=lp64d -O3" } */
 /* { dg-skip-if "" { *-*-* } { "-g" "-flto"} } */
 /* { dg-final { check-function-bodies "**" "" } } */
 
index 305838416489cea3fdf27e3115b4e45153907ae3..056506f637023a77745ebec9fbc9755f5a90a63a 100644 (file)
@@ -1,6 +1,6 @@
 /* { dg-do compile } */
 /* Verify that load mappings match the Ztso suggested mapping.  */
-/* { dg-options "-march=rv64id_ztso -O3" } */
+/* { dg-options "-march=rv64id_ztso -mabi=lp64d -O3" } */
 /* { dg-skip-if "" { *-*-* } { "-g" "-flto"} } */
 /* { dg-final { check-function-bodies "**" "" } } */
 
index c1c3b57bfe519c40d7a9e4e98e9d12b8dc6228e0..35a301f321d9b89cc0d891d0f9d13aed18565f21 100644 (file)
@@ -1,6 +1,6 @@
 /* { dg-do compile } */
 /* Verify that load mappings match the Ztso suggested mapping.  */
-/* { dg-options "-march=rv64id_ztso -O3" } */
+/* { dg-options "-march=rv64id_ztso -mabi=lp64d -O3" } */
 /* { dg-skip-if "" { *-*-* } { "-g" "-flto"} } */
 /* { dg-final { check-function-bodies "**" "" } } */
 
index f5519db22f72db3ae21e2056ed67592e8c01891c..f0bda4b242074713d8dc7895cc84c01d9ac93da6 100644 (file)
@@ -1,6 +1,6 @@
 /* { dg-do compile } */
 /* Verify that store mappings match the Ztso suggested mapping.  */
-/* { dg-options "-march=rv64id_ztso -O3" } */
+/* { dg-options "-march=rv64id_ztso -mabi=lp64d -O3" } */
 /* { dg-skip-if "" { *-*-* } { "-g" "-flto"} } */
 /* { dg-final { check-function-bodies "**" "" } } */
 
index 440f407e66abc7ff0d7e28c15816c36e82065ef9..45f73056aa4f0b47ca32f6ebbefe03c627765d77 100644 (file)
@@ -1,6 +1,6 @@
 /* { dg-do compile } */
 /* Verify that store mappings match the Ztso suggested mapping.  */
-/* { dg-options "-march=rv64id_ztso -O3" } */
+/* { dg-options "-march=rv64id_ztso -mabi=lp64d -O3" } */
 /* { dg-skip-if "" { *-*-* } { "-g" "-flto"} } */
 /* { dg-final { check-function-bodies "**" "" } } */
 
index a92d4d1ce9a4b56d02db9d1648d4d80dde250179..762468b248e855f0623a2f409b31e8beeb8d1611 100644 (file)
@@ -1,6 +1,6 @@
 /* { dg-do compile } */
 /* Verify that store mappings match the Ztso suggested mapping.  */
-/* { dg-options "-march=rv64id_ztso -O3" } */
+/* { dg-options "-march=rv64id_ztso -mabi=lp64d -O3" } */
 /* { dg-skip-if "" { *-*-* } { "-g" "-flto"} } */
 /* { dg-final { check-function-bodies "**" "" } } */
 
index e187a6b7335ed158f6b91a7758b912bab15233a7..e9ae506f32c04762b33588e0665d2f27c17297fd 100644 (file)
@@ -1,6 +1,6 @@
 /* { dg-do compile } */
 /* Verify that subword atomic op mappings match the Ztso suggested mapping.  */
-/* { dg-options "-march=rv64id_ztso" } */
+/* { dg-options "-march=rv64id_ztso -mabi=lp64d" } */
 /* { dg-final { scan-assembler-times "lr.w\t" 1 } } */
 /* { dg-final { scan-assembler-times "sc.w\t" 1 } } */
 
index 1e0867624bad139b2267e708381b31ff031feba9..f47922f13e46c06fe5706ee57acb2da8cdf67998 100644 (file)
@@ -1,6 +1,6 @@
 /* { dg-do compile } */
 /* Verify that subword atomic op mappings match the Ztso suggested mapping.  */
-/* { dg-options "-march=rv64id_ztso" } */
+/* { dg-options "-march=rv64id_ztso -mabi=lp64d" } */
 /* { dg-final { scan-assembler-times "lr.w\t" 1 } } */
 /* { dg-final { scan-assembler-times "sc.w\t" 1 } } */
 
index 4b2ef967375ffeb34e8a44d70c64ff2f2a10bf1b..296387ad07cb91ecf206b1423dbe4d6d891e5cae 100644 (file)
@@ -1,6 +1,6 @@
 /* { dg-do compile } */
 /* Verify that subword atomic op mappings match the Ztso suggested mapping.  */
-/* { dg-options "-march=rv64id_ztso" } */
+/* { dg-options "-march=rv64id_ztso -mabi=lp64d" } */
 /* { dg-final { scan-assembler-times "lr.w\t" 1 } } */
 /* { dg-final { scan-assembler-times "sc.w\t" 1 } } */
 
index 87e5356f0a7ebc616e84daf3610557d83d6cd353..f919ede73032db827e9206e7a89e41076bc2cf31 100644 (file)
@@ -1,6 +1,6 @@
 /* { dg-do compile } */
 /* Verify that subword atomic op mappings match the Ztso suggested mapping.  */
-/* { dg-options "-march=rv64id_ztso" } */
+/* { dg-options "-march=rv64id_ztso -mabi=lp64d" } */
 /* { dg-final { scan-assembler-times "lr.w\t" 1 } } */
 /* { dg-final { scan-assembler-times "sc.w\t" 1 } } */
 
index fd59c8880ecec98b9e384708d7afdcf9ed7c0d43..2027a93218cb6a9d38a5e33a13c1eecb0e4b2a4e 100644 (file)
@@ -1,6 +1,6 @@
 /* { dg-do compile } */
 /* Verify that subword atomic op mappings match the Ztso suggested mapping.  */
-/* { dg-options "-march=rv64id_ztso" } */
+/* { dg-options "-march=rv64id_ztso -mabi=lp64d" } */
 /* { dg-final { scan-assembler-times "lr.w.aqrl\t" 1 } } */
 /* { dg-final { scan-assembler-times "sc.w.rl\t" 1 } } */