aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/Mips/MipsInstrInfo.td
diff options
context:
space:
mode:
authorAkira Hatanaka <ahatanaka@mips.com>2013-02-06 21:50:15 +0000
committerAkira Hatanaka <ahatanaka@mips.com>2013-02-06 21:50:15 +0000
commit6c59c9f57c8428e477ed592ee3537323d287d96f (patch)
tree68e4d9060fa3b4ce54ab37898aa5d2796369a704 /lib/Target/Mips/MipsInstrInfo.td
parent62b055fd5060a865e106c319b75884237a3999b3 (diff)
downloadexternal_llvm-6c59c9f57c8428e477ed592ee3537323d287d96f.zip
external_llvm-6c59c9f57c8428e477ed592ee3537323d287d96f.tar.gz
external_llvm-6c59c9f57c8428e477ed592ee3537323d287d96f.tar.bz2
[mips] Make NOP a pseudo instruction and expand it to "sll $zero, $zero, 0".
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174546 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Mips/MipsInstrInfo.td')
-rw-r--r--lib/Target/Mips/MipsInstrInfo.td3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Target/Mips/MipsInstrInfo.td b/lib/Target/Mips/MipsInstrInfo.td
index f9e3af5..7e33cb1 100644
--- a/lib/Target/Mips/MipsInstrInfo.td
+++ b/lib/Target/Mips/MipsInstrInfo.td
@@ -918,8 +918,7 @@ def CLO : CountLeading1<"clo", CPURegsOpnd>, CLO_FM<0x21>;
def WSBH : SubwordSwap<"wsbh", CPURegsOpnd>, SEB_FM<2, 0x20>;
/// No operation.
-/// FIXME: NOP should be an alias of "sll $0, $0, 0".
-def NOP : InstSE<(outs), (ins), "nop", [], IIAlu, FrmJ>, NOP_FM;
+def NOP : PseudoSE<(outs), (ins), []>, PseudoInstExpansion<(SLL ZERO, ZERO, 0)>;
// FrameIndexes are legalized when they are operands from load/store
// instructions. The same not happens for stack address copies, so an