Bootstrapped and regtested on loongarch64-linux-gnu.  Ok for trunk?

Changes from v1:
- 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 semantic of 16B CAS
  LoongArch: Fix ICE on atomic-compare-exchange-5.c
  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(-)

-- 
2.51.0

Reply via email to