diff options
| author | Richard-Qin-X <richard.qin.001@gmail.com> | 2026-08-11 17:59:16 +0800 |
|---|---|---|
| committer | Richard-Qin-X <richard.qin.001@gmail.com> | 2026-08-11 17:59:16 +0800 |
| commit | 1e0003ec107dff77cd579d245f6314cbf7d4f3fc (patch) | |
| tree | 298346e1a1f83f8b451f2edd72333dc33c9cd951 /backend/lib/CodeGen | |
| parent | f5ebe810b5197dbb268db890c5bfec016f447101 (diff) | |
| download | rcc-project-1e0003ec107dff77cd579d245f6314cbf7d4f3fc.tar.gz rcc-project-1e0003ec107dff77cd579d245f6314cbf7d4f3fc.tar.xz | |
[RISCV] Legalize narrow atomic compare exchange
Diffstat (limited to 'backend/lib/CodeGen')
| -rw-r--r-- | backend/lib/CodeGen/GenericOpcodes.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/backend/lib/CodeGen/GenericOpcodes.cpp b/backend/lib/CodeGen/GenericOpcodes.cpp index 0ffb26a..4c60675 100644 --- a/backend/lib/CodeGen/GenericOpcodes.cpp +++ b/backend/lib/CodeGen/GenericOpcodes.cpp @@ -891,12 +891,12 @@ private: if (MemoryOperands.size() != 1 || MemoryOperands.front()->description().AtomicKind != AtomicOperation::CompareExchange) return semanticError("G_ATOMIC_CMPXCHG_WITH_SUCCESS requires one compare-exchange MMO"); - return VerifySingleAccess(2, 0, true, true, SizeRelation::Equal); + return VerifySingleAccess(2, 0, true, true, SizeRelation::NoLarger); case GO::G_ATOMIC_CMPXCHG: if (MemoryOperands.size() != 1 || MemoryOperands.front()->description().AtomicKind != AtomicOperation::CompareExchange) return semanticError("G_ATOMIC_CMPXCHG requires one compare-exchange MMO"); - return VerifySingleAccess(1, 0, true, true, SizeRelation::Equal); + return VerifySingleAccess(1, 0, true, true, SizeRelation::NoLarger); case GO::G_ATOMICRMW_XCHG: case GO::G_ATOMICRMW_ADD: case GO::G_ATOMICRMW_SUB: |
