[PATCH] D96313: [SPARCv9] allow stw as alias for st

Joerg Sonnenberger via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu May 20 06:29:49 PDT 2021


This revision was automatically updated to reflect the committed changes.
Closed by commit rG80836ee519eb: [SPARCv9] allow stw as alias for st (authored by joerg).

Changed prior to commit:
  https://reviews.llvm.org/D96313?vs=322274&id=346708#toc

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D96313/new/

https://reviews.llvm.org/D96313

Files:
  llvm/lib/Target/Sparc/SparcInstrAliases.td
  llvm/test/MC/Sparc/sparcv9-instructions.s


Index: llvm/test/MC/Sparc/sparcv9-instructions.s
===================================================================
--- llvm/test/MC/Sparc/sparcv9-instructions.s
+++ llvm/test/MC/Sparc/sparcv9-instructions.s
@@ -293,3 +293,6 @@
         ! V8-NEXT: rdpr %wstate,%i5
         ! V9: rdpr %wstate, %i5         ! encoding: [0xbb,0x53,0x80,0x00]
         rdpr %wstate,%i5
+
+        ! V9: st %o1, [%o0]             ! encoding: [0xd2,0x22,0x00,0x00]
+        stw %o1, [%o0]
Index: llvm/lib/Target/Sparc/SparcInstrAliases.td
===================================================================
--- llvm/lib/Target/Sparc/SparcInstrAliases.td
+++ llvm/lib/Target/Sparc/SparcInstrAliases.td
@@ -491,6 +491,7 @@
 
 def : MnemonicAlias<"stuha", "stha">;
 def : MnemonicAlias<"stsha", "stha">;
+def : MnemonicAlias<"stw", "st">, Requires<[HasV9]>;
 
 def : MnemonicAlias<"lduw", "ld">, Requires<[HasV9]>;
 def : MnemonicAlias<"lduwa", "lda">, Requires<[HasV9]>;


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D96313.346708.patch
Type: text/x-patch
Size: 948 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210520/f06960b4/attachment.bin>


More information about the llvm-commits mailing list