[PATCH] D51526: [Sparc] Add unimp alias
Daniel Cederman via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 27 05:37:37 PDT 2018
This revision was not accepted when it landed; it landed in state "Needs Review".
This revision was automatically updated to reflect the committed changes.
Closed by commit rL343203: [Sparc] Add unimp alias (authored by dcederman, committed by ).
Changed prior to commit:
https://reviews.llvm.org/D51526?vs=163466&id=167298#toc
Repository:
rL LLVM
https://reviews.llvm.org/D51526
Files:
llvm/trunk/lib/Target/Sparc/SparcInstrAliases.td
llvm/trunk/test/MC/Sparc/sparc-misc-instructions.s
Index: llvm/trunk/test/MC/Sparc/sparc-misc-instructions.s
===================================================================
--- llvm/trunk/test/MC/Sparc/sparc-misc-instructions.s
+++ llvm/trunk/test/MC/Sparc/sparc-misc-instructions.s
@@ -0,0 +1,8 @@
+! RUN: llvm-mc %s -arch=sparc -show-encoding | FileCheck %s
+! RUN: llvm-mc %s -arch=sparcv9 -show-encoding | FileCheck %s
+
+ ! CHECK: unimp 0 ! encoding: [0x00,0x00,0x00,0x00]
+ unimp
+
+ ! CHECK: unimp 0 ! encoding: [0x00,0x00,0x00,0x00]
+ unimp 0
Index: llvm/trunk/lib/Target/Sparc/SparcInstrAliases.td
===================================================================
--- llvm/trunk/lib/Target/Sparc/SparcInstrAliases.td
+++ llvm/trunk/lib/Target/Sparc/SparcInstrAliases.td
@@ -476,6 +476,9 @@
// flush -> flush %g0
def : InstAlias<"flush", (FLUSH), 0>;
+// unimp -> unimp 0
+def : InstAlias<"unimp", (UNIMP 0), 0>;
+
def : MnemonicAlias<"iflush", "flush">;
def : MnemonicAlias<"stub", "stb">;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D51526.167298.patch
Type: text/x-patch
Size: 996 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180927/1fd92ac7/attachment.bin>
More information about the llvm-commits
mailing list