diff options
author | Edwin Lu <ewlu@rivosinc.com> | 2025-01-09 10:32:07 -0800 |
---|---|---|
committer | Edwin Lu <ewlu@rivosinc.com> | 2025-01-09 14:11:00 -0800 |
commit | 2d0f3457a80b804dc0d33924781cf386a0088511 (patch) | |
tree | e8d5330928c0dc0bf1a6a49eee04dbf3df8ae2ea /gcc | |
parent | 08b6e875c6b1b52c6e98f4a2e37124bf8c6a6ccb (diff) | |
download | gcc-2d0f3457a80b804dc0d33924781cf386a0088511.zip gcc-2d0f3457a80b804dc0d33924781cf386a0088511.tar.gz gcc-2d0f3457a80b804dc0d33924781cf386a0088511.tar.bz2 |
RISC-V: testsuite: fix target selector for sync_char_short
The effective-target selector for riscv on sync_char_short did not
check to see if atomics were enabled. As a result, these test cases were
ran on targets without the a extension. Add additional checks for zalrsc
or zabha extensions.
gcc/testsuite/ChangeLog:
* lib/target-supports.exp: Fix effective target sync_char_short
for riscv*-*-*
Signed-off-by: Edwin Lu <ewlu@rivosinc.com>
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/lib/target-supports.exp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp index a89f531..939ef3a 100644 --- a/gcc/testsuite/lib/target-supports.exp +++ b/gcc/testsuite/lib/target-supports.exp @@ -10080,7 +10080,9 @@ proc check_effective_target_sync_char_short { } { || ([istarget sparc*-*-*] && [check_effective_target_sparc_v9]) || ([istarget arc*-*-*] && [check_effective_target_arc_atomic]) || [istarget loongarch*-*-*] - || [istarget riscv*-*-*] + || ([istarget riscv*-*-*] + && ([check_effective_target_riscv_zalrsc] + || [check_effective_target_riscv_zabha])) || [check_effective_target_mips_llsc] }}] } |