在 2025/9/9 上午11:30, Xi Ruoyao 写道:
Bootstrapped and regtested on loongarch64-linux-gnu. Ok for trunk?
LGTM! Thanks!
Changes from v2 to v3: - Reorder the ICE fix before the semantic fix - Fix incorrect RTL for the fcc output Changes from v1 to v2: - Use { xfail } in { dg-final } instead of { dg-xfail-if }, because it's the thread simulation test that we know to fail with current GDB, not the compile test. Xi Ruoyao (3): LoongArch: Fix the "%t" modifier handling for (const_int 0) LoongArch: Fix the semantic of 16B CAS testsuite: LoongArch: Enable 16B atomic tests if the test machine supports LSX and SCQ gcc/config/loongarch/loongarch.cc | 3 +- gcc/config/loongarch/sync.md | 104 +++++++++++------- .../gcc.dg/atomic-compare-exchange-5.c | 1 + gcc/testsuite/gcc.dg/atomic-exchange-5.c | 1 + gcc/testsuite/gcc.dg/atomic-load-5.c | 1 + gcc/testsuite/gcc.dg/atomic-op-5.c | 1 + gcc/testsuite/gcc.dg/atomic-store-5.c | 1 + gcc/testsuite/gcc.dg/atomic-store-6.c | 1 + .../simulate-thread/atomic-load-int128.c | 1 + .../simulate-thread/atomic-other-int128.c | 7 +- gcc/testsuite/lib/target-supports.exp | 20 +++- 11 files changed, 96 insertions(+), 45 deletions(-)