2 string Arch = "micromips";
3 list<dag> Pattern = [];
6 class ADD_FM_MM<bits<6> op, bits<10> funct> : MMArch {
18 let Inst{9-0} = funct;
21 class ADDI_FM_MM<bits<6> op> : MMArch {
31 let Inst{15-0} = imm16;
34 class SLTI_FM_MM<bits<6> op> : MMArch {
44 let Inst{15-0} = imm16;
47 class LUI_FM_MM : MMArch {
53 let Inst{31-26} = 0x10;
54 let Inst{25-21} = 0xd;
56 let Inst{15-0} = imm16;
59 class MULT_FM_MM<bits<10> funct> : MMArch {
65 let Inst{31-26} = 0x00;
68 let Inst{15-6} = funct;
72 class SRA_FM_MM<bits<10> funct, bit rotate> : MMArch {
82 let Inst{15-11} = shamt;
83 let Inst{10} = rotate;
84 let Inst{9-0} = funct;
87 class SRLV_FM_MM<bits<10> funct, bit rotate> : MMArch {
98 let Inst{10} = rotate;
99 let Inst{9-0} = funct;
102 class LW_FM_MM<bits<6> op> : MMArch {
108 let Inst{31-26} = op;
109 let Inst{25-21} = rt;
110 let Inst{20-16} = addr{20-16};
111 let Inst{15-0} = addr{15-0};
114 class LWL_FM_MM<bits<4> funct> {
120 let Inst{31-26} = 0x18;
121 let Inst{25-21} = rt;
122 let Inst{20-16} = addr{20-16};
123 let Inst{15-12} = funct;
124 let Inst{11-0} = addr{11-0};
127 class CMov_F_I_FM_MM<bits<7> func> : MMArch {
134 let Inst{31-26} = 0x15;
135 let Inst{25-21} = rd;
136 let Inst{20-16} = rs;
137 let Inst{15-13} = fcc;
138 let Inst{12-6} = func;
139 let Inst{5-0} = 0x3b;