[llvm] [SPARC][IAS] Add GNU extension for `addc` (PR #94245)
Eli Friedman via llvm-commits
llvm-commits at lists.llvm.org
Sun Jun 9 12:37:55 PDT 2024
================
@@ -560,11 +560,16 @@ def : InstAlias<"mov $simm13, %tbr", (WRTBRri G0, simm13Op:$simm13), 0>;
// End of Section A.3
-// or imm, reg, rd -> or reg, imm, rd
-// Nonstandard GNU extension.
-let EmitPriority = 0 in
+
+// Nonstandard GNU extensions.
+let EmitPriority = 0 in {
+ // or imm, reg, rd -> or reg, imm, rd
def : InstAlias<"or $simm13, $rs1, $rd", (ORri IntRegs:$rd, IntRegs:$rs1, simm13Op:$simm13)>;
+ // addc/addx imm, reg, rd -> or reg, imm, rd
----------------
efriedma-quic wrote:
`addc/addx imm, reg, rd -> addc/addx reg, imm, rd`?
https://github.com/llvm/llvm-project/pull/94245
More information about the llvm-commits
mailing list