From 9fc83bad13bd60651e3a0bb7d237c002721f74a6 Mon Sep 17 00:00:00 2001 From: Sergei Barannikov Date: Sun, 7 Sep 2025 21:22:44 +0300 Subject: [PATCH] [Mips] Decode operand of JrcRx16 This change will allow to remove `-ignore-non-decodable-operands` TableGen option. The J(AL)R(C) instructions still have incorrect encodings, but it seems there is only one mips16 test that tests `nop`. --- llvm/lib/Target/Mips/Mips16InstrInfo.td | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/llvm/lib/Target/Mips/Mips16InstrInfo.td b/llvm/lib/Target/Mips/Mips16InstrInfo.td index fb2a83dc90ea9..ab473c133b8e3 100644 --- a/llvm/lib/Target/Mips/Mips16InstrInfo.td +++ b/llvm/lib/Target/Mips/Mips16InstrInfo.td @@ -374,8 +374,8 @@ class FRR16_JALRC_RA_only_ins nd_, bits<1> l_, class FRR16_JALRC_ins nd, bits<1> l, bits<1> ra, string asmstr, InstrItinClass itin>: - FRR16_JALRC ; + FRR16_JALRC ; class FRR_SF16_ins _funct, bits<3> _subfunc, @@ -776,7 +776,6 @@ def JrcRa16: FRR16_JALRC_RA_only_ins<1, 1, "jrc", IIM16Alu> { } def JrcRx16: FRR16_JALRC_ins<1, 1, 0, "jrc", IIM16Alu> { - let rx = 0b000; let isBranch = 1; let isIndirectBranch = 1; let isTerminator=1;