Lines Matching refs:rs2

1057   def : Pat<(Type (LoadOp (add GPR:$rs1, GPR:$rs2))), (Inst GPR:$rs1, GPR:$rs2, 0)>;
1058 def : Pat<(Type (LoadOp (add GPR:$rs1, (shl GPR:$rs2, (i32 1))))), (Inst GPR:$rs1, GPR:$rs2, 1)>;
1059 def : Pat<(Type (LoadOp (add GPR:$rs1, (shl GPR:$rs2, (i32 2))))), (Inst GPR:$rs1, GPR:$rs2, 2)>;
1060 def : Pat<(Type (LoadOp (add GPR:$rs1, (shl GPR:$rs2, (i32 3))))), (Inst GPR:$rs1, GPR:$rs2, 3)>;
1074 def : Pat<(StoreOp Type:$rs2, GPR:$rs1), (Inst Type:$rs2, GPR:$rs1, 0)>;
1075 …def : Pat<(StoreOp Type:$rs2, frameindex:$rs1), (Inst Type:$rs2, (i32 (to_tframeindex tframeindex:…
1076 def : Pat<(StoreOp Type:$rs2, (add GPR:$rs1, imm_type:$uimm12)),
1077 (Inst Type:$rs2, GPR:$rs1, imm_type:$uimm12)>;
1078 def : Pat<(StoreOp Type:$rs2, (add frameindex:$rs1, imm_type:$uimm12)),
1079 (Inst Type:$rs2, (i32 (to_tframeindex tframeindex:$rs1)), imm_type:$uimm12)>;
1080 def : Pat<(StoreOp Type:$rs2, (eqToAdd frameindex:$rs1, imm_type:$uimm12)),
1081 (Inst Type:$rs2, (i32 (to_tframeindex tframeindex:$rs1)), imm_type:$uimm12)>;
1089 def : Pat<(StoreOp Type:$rz, (add GPR:$rs1, GPR:$rs2)), (Inst Type:$rz, GPR:$rs1, GPR:$rs2, 0)>;
1090 … : Pat<(StoreOp Type:$rz, (add GPR:$rs1, (shl GPR:$rs2, (i32 1)))), (Inst Type:$rz, GPR:$rs1, GPR:…
1091 … : Pat<(StoreOp Type:$rz, (add GPR:$rs1, (shl GPR:$rs2, (i32 2)))), (Inst Type:$rz, GPR:$rs1, GPR:…
1092 … : Pat<(StoreOp Type:$rz, (add GPR:$rs1, (shl GPR:$rs2, (i32 3)))), (Inst Type:$rz, GPR:$rs1, GPR:…
1136 def : Pat<(brcond (i32 (setne GPR:$rs1, uimm16:$rs2)), bb:$imm16),
1137 (BT32 (CMPNEI32 GPR:$rs1, uimm16:$rs2), bb:$imm16)>;
1138 def : Pat<(brcond (i32 (seteq GPR:$rs1, uimm16:$rs2)), bb:$imm16),
1139 (BF32 (CMPNEI32 GPR:$rs1, uimm16:$rs2), bb:$imm16)>;
1140 def : Pat<(brcond (i32 (setuge GPR:$rs1, oimm16:$rs2)), bb:$imm16),
1141 (BT32 (CMPHSI32 GPR:$rs1, oimm16:$rs2), bb:$imm16)>;
1142 def : Pat<(brcond (i32 (setult GPR:$rs1, oimm16:$rs2)), bb:$imm16),
1143 (BF32 (CMPHSI32 GPR:$rs1, oimm16:$rs2), bb:$imm16)>;
1144 def : Pat<(brcond (i32 (setlt GPR:$rs1, oimm16:$rs2)), bb:$imm16),
1145 (BT32 (CMPLTI32 GPR:$rs1, oimm16:$rs2), bb:$imm16)>;
1146 def : Pat<(brcond (i32 (setge GPR:$rs1, oimm16:$rs2)), bb:$imm16),
1147 (BF32 (CMPLTI32 GPR:$rs1, oimm16:$rs2), bb:$imm16)>;
1153 def : Pat<(brcond (i32 (setne GPR:$rs1, GPR:$rs2)), bb:$imm16),
1154 (BT32 (CMPNE32 GPR:$rs1, GPR:$rs2), bb:$imm16)>;
1155 def : Pat<(brcond (i32 (seteq GPR:$rs1, GPR:$rs2)), bb:$imm16),
1156 (BF32 (CMPNE32 GPR:$rs1, GPR:$rs2), bb:$imm16)>;
1157 def : Pat<(brcond (i32 (setuge GPR:$rs1, GPR:$rs2)), bb:$imm16),
1158 (BT32 (CMPHS32 GPR:$rs1, GPR:$rs2), bb:$imm16)>;
1159 def : Pat<(brcond (i32 (setule GPR:$rs1, GPR:$rs2)), bb:$imm16),
1160 (BT32 (CMPHS32 GPR:$rs2, GPR:$rs1), bb:$imm16)>;
1161 def : Pat<(brcond (i32 (setult GPR:$rs1, GPR:$rs2)), bb:$imm16),
1162 (BF32 (CMPHS32 GPR:$rs1, GPR:$rs2), bb:$imm16)>;
1163 def : Pat<(brcond (i32 (setugt GPR:$rs1, GPR:$rs2)), bb:$imm16),
1164 (BF32 (CMPHS32 GPR:$rs2, GPR:$rs1), bb:$imm16)>;
1165 def : Pat<(brcond (i32 (setlt GPR:$rs1, GPR:$rs2)), bb:$imm16),
1166 (BT32 (CMPLT32 GPR:$rs1, GPR:$rs2), bb:$imm16)>;
1167 def : Pat<(brcond (i32 (setgt GPR:$rs1, GPR:$rs2)), bb:$imm16),
1168 (BT32 (CMPLT32 GPR:$rs2, GPR:$rs1), bb:$imm16)>;
1169 def : Pat<(brcond (i32 (setge GPR:$rs1, GPR:$rs2)), bb:$imm16),
1170 (BF32 (CMPLT32 GPR:$rs1, GPR:$rs2), bb:$imm16)>;
1171 def : Pat<(brcond (i32 (setle GPR:$rs1, GPR:$rs2)), bb:$imm16),
1172 (BF32 (CMPLT32 GPR:$rs2, GPR:$rs1), bb:$imm16)>;
1190 def : Pat<(setne GPR:$rs1, GPR:$rs2),
1191 (CMPNE32 GPR:$rs1, GPR:$rs2)>;
1192 def : Pat<(i32 (seteq GPR:$rs1, GPR:$rs2)),
1193 (MVCV32 (CMPNE32 GPR:$rs1, GPR:$rs2))>;
1194 def : Pat<(setuge GPR:$rs1, GPR:$rs2),
1195 (CMPHS32 GPR:$rs1, GPR:$rs2)>;
1196 def : Pat<(setule GPR:$rs1, GPR:$rs2),
1197 (CMPHS32 GPR:$rs2, GPR:$rs1)>;
1198 def : Pat<(i32 (setult GPR:$rs1, GPR:$rs2)),
1199 (MVCV32 (CMPHS32 GPR:$rs1, GPR:$rs2))>;
1200 def : Pat<(i32 (setugt GPR:$rs1, GPR:$rs2)),
1201 (MVCV32 (CMPHS32 GPR:$rs2, GPR:$rs1))>;
1202 def : Pat<(setlt GPR:$rs1, GPR:$rs2),
1203 (CMPLT32 GPR:$rs1, GPR:$rs2)>;
1204 def : Pat<(setgt GPR:$rs1, GPR:$rs2),
1205 (CMPLT32 GPR:$rs2, GPR:$rs1)>;
1206 def : Pat<(i32 (setge GPR:$rs1, GPR:$rs2)),
1207 (MVCV32 (CMPLT32 GPR:$rs1, GPR:$rs2))>;
1208 def : Pat<(i32 (setle GPR:$rs1, GPR:$rs2)),
1209 (MVCV32 (CMPLT32 GPR:$rs2, GPR:$rs1))>;
1213 def : Pat<(setne GPR:$rs1, uimm16:$rs2),
1214 (CMPNEI32 GPR:$rs1, uimm16:$rs2)>;
1216 def : Pat<(i32 (seteq GPR:$rs1, uimm16:$rs2)),
1217 (MVCV32 (CMPNEI32 GPR:$rs1, uimm16:$rs2))>;
1218 def : Pat<(setuge GPR:$rs1, oimm16:$rs2),
1219 (CMPHSI32 GPR:$rs1, oimm16:$rs2)>;
1221 def : Pat<(i32 (setult GPR:$rs1, oimm16:$rs2)),
1222 (MVCV32 (CMPHSI32 GPR:$rs1, oimm16:$rs2))>;
1223 def : Pat<(setlt GPR:$rs1, oimm16:$rs2),
1224 (CMPLTI32 GPR:$rs1, oimm16:$rs2)>;
1226 def : Pat<(i32 (setge GPR:$rs1, oimm16:$rs2)),
1227 (MVCV32 (CMPLTI32 GPR:$rs1, oimm16:$rs2))>;
1237 def : Pat<(select (i32 (setne GPR:$rs1, GPR:$rs2)), GPR:$rx, GPR:$false),
1238 (MOVT32 (CMPNE32 GPR:$rs1, GPR:$rs2), GPR:$rx, GPR:$false)>;
1239 def : Pat<(select (i32 (setne GPR:$rs1, uimm16:$rs2)), GPR:$rx, GPR:$false),
1240 (MOVT32 (CMPNEI32 GPR:$rs1, uimm16:$rs2), GPR:$rx, GPR:$false)>;
1241 def : Pat<(select (i32 (seteq GPR:$rs1, GPR:$rs2)), GPR:$rx, GPR:$false),
1242 (MOVF32 (CMPNE32 GPR:$rs1, GPR:$rs2), GPR:$rx, GPR:$false)>;
1243 def : Pat<(select (i32 (seteq GPR:$rs1, uimm16:$rs2)), GPR:$rx, GPR:$false),
1244 (MOVF32 (CMPNEI32 GPR:$rs1, uimm16:$rs2), GPR:$rx, GPR:$false)>;
1246 def : Pat<(select (i32 (setuge GPR:$rs1, GPR:$rs2)), GPR:$rx, GPR:$false),
1247 (MOVT32 (CMPHS32 GPR:$rs1, GPR:$rs2), GPR:$rx, GPR:$false)>;
1248 def : Pat<(select (i32 (setuge GPR:$rs1, oimm16:$rs2)), GPR:$rx, GPR:$false),
1249 (MOVT32 (CMPHSI32 GPR:$rs1, oimm16:$rs2), GPR:$rx, GPR:$false)>;
1250 def : Pat<(select (i32 (setule GPR:$rs1, GPR:$rs2)), GPR:$rx, GPR:$false),
1251 (MOVT32 (CMPHS32 GPR:$rs2, GPR:$rs1), GPR:$rx, GPR:$false)>;
1252 def : Pat<(select (i32 (setult GPR:$rs1, GPR:$rs2)), GPR:$rx, GPR:$false),
1253 (MOVF32 (CMPHS32 GPR:$rs1, GPR:$rs2), GPR:$rx, GPR:$false)>;
1254 def : Pat<(select (i32 (setult GPR:$rs1, oimm16:$rs2)), GPR:$rx, GPR:$false),
1255 (MOVF32 (CMPHSI32 GPR:$rs1, oimm16:$rs2), GPR:$rx, GPR:$false)>;
1256 def : Pat<(select (i32 (setugt GPR:$rs1, GPR:$rs2)), GPR:$rx, GPR:$false),
1257 (MOVF32 (CMPHS32 GPR:$rs2, GPR:$rs1), GPR:$rx, GPR:$false)>;
1259 def : Pat<(select (i32 (setlt GPR:$rs1, GPR:$rs2)), GPR:$rx, GPR:$false),
1260 (MOVT32 (CMPLT32 GPR:$rs1, GPR:$rs2), GPR:$rx, GPR:$false)>;
1261 def : Pat<(select (i32 (setlt GPR:$rs1, oimm16:$rs2)), GPR:$rx, GPR:$false),
1262 (MOVT32 (CMPLTI32 GPR:$rs1, oimm16:$rs2), GPR:$rx, GPR:$false)>;
1263 def : Pat<(select (i32 (setgt GPR:$rs1, GPR:$rs2)), GPR:$rx, GPR:$false),
1264 (MOVT32 (CMPLT32 GPR:$rs2, GPR:$rs1), GPR:$rx, GPR:$false)>;
1265 def : Pat<(select (i32 (setge GPR:$rs1, GPR:$rs2)), GPR:$rx, GPR:$false),
1266 (MOVF32 (CMPLT32 GPR:$rs1, GPR:$rs2), GPR:$rx, GPR:$false)>;
1267 def : Pat<(select (i32 (setge GPR:$rs1, oimm16:$rs2)), GPR:$rx, GPR:$false),
1268 (MOVF32 (CMPLTI32 GPR:$rs1, oimm16:$rs2), GPR:$rx, GPR:$false)>;
1269 def : Pat<(select (i32 (setle GPR:$rs1, GPR:$rs2)), GPR:$rx, GPR:$false),
1270 (MOVF32 (CMPLT32 GPR:$rs2, GPR:$rs1), GPR:$rx, GPR:$false)>;
1286 def : Pat<(rotl GPR:$rs1, GPR:$rs2),
1287 (ROTL32 GPR:$rs1, (ANDI32 GPR:$rs2, 0x1f))>;