From: Colin LeMahieu Date: Tue, 25 Nov 2014 21:23:07 +0000 (+0000) Subject: [Hexagon] Adding NOP encoding bits. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=c688fdbeeabdf9f016f876d708880a492f416a54;p=oota-llvm.git [Hexagon] Adding NOP encoding bits. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@222791 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/Hexagon/HexagonInstrInfo.td b/lib/Target/Hexagon/HexagonInstrInfo.td index 1574f8cb745..99721344e31 100644 --- a/lib/Target/Hexagon/HexagonInstrInfo.td +++ b/lib/Target/Hexagon/HexagonInstrInfo.td @@ -409,10 +409,11 @@ def AND_ri : ALU32_ri<(outs IntRegs:$dst), s10ExtPred:$src2))]>, ImmRegRel; // Nop. -let neverHasSideEffects = 1, isCodeGenOnly = 0 in -def NOP : ALU32_rr<(outs), (ins), - "nop", - []>; +let hasSideEffects = 0 in +def A2_nop: ALU32Inst <(outs), (ins), "nop" > { + let IClass = 0b0111; + let Inst{27-24} = 0b1111; +} // Rd32=sub(#s10,Rs32) let isExtendable = 1, opExtendable = 1, isExtentSigned = 1, opExtentBits = 10, diff --git a/lib/Target/Hexagon/MCTargetDesc/HexagonInstPrinter.cpp b/lib/Target/Hexagon/MCTargetDesc/HexagonInstPrinter.cpp index 1fd8d7052cf..2c9bd6b38f2 100644 --- a/lib/Target/Hexagon/MCTargetDesc/HexagonInstPrinter.cpp +++ b/lib/Target/Hexagon/MCTargetDesc/HexagonInstPrinter.cpp @@ -97,7 +97,7 @@ void HexagonInstPrinter::printInst(const HexagonMCInst *MI, raw_ostream &O, HexagonMCInst Nop; StringRef NoAnnot; - Nop.setOpcode (Hexagon::NOP); + Nop.setOpcode (Hexagon::A2_nop); Nop.setPacketStart (MI->isPacketStart()); printInst (&Nop, O, NoAnnot); }