[llvm-branch-commits] [SPARC][IAS] Add definitions for OSA 2011 instructions (PR #138403)

Sergei Barannikov via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Tue May 27 02:16:15 PDT 2025


================
@@ -665,3 +724,9 @@ def : InstAlias<"signx $rs1, $rd", (SRArr IntRegs:$rd, IntRegs:$rs1, G0), 0>, Re
 
 // sir -> sir 0
 def : InstAlias<"sir", (SIR 0), 0>;
+
+// pause reg_or_imm -> wrasr %g0, reg_or_imm, %asr27
+let Predicates = [HasOSA2011] in {
+def : InstAlias<"pause $rs2", (WRASRrr ASR27, G0, IntRegs:$rs2), 1>;
+def : InstAlias<"pause $simm13", (WRASRri ASR27, G0, simm13Op:$simm13), 1>;
----------------
s-barannikov wrote:

Indentation
```suggestion
  def : InstAlias<"pause $rs2", (WRASRrr ASR27, G0, IntRegs:$rs2)>;
  def : InstAlias<"pause $simm13", (WRASRri ASR27, G0, simm13Op:$simm13)>;
```

https://github.com/llvm/llvm-project/pull/138403


More information about the llvm-branch-commits mailing list