[llvm] r333068 - [Sparc] Add mnemonic aliases for flush, stb, stba, sth, and stha
Daniel Cederman via llvm-commits
llvm-commits at lists.llvm.org
Wed May 23 01:26:49 PDT 2018
Author: dcederman
Date: Wed May 23 01:26:49 2018
New Revision: 333068
URL: http://llvm.org/viewvc/llvm-project?rev=333068&view=rev
Log:
[Sparc] Add mnemonic aliases for flush, stb, stba, sth, and stha
Reviewers: jyknight
Reviewed By: jyknight
Subscribers: fedor.sergeev, jrtc27, llvm-commits
Differential Revision: https://reviews.llvm.org/D47140
Modified:
llvm/trunk/lib/Target/Sparc/SparcInstrAliases.td
llvm/trunk/test/MC/Sparc/sparc-mem-instructions.s
Modified: llvm/trunk/lib/Target/Sparc/SparcInstrAliases.td
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Sparc/SparcInstrAliases.td?rev=333068&r1=333067&r2=333068&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Sparc/SparcInstrAliases.td (original)
+++ llvm/trunk/lib/Target/Sparc/SparcInstrAliases.td Wed May 23 01:26:49 2018
@@ -474,6 +474,19 @@ def : InstAlias<"wr $simm13, %tbr", (WRT
// flush -> flush %g0
def : InstAlias<"flush", (FLUSH), 0>;
+def : MnemonicAlias<"iflush", "flush">;
+
+def : MnemonicAlias<"stub", "stb">;
+def : MnemonicAlias<"stsb", "stb">;
+
+def : MnemonicAlias<"stuba", "stba">;
+def : MnemonicAlias<"stsba", "stba">;
+
+def : MnemonicAlias<"stuh", "sth">;
+def : MnemonicAlias<"stsh", "sth">;
+
+def : MnemonicAlias<"stuha", "stha">;
+def : MnemonicAlias<"stsha", "stha">;
def : MnemonicAlias<"lduw", "ld">, Requires<[HasV9]>;
def : MnemonicAlias<"lduwa", "lda">, Requires<[HasV9]>;
Modified: llvm/trunk/test/MC/Sparc/sparc-mem-instructions.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/Sparc/sparc-mem-instructions.s?rev=333068&r1=333067&r2=333068&view=diff
==============================================================================
--- llvm/trunk/test/MC/Sparc/sparc-mem-instructions.s (original)
+++ llvm/trunk/test/MC/Sparc/sparc-mem-instructions.s Wed May 23 01:26:49 2018
@@ -61,8 +61,16 @@
stb %o2, [%i0 + 32]
! CHECK: stb %o2, [%g1] ! encoding: [0xd4,0x28,0x40,0x00]
stb %o2, [%g1]
+ ! CHECK: stb %o2, [%g1] ! encoding: [0xd4,0x28,0x40,0x00]
+ stub %o2, [%g1]
+ ! CHECK: stb %o2, [%g1] ! encoding: [0xd4,0x28,0x40,0x00]
+ stsb %o2, [%g1]
! CHECK: stba %o2, [%i0+%l6] 131 ! encoding: [0xd4,0xae,0x10,0x76]
stba %o2, [%i0 + %l6] 131
+ ! CHECK: stba %o2, [%i0+%l6] 131 ! encoding: [0xd4,0xae,0x10,0x76]
+ stuba %o2, [%i0 + %l6] 131
+ ! CHECK: stba %o2, [%i0+%l6] 131 ! encoding: [0xd4,0xae,0x10,0x76]
+ stsba %o2, [%i0 + %l6] 131
! CHECK: sth %o2, [%i0+%l6] ! encoding: [0xd4,0x36,0x00,0x16]
sth %o2, [%i0 + %l6]
@@ -70,8 +78,16 @@
sth %o2, [%i0 + 32]
! CHECK: sth %o2, [%g1] ! encoding: [0xd4,0x30,0x40,0x00]
sth %o2, [%g1]
+ ! CHECK: sth %o2, [%g1] ! encoding: [0xd4,0x30,0x40,0x00]
+ stuh %o2, [%g1]
+ ! CHECK: sth %o2, [%g1] ! encoding: [0xd4,0x30,0x40,0x00]
+ stsh %o2, [%g1]
! CHECK: stha %o2, [%i0+%l6] 131 ! encoding: [0xd4,0xb6,0x10,0x76]
stha %o2, [%i0 + %l6] 131
+ ! CHECK: stha %o2, [%i0+%l6] 131 ! encoding: [0xd4,0xb6,0x10,0x76]
+ stuha %o2, [%i0 + %l6] 131
+ ! CHECK: stha %o2, [%i0+%l6] 131 ! encoding: [0xd4,0xb6,0x10,0x76]
+ stsha %o2, [%i0 + %l6] 131
! CHECK: st %o2, [%i0+%l6] ! encoding: [0xd4,0x26,0x00,0x16]
st %o2, [%i0 + %l6]
@@ -100,3 +116,5 @@
! Not specified in manual, but accepted by gas.
! CHECK: flush %g0 ! encoding: [0x81,0xd8,0x00,0x00]
flush
+ ! CHECK: flush %g0 ! encoding: [0x81,0xd8,0x00,0x00]
+ iflush
More information about the llvm-commits
mailing list