aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorLulu Cheng <chenglulu@loongson.cn>2024-06-28 15:04:26 +0800
committerLulu Cheng <chenglulu@loongson.cn>2024-07-02 16:11:34 +0800
commit20909c97211f25fb29edcd12cb148309c919bf81 (patch)
tree8552fb185bd7cf63ae9fac52712e2dcdfd4df432 /gcc
parent56670281c6db19d75c7b63e38971ab84681b245c (diff)
downloadgcc-20909c97211f25fb29edcd12cb148309c919bf81.zip
gcc-20909c97211f25fb29edcd12cb148309c919bf81.tar.gz
gcc-20909c97211f25fb29edcd12cb148309c919bf81.tar.bz2
LoongArch: Fix explicit-relocs-{extreme-,}tls-desc.c tests.
After r15-1579, ADD and LD/ST pairs will be merged into LDX/STX. Cause these two tests to fail. To guarantee that these two tests pass, add the compilation option '-fno-late-combine-instructions'. gcc/testsuite/ChangeLog: * gcc.target/loongarch/explicit-relocs-extreme-tls-desc.c: Add compilation options '-fno-late-combine-instructions'. * gcc.target/loongarch/explicit-relocs-tls-desc.c: Likewise.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/gcc.target/loongarch/explicit-relocs-extreme-tls-desc.c2
-rw-r--r--gcc/testsuite/gcc.target/loongarch/explicit-relocs-tls-desc.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/gcc/testsuite/gcc.target/loongarch/explicit-relocs-extreme-tls-desc.c b/gcc/testsuite/gcc.target/loongarch/explicit-relocs-extreme-tls-desc.c
index 3797556..e9eb0d6 100644
--- a/gcc/testsuite/gcc.target/loongarch/explicit-relocs-extreme-tls-desc.c
+++ b/gcc/testsuite/gcc.target/loongarch/explicit-relocs-extreme-tls-desc.c
@@ -1,5 +1,5 @@
/* { dg-do compile } */
-/* { dg-options "-O2 -fPIC -mexplicit-relocs -mtls-dialect=desc -mcmodel=extreme" } */
+/* { dg-options "-O2 -fPIC -mexplicit-relocs -mtls-dialect=desc -mcmodel=extreme -fno-late-combine-instructions" } */
__thread int a __attribute__((visibility("hidden")));
extern __thread int b __attribute__((visibility("default")));
diff --git a/gcc/testsuite/gcc.target/loongarch/explicit-relocs-tls-desc.c b/gcc/testsuite/gcc.target/loongarch/explicit-relocs-tls-desc.c
index f669030..fed4784 100644
--- a/gcc/testsuite/gcc.target/loongarch/explicit-relocs-tls-desc.c
+++ b/gcc/testsuite/gcc.target/loongarch/explicit-relocs-tls-desc.c
@@ -1,5 +1,5 @@
/* { dg-do compile } */
-/* { dg-options "-O2 -fPIC -mexplicit-relocs -mtls-dialect=desc" } */
+/* { dg-options "-O2 -fPIC -mexplicit-relocs -mtls-dialect=desc -fno-late-combine-instructions" } */
__thread int a __attribute__((visibility("hidden")));
extern __thread int b __attribute__((visibility("default")));