[llvm] [AArch64] AArch64::ADCWr and friends map to their sForm, but their sForms do not map to themselves (PR #167518)
via llvm-commits
llvm-commits at lists.llvm.org
Sun Jan 11 11:39:15 PST 2026
https://github.com/AZero13 updated https://github.com/llvm/llvm-project/pull/167518
>From 486cc8a92f71166d4045d084247a6c3a64e9719c Mon Sep 17 00:00:00 2001
From: AZero13 <gfunni234 at gmail.com>
Date: Tue, 11 Nov 2025 10:12:05 -0500
Subject: [PATCH] [AArch64] AArch64::ADCWr and friends map to their sForm, but
their sForms do not map to themselves
Fix this inconsistency.
---
llvm/lib/Target/AArch64/AArch64InstrInfo.cpp | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/llvm/lib/Target/AArch64/AArch64InstrInfo.cpp b/llvm/lib/Target/AArch64/AArch64InstrInfo.cpp
index f04bbf248ca56..afc83898844d4 100644
--- a/llvm/lib/Target/AArch64/AArch64InstrInfo.cpp
+++ b/llvm/lib/Target/AArch64/AArch64InstrInfo.cpp
@@ -1979,6 +1979,10 @@ static unsigned sForm(MachineInstr &Instr) {
case AArch64::BICSXrr:
case AArch64::BICSWrs:
case AArch64::BICSXrs:
+ case AArch64::ADCSWr:
+ case AArch64::ADCSXr:
+ case AArch64::SBCSWr:
+ case AArch64::SBCSXr:
return Instr.getOpcode();
case AArch64::ADDWrr:
More information about the llvm-commits
mailing list