[llvm] [bolt][RISCV] : Adjust the operand order of AMOADD to maintain consis… (PR #171580)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 10 00:45:46 PST 2025
https://github.com/hunenghui created https://github.com/llvm/llvm-project/pull/171580
The modification of the description of the RISCV atomic instructions missed updates to other projects that use the content of atomic instructions.#162411
>From 504ca96976dd4d7dee678aafa305cf4d93e131d5 Mon Sep 17 00:00:00 2001
From: hunenghui <hunenghui at ultrarisc.com>
Date: Wed, 10 Dec 2025 10:30:39 +0800
Subject: [PATCH] [bolt][RISCV] : Adjust the operand order of AMOADD to
maintain consistency with the instruction description.
---
bolt/lib/Target/RISCV/RISCVMCPlusBuilder.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/bolt/lib/Target/RISCV/RISCVMCPlusBuilder.cpp b/bolt/lib/Target/RISCV/RISCVMCPlusBuilder.cpp
index 7c4a8781fd57d..50faa377d5ebe 100644
--- a/bolt/lib/Target/RISCV/RISCVMCPlusBuilder.cpp
+++ b/bolt/lib/Target/RISCV/RISCVMCPlusBuilder.cpp
@@ -548,8 +548,8 @@ class RISCVMCPlusBuilder : public MCPlusBuilder {
MCPhysReg RegCnt) const {
Inst = MCInstBuilder(RISCV::AMOADD_D)
.addReg(RegAtomic)
- .addReg(RegTo)
- .addReg(RegCnt);
+ .addReg(RegCnt)
+ .addReg(RegTo);
}
InstructionListType createRegCmpJE(MCPhysReg RegNo, MCPhysReg RegTmp,
More information about the llvm-commits
mailing list