From 2cd1e5c04a201660f84e0b1435bc2c1d6d4e5244 Mon Sep 17 00:00:00 2001 From: Colin LeMahieu Date: Wed, 17 Feb 2016 18:14:05 +0000 Subject: [PATCH] [Hexagon] Loop instructions don't need special processing. Extension and fitting is performed by generic code and the comment is incorrect, loops don't have a separate extended opcode. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@261118 91177308-0d34-0410-b5e6-96231b3b80d8 --- .../Hexagon/AsmParser/HexagonAsmParser.cpp | 25 ------------------- 1 file changed, 25 deletions(-) diff --git a/lib/Target/Hexagon/AsmParser/HexagonAsmParser.cpp b/lib/Target/Hexagon/AsmParser/HexagonAsmParser.cpp index b6d10f7dc0b..03cb9ab46ce 100644 --- a/lib/Target/Hexagon/AsmParser/HexagonAsmParser.cpp +++ b/lib/Target/Hexagon/AsmParser/HexagonAsmParser.cpp @@ -1606,31 +1606,6 @@ int HexagonAsmParser::processInstruction(MCInst &Inst, } break; } - case Hexagon::J2_loop1r: - case Hexagon::J2_loop1i: - case Hexagon::J2_loop0r: - case Hexagon::J2_loop0i: { - MCOperand &MO = Inst.getOperand(0); - // Loop has different opcodes for extended vs not extended, but we should - // not use the other opcode as it is a legacy artifact of TD files. - int64_t Value; - if (MO.getExpr()->evaluateAsAbsolute(Value)) { - // if the operand can fit within a 7:2 field - if (Value < (1 << 8) && Value >= -(1 << 8)) { - SMLoc myLoc = Operands[2]->getStartLoc(); - // # is left in startLoc in the case of ## - // If '##' found then force extension. - if (*myLoc.getPointer() == '#') { - MustExtend = true; - break; - } - } else { - // If immediate and out of 7:2 range. - MustExtend = true; - } - } - break; - } // Translate a "$Rdd = $Rss" to "$Rdd = combine($Rs, $Rt)" case Hexagon::A2_tfrp: {