Home | History | Annotate | Download | only in i386

Lines Matching full:args

796 static void tcg_out_brcond2(TCGContext *s, const TCGArg *args,
801 switch(args[4]) {
803 tcg_out_brcond32(s, TCG_COND_NE, args[0], args[2], const_args[2],
805 tcg_out_brcond32(s, TCG_COND_EQ, args[1], args[3], const_args[3],
806 args[5], small);
809 tcg_out_brcond32(s, TCG_COND_NE, args[0], args[2], const_args[2],
810 args[5], small);
811 tcg_out_brcond32(s, TCG_COND_NE, args[1], args[3], const_args[3],
812 args[5], small);
815 tcg_out_brcond32(s, TCG_COND_LT, args[1], args[3], const_args[3],
816 args[5], small);
818 tcg_out_brcond32(s, TCG_COND_LTU, args[0], args[2], const_args[2],
819 args[5], small);
822 tcg_out_brcond32(s, TCG_COND_LT, args[1], args[3], const_args[3],
823 args[5], small);
825 tcg_out_brcond32(s, TCG_COND_LEU, args[0], args[2], const_args[2],
826 args[5], small);
829 tcg_out_brcond32(s, TCG_COND_GT, args[1], args[3], const_args[3],
830 args[5], small);
832 tcg_out_brcond32(s, TCG_COND_GTU, args[0], args[2], const_args[2],
833 args[5], small);
836 tcg_out_brcond32(s, TCG_COND_GT, args[1], args[3], const_args[3],
837 args[5], small);
839 tcg_out_brcond32(s, TCG_COND_GEU, args[0], args[2], const_args[2],
840 args[5], small);
843 tcg_out_brcond32(s, TCG_COND_LTU, args[1], args[3], const_args[3],
844 args[5], small);
846 tcg_out_brcond32(s, TCG_COND_LTU, args[0], args[2], const_args[2],
847 args[5], small);
850 tcg_out_brcond32(s, TCG_COND_LTU, args[1], args[3], const_args[3],
851 args[5], small);
853 tcg_out_brcond32(s, TCG_COND_LEU, args[0], args[2], const_args[2],
854 args[5], small);
857 tcg_out_brcond32(s, TCG_COND_GTU, args[1], args[3], const_args[3],
858 args[5], small);
860 tcg_out_brcond32(s, TCG_COND_GTU, args[0], args[2], const_args[2],
861 args[5], small);
864 tcg_out_brcond32(s, TCG_COND_GTU, args[1], args[3], const_args[3],
865 args[5], small);
867 tcg_out_brcond32(s, TCG_COND_GEU, args[0], args[2], const_args[2],
868 args[5], small);
894 static void tcg_out_setcond2(TCGContext *s, const TCGArg *args,
900 memcpy(new_args, args+1, 5*sizeof(TCGArg));
902 if (args[0] == args[1] || args[0] == args[2]
903 || (!const_args[3] && args[0] == args[3])
904 || (!const_args[4] && args[0] == args[4])) {
913 tcg_out_movi(s, TCG_TYPE_I32, args[0], 0);
917 tcg_out_movi(s, TCG_TYPE_I32, args[0], 1);
924 tcg_out_movi(s, TCG_TYPE_I32, args[0], 0);
931 tgen_arithi(s, ARITH_ADD, args[0], 1, 0);
982 ADDRLO_IDX contains the index into ARGS of the low part of the
1003 const TCGArg *args,
1006 const int addrlo = args[addrlo_idx];
1044 tcg_out_modrm_offset(s, OPC_CMP_GvEv, args[addrlo_idx+1], r1, 4);
1140 static void tcg_out_qemu_ld(TCGContext *s, const TCGArg *args,
1150 data_reg = args[0];
1153 data_reg2 = args[1];
1158 mem_index = args[addrlo_idx + 1 + (TARGET_LONG_BITS > TCG_TARGET_REG_BITS)];
1161 tcg_out_tlb_load(s, addrlo_idx, mem_index, s_bits, args,
1186 args[addrlo_idx + 1]);
1234 int base = args[addrlo_idx];
1314 static void tcg_out_qemu_st(TCGContext *s, const TCGArg *args,
1325 data_reg = args[0];
1328 data_reg2 = args[1];
1333 mem_index = args[addrlo_idx + 1 + (TARGET_LONG_BITS > TCG_TARGET_REG_BITS)];
1336 tcg_out_tlb_load(s, addrlo_idx, mem_index, s_bits, args,
1374 tcg_out_mov(s, TCG_TYPE_I32, TCG_REG_EDX, args[addrlo_idx + 1]);
1380 tcg_out_mov(s, TCG_TYPE_I32, TCG_REG_EDX, args[addrlo_idx + 1]);
1411 int base = args[addrlo_idx];
1433 const TCGArg *args, const int *const_args)
1449 tcg_out_movi(s, TCG_TYPE_PTR, TCG_REG_EAX, args[0]);
1456 s->tb_jmp_offset[args[0]] = s->code_ptr - s->code_buf;
1461 (tcg_target_long)(s->tb_next + args[0]));
1463 s->tb_next_offset[args[0]] = s->code_ptr - s->code_buf;
1467 tcg_out_calli(s, args[0]);
1470 tcg_out_modrm(s, OPC_GRP5, EXT5_CALLN_Ev, args[0]);
1475 tcg_out_jmp(s, args[0]);
1478 tcg_out_modrm(s, OPC_GRP5, EXT5_JMPN_Ev, args[0]);
1482 tcg_out_jxx(s, JCC_JMP, args[0], 0);
1485 tcg_out_movi(s, TCG_TYPE_I32, args[0], args[1]);
1489 tcg_out_modrm_offset(s, OPC_MOVZBL, args[0], args[1], args[2]);
1492 tcg_out_modrm_offset(s, OPC_MOVSBL + rexw, args[0], args[1], args[2]);
1496 tcg_out_modrm_offset(s, OPC_MOVZWL, args[0], args[1], args[2]);
1499 tcg_out_modrm_offset(s, OPC_MOVSWL + rexw, args[0], args[1], args[2]);
1505 tcg_out_ld(s, TCG_TYPE_I32, args[0], args[1], args[2]);
1510 args[0], args[1], args[2]);
1514 args[0], args[1], args[2]);
1520 tcg_out_st(s, TCG_TYPE_I32, args[0], args[1], args[2]);
1525 if (args[0] != args[1]) {
1526 TCGArg a0 = args[0], a1 = args[1], a2 = args[2], c3 = 0;
1556 tgen_arithi(s, c + rexw, args[0], args[2], 0);
1558 tgen_arithr(s, c + rexw, args[0], args[2]);
1565 val = args[2];
1567 tcg_out_modrm(s, OPC_IMUL_GvEvIb + rexw, args[0], args[0]);
1570 tcg_out_modrm(s, OPC_IMUL_GvEvIz + rexw, args[0], args[0]);
1574 tcg_out_modrm(s, OPC_IMUL_GvEv + rexw, args[0], args[2]);
1579 tcg_out_modrm(s, OPC_GRP3_Ev + rexw, EXT3_IDIV, args[4]);
1582 args[4]);
1602 tcg_out_shifti(s, c + rexw, args[0], args[2]);
1604 tcg_out_modrm(s, OPC_SHIFT_cl + rexw, c, args[0]);
1609 tcg_out_brcond32(s, args[2], args[0], args[1], const_args[1],
1610 args[3], 0);
1613 tcg_out_setcond32(s, args[3], args[0], args[1],
1614 args[2], const_args[2]);
1618 tcg_out_rolw_8(s, args[0]);
1621 tcg_out_bswap32(s, args[0]);
1625 tcg_out_modrm(s, OPC_GRP3_Ev + rexw, EXT3_NEG, args[0]);
1628 tcg_out_modrm(s, OPC_GRP3_Ev + rexw, EXT3_NOT, args[0]);
1632 tcg_out_ext8s(s, args[0], args[1], rexw);
1635 tcg_out_ext16s(s, args[0], args[1], rexw);
1638 tcg_out_ext8u(s, args[0], args[1]);
1641 tcg_out_ext16u(s, args[0], args[1]);
1645 tcg_out_qemu_ld(s, args, 0);
1648 tcg_out_qemu_ld(s, args, 0 | 4);
1651 tcg_out_qemu_ld(s, args, 1);
1654 tcg_out_qemu_ld(s, args, 1 | 4);
1660 tcg_out_qemu_ld(s, args, 2);
1663 tcg_out_qemu_ld(s, args, 3);
1667 tcg_out_qemu_st(s, args, 0);
1670 tcg_out_qemu_st(s, args, 1);
1673 tcg_out_qemu_st(s, args, 2);
1676 tcg_out_qemu_st(s, args, 3);
1681 tcg_out_brcond2(s, args, const_args, 0);
1684 tcg_out_setcond2(s, args, const_args);
1687 tcg_out_modrm(s, OPC_GRP3_Ev, EXT3_MUL, args[3]);
1691 tgen_arithi(s, ARITH_ADD, args[0], args[4], 1);
1693 tgen_arithr(s, ARITH_ADD, args[0], args[4]);
1696 tgen_arithi(s, ARITH_ADC, args[1], args[5], 1);
1698 tgen_arithr(s, ARITH_ADC, args[1], args[5]);
1703 tgen_arithi(s, ARITH_SUB, args[0], args[4], 1);
1705 tgen_arithr(s, ARITH_SUB, args[0], args[4]);
1708 tgen_arithi(s, ARITH_SBB, args[1], args[5], 1);
1710 tgen_arithr(s, ARITH_SBB, args[1], args[5]);
1715 tcg_out_movi(s, TCG_TYPE_I64, args[0], args[1]);
1718 tcg_out_modrm_offset(s, OPC_MOVSLQ, args[0], args[1], args[2]);
1721 tcg_out_ld(s, TCG_TYPE_I64, args[0], args[1], args[2]);
1724 tcg_out_st(s, TCG_TYPE_I64, args[0], args[1], args[2]);
1727 tcg_out_qemu_ld(s, args, 2 | 4);
1731 tcg_out_brcond64(s, args[2], args[0], args[1], const_args[1],
1732 args[3], 0);
1735 tcg_out_setcond64(s, args[3], args[0], args[1],
1736 args[2], const_args[2]);
1740 tcg_out_bswap64(s, args[0]);
1743 tcg_out_ext32u(s, args[0], args[1]);
1746 tcg_out_ext32s(s, args[0], args[1]);