Home | History | Annotate | Download | only in i386

Lines Matching full:opc

351 static void tcg_out_opc(TCGContext *s, int opc, int r, int rm, int x)
355 if (opc & P_DATA16) {
357 assert((opc & P_REXW) == 0);
360 if (opc & P_ADDR32) {
365 rex |= (opc & P_REXW) >> 8; /* REX.W */
375 rex |= opc & (r >= 4 ? P_REXB_R : 0);
376 rex |= opc & (rm >= 4 ? P_REXB_RM : 0);
382 if (opc & P_EXT) {
385 tcg_out8(s, opc);
388 static void tcg_out_opc(TCGContext *s, int opc)
390 if (opc & P_DATA16) {
393 if (opc & P_EXT) {
396 tcg_out8(s, opc);
401 #define tcg_out_opc(s, opc, r, rm, x) (tcg_out_opc)(s, opc)
404 static void tcg_out_modrm(TCGContext *s, int opc, int r, int rm)
406 tcg_out_opc(s, opc, r, rm, 0);
415 static void tcg_out_modrm_sib_offset(TCGContext *s, int opc, int r, int rm,
428 tcg_out_opc(s, opc, r, 0, 0);
438 tcg_out_opc(s, opc, r, 0, 0);
449 tcg_out_opc(s, opc, r, 0, 0);
472 tcg_out_opc(s, opc, r, rm, 0);
486 tcg_out_opc(s, opc, r, rm, index);
499 static inline void tcg_out_modrm_offset(TCGContext *s, int opc, int r,
502 tcg_out_modrm_sib_offset(s, opc, r, rm, -1, 0, offset);
518 int opc = OPC_MOVL_GvEv + (type == TCG_TYPE_I64 ? P_REXW : 0);
519 tcg_out_modrm(s, opc, ret, arg);
568 int opc = OPC_MOVL_GvEv + (type == TCG_TYPE_I64 ? P_REXW : 0);
569 tcg_out_modrm_offset(s, opc, ret, arg1, arg2);
575 int opc = OPC_MOVL_EvGv + (type == TCG_TYPE_I64 ? P_REXW : 0);
576 tcg_out_modrm_offset(s, opc, arg, arg1, arg2);
716 static void tcg_out_jxx(TCGContext *s, int opc, int label_index, int small)
725 if (opc == -1) {
728 tcg_out8(s, OPC_JCC_short + opc);
735 if (opc == -1) {
739 tcg_out_opc(s, OPC_JCC_long + opc, 0, 0, 0);
744 if (opc == -1) {
747 tcg_out8(s, OPC_JCC_short + opc);
752 if (opc == -1) {
755 tcg_out_opc(s, OPC_JCC_long + opc, 0, 0, 0);
1141 int opc)
1152 if (TCG_TARGET_REG_BITS == 32 && opc == 3) {
1159 s_bits = opc & 3;
1166 tcg_target_call_iarg_regs[0], 0, opc);
1192 switch(opc) {
1250 tcg_out_qemu_ld_direct(s, data_reg, data_reg2, base, offset, opc);
1315 int opc)
1327 if (TCG_TARGET_REG_BITS == 32 && opc == 3) {
1334 s_bits = opc;
1341 tcg_target_call_iarg_regs[0], 0, opc);
1358 tcg_out_mov(s, (opc == 3 ? TCG_TYPE_I64 : TCG_TYPE_I32),
1364 if (opc == 3) {
1373 if (opc == 3) {
1381 switch(opc) {
1427 tcg_out_qemu_st_direct(s, data_reg, data_reg2, base, offset, opc);
1432 static inline void tcg_out_op(TCGContext *s, TCGOpcode opc,
1447 switch(opc) {