Lines Matching full:args
617 static void tcg_out_qemu_ld (TCGContext *s, const TCGArg *args, int opc)
625 data_reg = *args++;
626 addr_reg = *args++;
627 mem_index = *args;
764 static void tcg_out_qemu_st (TCGContext *s, const TCGArg *args, int opc)
772 data_reg = *args++;
773 addr_reg = *args++;
774 mem_index = *args;
1200 static void tcg_out_op (TCGContext *s, TCGOpcode opc, const TCGArg *args,
1207 tcg_out_movi (s, TCG_TYPE_I64, TCG_REG_R3, args[0]);
1214 s->tb_jmp_offset[args[0]] = s->code_ptr - s->code_buf;
1220 s->tb_next_offset[args[0]] = s->code_ptr - s->code_buf;
1224 TCGLabel *l = &s->labels[args[0]];
1234 tcg_out_reloc (s, s->code_ptr - 4, R_PPC_REL24, args[0], 0);
1239 tcg_out_call (s, args[0], const_args[0]);
1243 tcg_out_b (s, 0, args[0]);
1246 args[0]) | CTR);
1251 tcg_out_movi (s, TCG_TYPE_I32, args[0], args[1]);
1254 tcg_out_movi (s, TCG_TYPE_I64, args[0], args[1]);
1258 tcg_out_ldst (s, args[0], args[1], args[2], LBZ, LBZX);
1262 tcg_out_ldst (s, args[0], args[1], args[2], LBZ, LBZX);
1263 tcg_out32 (s, EXTSB | RS (args[0]) | RA (args[0]));
1267 tcg_out_ldst (s, args[0], args[1], args[2], LHZ, LHZX);
1271 tcg_out_ldst (s, args[0], args[1], args[2], LHA, LHAX);
1275 tcg_out_ldst (s, args[0], args[1], args[2], LWZ, LWZX);
1278 tcg_out_ldsta (s, args[0], args[1], args[2], LWA, LWAX);
1281 tcg_out_ldsta (s, args[0], args[1], args[2], LD, LDX);
1285 tcg_out_ldst (s, args[0], args[1], args[2], STB, STBX);
1289 tcg_out_ldst (s, args[0], args[1], args[2], STH, STHX);
1293 tcg_out_ldst (s, args[0], args[1], args[2], STW, STWX);
1296 tcg_out_ldsta (s, args[0], args[1], args[2], STD, STDX);
1301 ppc_addi32 (s, args[0], args[1], args[2]);
1303 tcg_out32 (s, ADD | TAB (args[0], args[1], args[2]));
1307 ppc_addi32 (s, args[0], args[1], -args[2]);
1309 tcg_out32 (s, SUBF | TAB (args[0], args[2], args[1]));
1315 if ((args[2] & 0xffff) == args[2])
1316 tcg_out32 (s, ANDI | RS (args[1]) | RA (args[0]) | args[2]);
1317 else if ((args[2] & 0xffff0000) == args[2])
1318 tcg_out32 (s, ANDIS | RS (args[1]) | RA (args[0])
1319 | ((args[2] >> 16) & 0xffff));
1324 0, args[2]);
1325 tcg_out32 (s, AND | SAB (args[1], args[0], 0));
1329 tcg_out32 (s, AND | SAB (args[1], args[0], args[2]));
1334 if (args[2] & 0xffff) {
1335 tcg_out32 (s, ORI | RS (args[1]) | RA (args[0])
1336 | (args[2] & 0xffff));
1337 if (args[2] >> 16)
1338 tcg_out32 (s, ORIS | RS (args[0]) | RA (args[0])
1339 | ((args[2] >> 16) & 0xffff));
1342 tcg_out32 (s, ORIS | RS (args[1]) | RA (args[0])
1343 | ((args[2] >> 16) & 0xffff));
1347 tcg_out32 (s, OR | SAB (args[1], args[0], args[2]));
1352 if ((args[2] & 0xffff) == args[2])
1353 tcg_out32 (s, XORI | RS (args[1]) | RA (args[0])
1354 | (args[2] & 0xffff));
1355 else if ((args[2] & 0xffff0000) == args[2])
1356 tcg_out32 (s, XORIS | RS (args[1]) | RA (args[0])
1357 | ((args[2] >> 16) & 0xffff));
1362 0, args[2]);
1363 tcg_out32 (s, XOR | SAB (args[1], args[0], 0));
1367 tcg_out32 (s, XOR | SAB (args[1], args[0], args[2]));
1372 if (args[2] == (int16_t) args[2])
1373 tcg_out32 (s, MULLI | RT (args[0]) | RA (args[1])
1374 | (args[2] & 0xffff));
1376 tcg_out_movi (s, TCG_TYPE_I32, 0, args[2]);
1377 tcg_out32 (s, MULLW | TAB (args[0], args[1], 0));
1381 tcg_out32 (s, MULLW | TAB (args[0], args[1], args[2]));
1385 tcg_out32 (s, DIVW | TAB (args[0], args[1], args[2]));
1389 tcg_out32 (s, DIVWU | TAB (args[0], args[1], args[2]));
1393 tcg_out32 (s, DIVW | TAB (0, args[1], args[2]));
1394 tcg_out32 (s, MULLW | TAB (0, 0, args[2]));
1395 tcg_out32 (s, SUBF | TAB (args[0], 0, args[1]));
1399 tcg_out32 (s, DIVWU | TAB (0, args[1], args[2]));
1400 tcg_out32 (s, MULLW | TAB (0, 0, args[2]));
1401 tcg_out32 (s, SUBF | TAB (args[0], 0, args[1]));
1407 | RA (args[0])
1408 | RS (args[1])
1409 | SH (args[2])
1411 | ME (31 - args[2])
1416 tcg_out32 (s, SLW | SAB (args[1], args[0], args[2]));
1421 | RA (args[0])
1422 | RS (args[1])
1423 | SH (32 - args[2])
1424 | MB (args[2])
1430 tcg_out32 (s, SRW | SAB (args[1], args[0], args[2]));
1434 tcg_out32 (s, SRAWI | RS (args[1]) | RA (args[0]) | SH (args[2]));
1436 tcg_out32 (s, SRAW | SAB (args[1], args[0], args[2]));
1440 tcg_out_brcond (s, args[2], args[0], args[1], const_args[1], args[3], 0);
1444 tcg_out_brcond (s, args[2], args[0], args[1], const_args[1], args[3], 1);
1449 tcg_out32 (s, NEG | RT (args[0]) | RA (args[1]));
1454 ppc_addi64 (s, args[0], args[1], args[2]);
1456 tcg_out32 (s, ADD | TAB (args[0], args[1], args[2]));
1460 ppc_addi64 (s, args[0], args[1], -args[2]);
1462 tcg_out32 (s, SUBF | TAB (args[0], args[2], args[1]));
1467 tcg_out_rld (s, RLDICR, args[0], args[1], args[2], 63 - args[2]);
1469 tcg_out32 (s, SLD | SAB (args[1], args[0], args[2]));
1473 tcg_out_rld (s, RLDICL, args[0], args[1], 64 - args[2], args[2]);
1475 tcg_out32 (s, SRD | SAB (args[1], args[0], args[2]));
1479 int sh = SH (args[2] & 0x1f) | (((args[2] >> 5) & 1) << 1);
1480 tcg_out32 (s, SRADI | RA (args[0]) | RS (args[1]) | sh);
1483 tcg_out32 (s, SRAD | SAB (args[1], args[0], args[2]));
1487 tcg_out32 (s, MULLD | TAB (args[0], args[1], args[2]));
1490 tcg_out32 (s, DIVD | TAB (args[0], args[1], args[2]));
1493 tcg_out32 (s, DIVDU | TAB (args[0], args[1], args[2]));
1496 tcg_out32 (s, DIVD | TAB (0, args[1], args[2]));
1497 tcg_out32 (s, MULLD | TAB (0, 0, args[2]));
1498 tcg_out32 (s, SUBF | TAB (args[0], 0, args[1]));
1501 tcg_out32 (s, DIVDU | TAB (0, args[1], args[2]));
1502 tcg_out32 (s, MULLD | TAB (0, 0, args[2]));
1503 tcg_out32 (s, SUBF | TAB (args[0], 0, args[1]));
1507 tcg_out_qemu_ld (s, args, 0);
1510 tcg_out_qemu_ld (s, args, 0 | 4);
1513 tcg_out_qemu_ld (s, args, 1);
1516 tcg_out_qemu_ld (s, args, 1 | 4);
1520 tcg_out_qemu_ld (s, args, 2);
1523 tcg_out_qemu_ld (s, args, 2 | 4);
1526 tcg_out_qemu_ld (s, args, 3);
1529 tcg_out_qemu_st (s, args, 0);
1532 tcg_out_qemu_st (s, args, 1);
1535 tcg_out_qemu_st (s, args, 2);
1538 tcg_out_qemu_st (s, args, 3);
1553 tcg_out32 (s, c | RS (args[1]) | RA (args[0]));
1557 tcg_out_setcond (s, TCG_TYPE_I32, args[3], args[0], args[1], args[2],
1561 tcg_out_setcond (s, TCG_TYPE_I64, args[3], args[0], args[1], args[2],