]> granicus.if.org Git - llvm/commitdiff
[mips] Add missing mips16 instructions to general scheduling definitions
authorSimon Atanasyan <simon@atanasyan.com>
Wed, 3 Jul 2019 10:33:09 +0000 (10:33 +0000)
committerSimon Atanasyan <simon@atanasyan.com>
Wed, 3 Jul 2019 10:33:09 +0000 (10:33 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@365022 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/Mips/Mips16InstrInfo.td
lib/Target/Mips/MipsScheduleGeneric.td

index fff9f6ad02fbaf8d8e94f8d4470ab6f91b45022b..36b6c73d1008a93add7f7269cd1724eaa402482a 100644 (file)
@@ -483,13 +483,11 @@ class SelT<string op1, string op2>:
 //
 // 32 bit constant
 //
-def Constant32:
-  MipsPseudo16<(outs), (ins simm32:$imm), "\t.word $imm", []>;
+def Constant32 : MipsPseudo16<(outs), (ins simm32:$imm), "\t.word $imm", []>;
 
-def LwConstant32:
+def LwConstant32 :
   MipsPseudo16<(outs CPU16Regs:$rx), (ins simm32:$imm, simm32:$constid),
-    "lw\t$rx, 1f\n\tb\t2f\n\t.align\t2\n1: \t.word\t$imm\n2:", []>;
-
+               "lw\t$rx, 1f\n\tb\t2f\n\t.align\t2\n1: \t.word\t$imm\n2:", []>;
 
 //
 // Some general instruction class info
index 780feb34b049f08ed79135a4303c451416c357b3..4f3afeb720daf83746761df1ca050db0ec0afbcf 100644 (file)
@@ -79,6 +79,9 @@ def : InstRW<[GenericWriteALU], (instrs AddiuRxImmX16, AddiuRxRxImm16,
                                  SraX16, SrlvRxRy16, SrlX16, SubuRxRyRz16,
                                  XorRxRxRy16)>;
 
+def : InstRW<[GenericWriteALU], (instrs Constant32, LwConstant32,
+                                 GotPrologue16, CONSTPOOL_ENTRY)>;
+
 // microMIPS
 // =========