]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
LoongArch: Fix explicit-relocs-{extreme-,}tls-desc.c tests.
authorLulu Cheng <chenglulu@loongson.cn>
Fri, 28 Jun 2024 07:04:26 +0000 (15:04 +0800)
committerLulu Cheng <chenglulu@loongson.cn>
Tue, 2 Jul 2024 08:11:34 +0000 (16:11 +0800)
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.

gcc/testsuite/gcc.target/loongarch/explicit-relocs-extreme-tls-desc.c
gcc/testsuite/gcc.target/loongarch/explicit-relocs-tls-desc.c

index 3797556e1e6f50980733943cbc987811895ecc07..e9eb0d6f703e3bc99f87a8da0006b99870294b42 100644 (file)
@@ -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")));
index f669030915696e040db645b5328b488ace8bc11b..fed478458a3a90e08f7b88ae601275e803998fd6 100644 (file)
@@ -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")));