aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorXi Ruoyao <xry111@xry111.site>2025-02-03 11:15:22 +0800
committerXi Ruoyao <xry111@xry111.site>2025-03-01 11:37:38 +0800
commit20d95bfa29057104b352e5d82699edede8658499 (patch)
treed5c28297087e745802d8627806241c52a3f86e10 /gcc
parenta8ee522c5923ba17851e4b71316a2dff19d6368f (diff)
downloadgcc-20d95bfa29057104b352e5d82699edede8658499.zip
gcc-20d95bfa29057104b352e5d82699edede8658499.tar.gz
gcc-20d95bfa29057104b352e5d82699edede8658499.tar.bz2
testsuite: Fix up toplevel-asm-1.c for LoongArch
Like RISC-V, on LoongArch we don't really support %cN for SYMBOL_REFs even with -fno-pic. gcc/testsuite/ChangeLog: * c-c++-common/toplevel-asm-1.c: Use %cc3 %cc4 instead of %c3 %c4 on LoongArch.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/c-c++-common/toplevel-asm-1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/testsuite/c-c++-common/toplevel-asm-1.c b/gcc/testsuite/c-c++-common/toplevel-asm-1.c
index d6766b0..e1687d2 100644
--- a/gcc/testsuite/c-c++-common/toplevel-asm-1.c
+++ b/gcc/testsuite/c-c++-common/toplevel-asm-1.c
@@ -9,7 +9,7 @@ int v[42];
void foo (void) {}
/* Not all targets can use %cN even in non-pic code. */
-#if defined(__riscv)
+#if defined(__riscv) || defined(__loongarch__)
asm ("# %0 %1 %2 %cc3 %cc4 %5 %% %="
#else
asm ("# %0 %1 %2 %c3 %c4 %5 %% %="