Lines Matching defs:arg2
46 static inline void tcg_gen_op2_i32(TCGOpcode opc, TCGv_i32 arg1, TCGv_i32 arg2)
50 *gen_opparam_ptr++ = GET_TCGV_I32(arg2);
53 static inline void tcg_gen_op2_i64(TCGOpcode opc, TCGv_i64 arg1, TCGv_i64 arg2)
57 *gen_opparam_ptr++ = GET_TCGV_I64(arg2);
60 static inline void tcg_gen_op2i_i32(TCGOpcode opc, TCGv_i32 arg1, TCGArg arg2)
64 *gen_opparam_ptr++ = arg2;
67 static inline void tcg_gen_op2i_i64(TCGOpcode opc, TCGv_i64 arg1, TCGArg arg2)
71 *gen_opparam_ptr++ = arg2;
74 static inline void tcg_gen_op2ii(TCGOpcode opc, TCGArg arg1, TCGArg arg2)
78 *gen_opparam_ptr++ = arg2;
81 static inline void tcg_gen_op3_i32(TCGOpcode opc, TCGv_i32 arg1, TCGv_i32 arg2,
86 *gen_opparam_ptr++ = GET_TCGV_I32(arg2);
90 static inline void tcg_gen_op3_i64(TCGOpcode opc, TCGv_i64 arg1, TCGv_i64 arg2,
95 *gen_opparam_ptr++ = GET_TCGV_I64(arg2);
100 TCGv_i32 arg2, TCGArg arg3)
104 *gen_opparam_ptr++ = GET_TCGV_I32(arg2);
109 TCGv_i64 arg2, TCGArg arg3)
113 *gen_opparam_ptr++ = GET_TCGV_I64(arg2);
153 static inline void tcg_gen_op4_i32(TCGOpcode opc, TCGv_i32 arg1, TCGv_i32 arg2,
158 *gen_opparam_ptr++ = GET_TCGV_I32(arg2);
163 static inline void tcg_gen_op4_i64(TCGOpcode opc, TCGv_i64 arg1, TCGv_i64 arg2,
168 *gen_opparam_ptr++ = GET_TCGV_I64(arg2);
173 static inline void tcg_gen_op4i_i32(TCGOpcode opc, TCGv_i32 arg1, TCGv_i32 arg2,
178 *gen_opparam_ptr++ = GET_TCGV_I32(arg2);
183 static inline void tcg_gen_op4i_i64(TCGOpcode opc, TCGv_i64 arg1, TCGv_i64 arg2,
188 *gen_opparam_ptr++ = GET_TCGV_I64(arg2);
193 static inline void tcg_gen_op4ii_i32(TCGOpcode opc, TCGv_i32 arg1, TCGv_i32 arg2,
198 *gen_opparam_ptr++ = GET_TCGV_I32(arg2);
203 static inline void tcg_gen_op4ii_i64(TCGOpcode opc, TCGv_i64 arg1, TCGv_i64 arg2,
208 *gen_opparam_ptr++ = GET_TCGV_I64(arg2);
213 static inline void tcg_gen_op5_i32(TCGOpcode opc, TCGv_i32 arg1, TCGv_i32 arg2,
218 *gen_opparam_ptr++ = GET_TCGV_I32(arg2);
224 static inline void tcg_gen_op5_i64(TCGOpcode opc, TCGv_i64 arg1, TCGv_i64 arg2,
229 *gen_opparam_ptr++ = GET_TCGV_I64(arg2);
235 static inline void tcg_gen_op5i_i32(TCGOpcode opc, TCGv_i32 arg1, TCGv_i32 arg2,
240 *gen_opparam_ptr++ = GET_TCGV_I32(arg2);
246 static inline void tcg_gen_op5i_i64(TCGOpcode opc, TCGv_i64 arg1, TCGv_i64 arg2,
251 *gen_opparam_ptr++ = GET_TCGV_I64(arg2);
257 static inline void tcg_gen_op6_i32(TCGOpcode opc, TCGv_i32 arg1, TCGv_i32 arg2,
263 *gen_opparam_ptr++ = GET_TCGV_I32(arg2);
270 static inline void tcg_gen_op6_i64(TCGOpcode opc, TCGv_i64 arg1, TCGv_i64 arg2,
276 *gen_opparam_ptr++ = GET_TCGV_I64(arg2);
283 static inline void tcg_gen_op6i_i32(TCGOpcode opc, TCGv_i32 arg1, TCGv_i32 arg2,
289 *gen_opparam_ptr++ = GET_TCGV_I32(arg2);
296 static inline void tcg_gen_op6i_i64(TCGOpcode opc, TCGv_i64 arg1, TCGv_i64 arg2,
302 *gen_opparam_ptr++ = GET_TCGV_I64(arg2);
310 TCGv_i32 arg2, TCGv_i32 arg3,
315 *gen_opparam_ptr++ = GET_TCGV_I32(arg2);
323 TCGv_i64 arg2, TCGv_i64 arg3,
328 *gen_opparam_ptr++ = GET_TCGV_I64(arg2);
407 static inline void tcg_gen_ld8u_i32(TCGv_i32 ret, TCGv_ptr arg2, tcg_target_long offset)
409 tcg_gen_ldst_op_i32(INDEX_op_ld8u_i32, ret, arg2, offset);
412 static inline void tcg_gen_ld8s_i32(TCGv_i32 ret, TCGv_ptr arg2, tcg_target_long offset)
414 tcg_gen_ldst_op_i32(INDEX_op_ld8s_i32, ret, arg2, offset);
417 static inline void tcg_gen_ld16u_i32(TCGv_i32 ret, TCGv_ptr arg2, tcg_target_long offset)
419 tcg_gen_ldst_op_i32(INDEX_op_ld16u_i32, ret, arg2, offset);
422 static inline void tcg_gen_ld16s_i32(TCGv_i32 ret, TCGv_ptr arg2, tcg_target_long offset)
424 tcg_gen_ldst_op_i32(INDEX_op_ld16s_i32, ret, arg2, offset);
427 static inline void tcg_gen_ld_i32(TCGv_i32 ret, TCGv_ptr arg2, tcg_target_long offset)
429 tcg_gen_ldst_op_i32(INDEX_op_ld_i32, ret, arg2, offset);
432 static inline void tcg_gen_st8_i32(TCGv_i32 arg1, TCGv_ptr arg2, tcg_target_long offset)
434 tcg_gen_ldst_op_i32(INDEX_op_st8_i32, arg1, arg2, offset);
437 static inline void tcg_gen_st16_i32(TCGv_i32 arg1, TCGv_ptr arg2, tcg_target_long offset)
439 tcg_gen_ldst_op_i32(INDEX_op_st16_i32, arg1, arg2, offset);
442 static inline void tcg_gen_st_i32(TCGv_i32 arg1, TCGv_ptr arg2, tcg_target_long offset)
444 tcg_gen_ldst_op_i32(INDEX_op_st_i32, arg1, arg2, offset);
447 static inline void tcg_gen_add_i32(TCGv_i32 ret, TCGv_i32 arg1, TCGv_i32 arg2)
449 tcg_gen_op3_i32(INDEX_op_add_i32, ret, arg1, arg2);
452 static inline void tcg_gen_addi_i32(TCGv_i32 ret, TCGv_i32 arg1, int32_t arg2)
455 if (arg2 == 0) {
458 TCGv_i32 t0 = tcg_const_i32(arg2);
464 static inline void tcg_gen_sub_i32(TCGv_i32 ret, TCGv_i32 arg1, TCGv_i32 arg2)
466 tcg_gen_op3_i32(INDEX_op_sub_i32, ret, arg1, arg2);
469 static inline void tcg_gen_subfi_i32(TCGv_i32 ret, int32_t arg1, TCGv_i32 arg2)
472 tcg_gen_sub_i32(ret, t0, arg2);
476 static inline void tcg_gen_subi_i32(TCGv_i32 ret, TCGv_i32 arg1, int32_t arg2)
479 if (arg2 == 0) {
482 TCGv_i32 t0 = tcg_const_i32(arg2);
488 static inline void tcg_gen_and_i32(TCGv_i32 ret, TCGv_i32 arg1, TCGv_i32 arg2)
490 if (TCGV_EQUAL_I32(arg1, arg2)) {
493 tcg_gen_op3_i32(INDEX_op_and_i32, ret, arg1, arg2);
497 static inline void tcg_gen_andi_i32(TCGv_i32 ret, TCGv_i32 arg1, int32_t arg2)
500 if (arg2 == 0) {
502 } else if (arg2 == 0xffffffff) {
505 TCGv_i32 t0 = tcg_const_i32(arg2);
511 static inline void tcg_gen_or_i32(TCGv_i32 ret, TCGv_i32 arg1, TCGv_i32 arg2)
513 if (TCGV_EQUAL_I32(arg1, arg2)) {
516 tcg_gen_op3_i32(INDEX_op_or_i32, ret, arg1, arg2);
520 static inline void tcg_gen_ori_i32(TCGv_i32 ret, TCGv_i32 arg1, int32_t arg2)
523 if (arg2 == 0xffffffff) {
525 } else if (arg2 == 0) {
528 TCGv_i32 t0 = tcg_const_i32(arg2);
534 static inline void tcg_gen_xor_i32(TCGv_i32 ret, TCGv_i32 arg1, TCGv_i32 arg2)
536 if (TCGV_EQUAL_I32(arg1, arg2)) {
539 tcg_gen_op3_i32(INDEX_op_xor_i32, ret, arg1, arg2);
543 static inline void tcg_gen_xori_i32(TCGv_i32 ret, TCGv_i32 arg1, int32_t arg2)
546 if (arg2 == 0) {
549 TCGv_i32 t0 = tcg_const_i32(arg2);
555 static inline void tcg_gen_shl_i32(TCGv_i32 ret, TCGv_i32 arg1, TCGv_i32 arg2)
557 tcg_gen_op3_i32(INDEX_op_shl_i32, ret, arg1, arg2);
560 static inline void tcg_gen_shli_i32(TCGv_i32 ret, TCGv_i32 arg1, int32_t arg2)
562 if (arg2 == 0) {
565 TCGv_i32 t0 = tcg_const_i32(arg2);
571 static inline void tcg_gen_shr_i32(TCGv_i32 ret, TCGv_i32 arg1, TCGv_i32 arg2)
573 tcg_gen_op3_i32(INDEX_op_shr_i32, ret, arg1, arg2);
576 static inline void tcg_gen_shri_i32(TCGv_i32 ret, TCGv_i32 arg1, int32_t arg2)
578 if (arg2 == 0) {
581 TCGv_i32 t0 = tcg_const_i32(arg2);
587 static inline void tcg_gen_sar_i32(TCGv_i32 ret, TCGv_i32 arg1, TCGv_i32 arg2)
589 tcg_gen_op3_i32(INDEX_op_sar_i32, ret, arg1, arg2);
592 static inline void tcg_gen_sari_i32(TCGv_i32 ret, TCGv_i32 arg1, int32_t arg2)
594 if (arg2 == 0) {
597 TCGv_i32 t0 = tcg_const_i32(arg2);
604 TCGv_i32 arg2, int label_index)
606 tcg_gen_op4ii_i32(INDEX_op_brcond_i32, arg1, arg2, cond, label_index);
610 int32_t arg2, int label_index)
612 TCGv_i32 t0 = tcg_const_i32(arg2);
618 TCGv_i32 arg1, TCGv_i32 arg2)
620 tcg_gen_op4i_i32(INDEX_op_setcond_i32, ret, arg1, arg2, cond);
624 TCGv_i32 arg1, int32_t arg2)
626 TCGv_i32 t0 = tcg_const_i32(arg2);
631 static inline void tcg_gen_mul_i32(TCGv_i32 ret, TCGv_i32 arg1, TCGv_i32 arg2)
633 tcg_gen_op3_i32(INDEX_op_mul_i32, ret, arg1, arg2);
636 static inline void tcg_gen_muli_i32(TCGv_i32 ret, TCGv_i32 arg1, int32_t arg2)
638 TCGv_i32 t0 = tcg_const_i32(arg2);
644 static inline void tcg_gen_div_i32(TCGv_i32 ret, TCGv_i32 arg1, TCGv_i32 arg2)
646 tcg_gen_op3_i32(INDEX_op_div_i32, ret, arg1, arg2);
649 static inline void tcg_gen_rem_i32(TCGv_i32 ret, TCGv_i32 arg1, TCGv_i32 arg2)
651 tcg_gen_op3_i32(INDEX_op_rem_i32, ret, arg1, arg2);
654 static inline void tcg_gen_divu_i32(TCGv_i32 ret, TCGv_i32 arg1, TCGv_i32 arg2)
656 tcg_gen_op3_i32(INDEX_op_divu_i32, ret, arg1, arg2);
659 static inline void tcg_gen_remu_i32(TCGv_i32 ret, TCGv_i32 arg1, TCGv_i32 arg2)
661 tcg_gen_op3_i32(INDEX_op_remu_i32, ret, arg1, arg2);
664 static inline void tcg_gen_div_i32(TCGv_i32 ret, TCGv_i32 arg1, TCGv_i32 arg2)
669 tcg_gen_op5_i32(INDEX_op_div2_i32, ret, t0, arg1, t0, arg2);
673 static inline void tcg_gen_rem_i32(TCGv_i32 ret, TCGv_i32 arg1, TCGv_i32 arg2)
678 tcg_gen_op5_i32(INDEX_op_div2_i32, t0, ret, arg1, t0, arg2);
682 static inline void tcg_gen_divu_i32(TCGv_i32 ret, TCGv_i32 arg1, TCGv_i32 arg2)
687 tcg_gen_op5_i32(INDEX_op_divu2_i32, ret, t0, arg1, t0, arg2);
691 static inline void tcg_gen_remu_i32(TCGv_i32 ret, TCGv_i32 arg1, TCGv_i32 arg2)
696 tcg_gen_op5_i32(INDEX_op_divu2_i32, t0, ret, arg1, t0, arg2);
700 static inline void tcg_gen_div_i32(TCGv_i32 ret, TCGv_i32 arg1, TCGv_i32 arg2)
708 tcg_gen_helper32(tcg_helper_div_i32, sizemask, ret, arg1, arg2);
711 static inline void tcg_gen_rem_i32(TCGv_i32 ret, TCGv_i32 arg1, TCGv_i32 arg2)
719 tcg_gen_helper32(tcg_helper_rem_i32, sizemask, ret, arg1, arg2);
722 static inline void tcg_gen_divu_i32(TCGv_i32 ret, TCGv_i32 arg1, TCGv_i32 arg2)
730 tcg_gen_helper32(tcg_helper_divu_i32, ret, arg1, arg2, 0);
733 static inline void tcg_gen_remu_i32(TCGv_i32 ret, TCGv_i32 arg1, TCGv_i32 arg2)
741 tcg_gen_helper32(tcg_helper_remu_i32, ret, arg1, arg2, 0);
761 static inline void tcg_gen_ld8u_i64(TCGv_i64 ret, TCGv_ptr arg2,
764 tcg_gen_ld8u_i32(TCGV_LOW(ret), arg2, offset);
768 static inline void tcg_gen_ld8s_i64(TCGv_i64 ret, TCGv_ptr arg2,
771 tcg_gen_ld8s_i32(TCGV_LOW(ret), arg2, offset);
775 static inline void tcg_gen_ld16u_i64(TCGv_i64 ret, TCGv_ptr arg2,
778 tcg_gen_ld16u_i32(TCGV_LOW(ret), arg2, offset);
782 static inline void tcg_gen_ld16s_i64(TCGv_i64 ret, TCGv_ptr arg2,
785 tcg_gen_ld16s_i32(TCGV_LOW(ret), arg2, offset);
789 static inline void tcg_gen_ld32u_i64(TCGv_i64 ret, TCGv_ptr arg2,
792 tcg_gen_ld_i32(TCGV_LOW(ret), arg2, offset);
796 static inline void tcg_gen_ld32s_i64(TCGv_i64 ret, TCGv_ptr arg2,
799 tcg_gen_ld_i32(TCGV_LOW(ret), arg2, offset);
803 static inline void tcg_gen_ld_i64(TCGv_i64 ret, TCGv_ptr arg2,
806 /* since arg2 and ret have different types, they cannot be the
809 tcg_gen_ld_i32(TCGV_HIGH(ret), arg2, offset);
810 tcg_gen_ld_i32(TCGV_LOW(ret), arg2, offset + 4);
812 tcg_gen_ld_i32(TCGV_LOW(ret), arg2, offset);
813 tcg_gen_ld_i32(TCGV_HIGH(ret), arg2, offset + 4);
817 static inline void tcg_gen_st8_i64(TCGv_i64 arg1, TCGv_ptr arg2,
820 tcg_gen_st8_i32(TCGV_LOW(arg1), arg2, offset);
823 static inline void tcg_gen_st16_i64(TCGv_i64 arg1, TCGv_ptr arg2,
826 tcg_gen_st16_i32(TCGV_LOW(arg1), arg2, offset);
829 static inline void tcg_gen_st32_i64(TCGv_i64 arg1, TCGv_ptr arg2,
832 tcg_gen_st_i32(TCGV_LOW(arg1), arg2, offset);
835 static inline void tcg_gen_st_i64(TCGv_i64 arg1, TCGv_ptr arg2,
839 tcg_gen_st_i32(TCGV_HIGH(arg1), arg2, offset);
840 tcg_gen_st_i32(TCGV_LOW(arg1), arg2, offset + 4);
842 tcg_gen_st_i32(TCGV_LOW(arg1), arg2, offset);
843 tcg_gen_st_i32(TCGV_HIGH(arg1), arg2, offset + 4);
847 static inline void tcg_gen_add_i64(TCGv_i64 ret, TCGv_i64 arg1, TCGv_i64 arg2)
850 TCGV_LOW(arg1), TCGV_HIGH(arg1), TCGV_LOW(arg2),
851 TCGV_HIGH(arg2));
854 static inline void tcg_gen_sub_i64(TCGv_i64 ret, TCGv_i64 arg1, TCGv_i64 arg2)
857 TCGV_LOW(arg1), TCGV_HIGH(arg1), TCGV_LOW(arg2),
858 TCGV_HIGH(arg2));
861 static inline void tcg_gen_and_i64(TCGv_i64 ret, TCGv_i64 arg1, TCGv_i64 arg2)
863 tcg_gen_and_i32(TCGV_LOW(ret), TCGV_LOW(arg1), TCGV_LOW(arg2));
864 tcg_gen_and_i32(TCGV_HIGH(ret), TCGV_HIGH(arg1), TCGV_HIGH(arg2));
867 static inline void tcg_gen_andi_i64(TCGv_i64 ret, TCGv_i64 arg1, int64_t arg2)
869 tcg_gen_andi_i32(TCGV_LOW(ret), TCGV_LOW(arg1), arg2);
870 tcg_gen_andi_i32(TCGV_HIGH(ret), TCGV_HIGH(arg1), arg2 >> 32);
873 static inline void tcg_gen_or_i64(TCGv_i64 ret, TCGv_i64 arg1, TCGv_i64 arg2)
875 tcg_gen_or_i32(TCGV_LOW(ret), TCGV_LOW(arg1), TCGV_LOW(arg2));
876 tcg_gen_or_i32(TCGV_HIGH(ret), TCGV_HIGH(arg1), TCGV_HIGH(arg2));
879 static inline void tcg_gen_ori_i64(TCGv_i64 ret, TCGv_i64 arg1, int64_t arg2)
881 tcg_gen_ori_i32(TCGV_LOW(ret), TCGV_LOW(arg1), arg2);
882 tcg_gen_ori_i32(TCGV_HIGH(ret), TCGV_HIGH(arg1), arg2 >> 32);
885 static inline void tcg_gen_xor_i64(TCGv_i64 ret, TCGv_i64 arg1, TCGv_i64 arg2)
887 tcg_gen_xor_i32(TCGV_LOW(ret), TCGV_LOW(arg1), TCGV_LOW(arg2));
888 tcg_gen_xor_i32(TCGV_HIGH(ret), TCGV_HIGH(arg1), TCGV_HIGH(arg2));
891 static inline void tcg_gen_xori_i64(TCGv_i64 ret, TCGv_i64 arg1, int64_t arg2)
893 tcg_gen_xori_i32(TCGV_LOW(ret), TCGV_LOW(arg1), arg2);
894 tcg_gen_xori_i32(TCGV_HIGH(ret), TCGV_HIGH(arg1), arg2 >> 32);
899 static inline void tcg_gen_shl_i64(TCGv_i64 ret, TCGv_i64 arg1, TCGv_i64 arg2)
907 tcg_gen_helper64(tcg_helper_shl_i64, sizemask, ret, arg1, arg2);
910 static inline void tcg_gen_shli_i64(TCGv_i64 ret, TCGv_i64 arg1, int64_t arg2)
912 tcg_gen_shifti_i64(ret, arg1, arg2, 0, 0);
915 static inline void tcg_gen_shr_i64(TCGv_i64 ret, TCGv_i64 arg1, TCGv_i64 arg2)
923 tcg_gen_helper64(tcg_helper_shr_i64, sizemask, ret, arg1, arg2);
926 static inline void tcg_gen_shri_i64(TCGv_i64 ret, TCGv_i64 arg1, int64_t arg2)
928 tcg_gen_shifti_i64(ret, arg1, arg2, 1, 0);
931 static inline void tcg_gen_sar_i64(TCGv_i64 ret, TCGv_i64 arg1, TCGv_i64 arg2)
939 tcg_gen_helper64(tcg_helper_sar_i64, sizemask, ret, arg1, arg2);
942 static inline void tcg_gen_sari_i64(TCGv_i64 ret, TCGv_i64 arg1, int64_t arg2)
944 tcg_gen_shifti_i64(ret, arg1, arg2, 1, 1);
948 TCGv_i64 arg2, int label_index)
951 TCGV_LOW(arg1), TCGV_HIGH(arg1), TCGV_LOW(arg2),
952 TCGV_HIGH(arg2), cond, label_index);
956 TCGv_i64 arg1, TCGv_i64 arg2)
960 TCGV_LOW(arg2), TCGV_HIGH(arg2), cond);
964 static inline void tcg_gen_mul_i64(TCGv_i64 ret, TCGv_i64 arg1, TCGv_i64 arg2)
973 TCGV_LOW(arg1), TCGV_LOW(arg2));
975 tcg_gen_mul_i32(t1, TCGV_LOW(arg1), TCGV_HIGH(arg2));
977 tcg_gen_mul_i32(t1, TCGV_HIGH(arg1), TCGV_LOW(arg2));
985 static inline void tcg_gen_div_i64(TCGv_i64 ret, TCGv_i64 arg1, TCGv_i64 arg2)
993 tcg_gen_helper64(tcg_helper_div_i64, sizemask, ret, arg1, arg2);
996 static inline void tcg_gen_rem_i64(TCGv_i64 ret, TCGv_i64 arg1, TCGv_i64 arg2)
1004 tcg_gen_helper64(tcg_helper_rem_i64, sizemask, ret, arg1, arg2);
1007 static inline void tcg_gen_divu_i64(TCGv_i64 ret, TCGv_i64 arg1, TCGv_i64 arg2)
1015 tcg_gen_helper64(tcg_helper_divu_i64, sizemask, ret, arg1, arg2);
1018 static inline void tcg_gen_remu_i64(TCGv_i64 ret, TCGv_i64 arg1, TCGv_i64 arg2)
1026 tcg_gen_helper64(tcg_helper_remu_i64, sizemask, ret, arg1, arg2);
1042 static inline void tcg_gen_ld8u_i64(TCGv_i64 ret, TCGv_i64 arg2,
1045 tcg_gen_ldst_op_i64(INDEX_op_ld8u_i64, ret, arg2, offset);
1048 static inline void tcg_gen_ld8s_i64(TCGv_i64 ret, TCGv_i64 arg2,
1051 tcg_gen_ldst_op_i64(INDEX_op_ld8s_i64, ret, arg2, offset);
1054 static inline void tcg_gen_ld16u_i64(TCGv_i64 ret, TCGv_i64 arg2,
1057 tcg_gen_ldst_op_i64(INDEX_op_ld16u_i64, ret, arg2, offset);
1060 static inline void tcg_gen_ld16s_i64(TCGv_i64 ret, TCGv_i64 arg2,
1063 tcg_gen_ldst_op_i64(INDEX_op_ld16s_i64, ret, arg2, offset);
1066 static inline void tcg_gen_ld32u_i64(TCGv_i64 ret, TCGv_i64 arg2,
1069 tcg_gen_ldst_op_i64(INDEX_op_ld32u_i64, ret, arg2, offset);
1072 static inline void tcg_gen_ld32s_i64(TCGv_i64 ret, TCGv_i64 arg2,
1075 tcg_gen_ldst_op_i64(INDEX_op_ld32s_i64, ret, arg2, offset);
1078 static inline void tcg_gen_ld_i64(TCGv_i64 ret, TCGv_i64 arg2, tcg_target_long offset)
1080 tcg_gen_ldst_op_i64(INDEX_op_ld_i64, ret, arg2, offset);
1083 static inline void tcg_gen_st8_i64(TCGv_i64 arg1, TCGv_i64 arg2,
1086 tcg_gen_ldst_op_i64(INDEX_op_st8_i64, arg1, arg2, offset);
1089 static inline void tcg_gen_st16_i64(TCGv_i64 arg1, TCGv_i64 arg2,
1092 tcg_gen_ldst_op_i64(INDEX_op_st16_i64, arg1, arg2, offset);
1095 static inline void tcg_gen_st32_i64(TCGv_i64 arg1, TCGv_i64 arg2,
1098 tcg_gen_ldst_op_i64(INDEX_op_st32_i64, arg1, arg2, offset);
1101 static inline void tcg_gen_st_i64(TCGv_i64 arg1, TCGv_i64 arg2, tcg_target_long offset)
1103 tcg_gen_ldst_op_i64(INDEX_op_st_i64, arg1, arg2, offset);
1106 static inline void tcg_gen_add_i64(TCGv_i64 ret, TCGv_i64 arg1, TCGv_i64 arg2)
1108 tcg_gen_op3_i64(INDEX_op_add_i64, ret, arg1, arg2);
1111 static inline void tcg_gen_sub_i64(TCGv_i64 ret, TCGv_i64 arg1, TCGv_i64 arg2)
1113 tcg_gen_op3_i64(INDEX_op_sub_i64, ret, arg1, arg2);
1116 static inline void tcg_gen_and_i64(TCGv_i64 ret, TCGv_i64 arg1, TCGv_i64 arg2)
1118 if (TCGV_EQUAL_I64(arg1, arg2)) {
1121 tcg_gen_op3_i64(INDEX_op_and_i64, ret, arg1, arg2);
1125 static inline void tcg_gen_andi_i64(TCGv_i64 ret, TCGv_i64 arg1, int64_t arg2)
1127 TCGv_i64 t0 = tcg_const_i64(arg2);
1132 static inline void tcg_gen_or_i64(TCGv_i64 ret, TCGv_i64 arg1, TCGv_i64 arg2)
1134 if (TCGV_EQUAL_I64(arg1, arg2)) {
1137 tcg_gen_op3_i64(INDEX_op_or_i64, ret, arg1, arg2);
1141 static inline void tcg_gen_ori_i64(TCGv_i64 ret, TCGv_i64 arg1, int64_t arg2)
1143 TCGv_i64 t0 = tcg_const_i64(arg2);
1148 static inline void tcg_gen_xor_i64(TCGv_i64 ret, TCGv_i64 arg1, TCGv_i64 arg2)
1150 if (TCGV_EQUAL_I64(arg1, arg2)) {
1153 tcg_gen_op3_i64(INDEX_op_xor_i64, ret, arg1, arg2);
1157 static inline void tcg_gen_xori_i64(TCGv_i64 ret, TCGv_i64 arg1, int64_t arg2)
1159 TCGv_i64 t0 = tcg_const_i64(arg2);
1164 static inline void tcg_gen_shl_i64(TCGv_i64 ret, TCGv_i64 arg1, TCGv_i64 arg2)
1166 tcg_gen_op3_i64(INDEX_op_shl_i64, ret, arg1, arg2);
1169 static inline void tcg_gen_shli_i64(TCGv_i64 ret, TCGv_i64 arg1, int64_t arg2)
1171 if (arg2 == 0) {
1174 TCGv_i64 t0 = tcg_const_i64(arg2);
1180 static inline void tcg_gen_shr_i64(TCGv_i64 ret, TCGv_i64 arg1, TCGv_i64 arg2)
1182 tcg_gen_op3_i64(INDEX_op_shr_i64, ret, arg1, arg2);
1185 static inline void tcg_gen_shri_i64(TCGv_i64 ret, TCGv_i64 arg1, int64_t arg2)
1187 if (arg2 == 0) {
1190 TCGv_i64 t0 = tcg_const_i64(arg2);
1196 static inline void tcg_gen_sar_i64(TCGv_i64 ret, TCGv_i64 arg1, TCGv_i64 arg2)
1198 tcg_gen_op3_i64(INDEX_op_sar_i64, ret, arg1, arg2);
1201 static inline void tcg_gen_sari_i64(TCGv_i64 ret, TCGv_i64 arg1, int64_t arg2)
1203 if (arg2 == 0) {
1206 TCGv_i64 t0 = tcg_const_i64(arg2);
1213 TCGv_i64 arg2, int label_index)
1215 tcg_gen_op4ii_i64(INDEX_op_brcond_i64, arg1, arg2, cond, label_index);
1219 TCGv_i64 arg1, TCGv_i64 arg2)
1221 tcg_gen_op4i_i64(INDEX_op_setcond_i64, ret, arg1, arg2, cond);
1224 static inline void tcg_gen_mul_i64(TCGv_i64 ret, TCGv_i64 arg1, TCGv_i64 arg2)
1226 tcg_gen_op3_i64(INDEX_op_mul_i64, ret, arg1, arg2);
1230 static inline void tcg_gen_div_i64(TCGv_i64 ret, TCGv_i64 arg1, TCGv_i64 arg2)
1232 tcg_gen_op3_i64(INDEX_op_div_i64, ret, arg1, arg2);
1235 static inline void tcg_gen_rem_i64(TCGv_i64 ret, TCGv_i64 arg1, TCGv_i64 arg2)
1237 tcg_gen_op3_i64(INDEX_op_rem_i64, ret, arg1, arg2);
1240 static inline void tcg_gen_divu_i64(TCGv_i64 ret, TCGv_i64 arg1, TCGv_i64 arg2)
1242 tcg_gen_op3_i64(INDEX_op_divu_i64, ret, arg1, arg2);
1245 static inline void tcg_gen_remu_i64(TCGv_i64 ret, TCGv_i64 arg1, TCGv_i64 arg2)
1247 tcg_gen_op3_i64(INDEX_op_remu_i64, ret, arg1, arg2);
1250 static inline void tcg_gen_div_i64(TCGv_i64 ret, TCGv_i64 arg1, TCGv_i64 arg2)
1255 tcg_gen_op5_i64(INDEX_op_div2_i64, ret, t0, arg1, t0, arg2);
1259 static inline void tcg_gen_rem_i64(TCGv_i64 ret, TCGv_i64 arg1, TCGv_i64 arg2)
1264 tcg_gen_op5_i64(INDEX_op_div2_i64, t0, ret, arg1, t0, arg2);
1268 static inline void tcg_gen_divu_i64(TCGv_i64 ret, TCGv_i64 arg1, TCGv_i64 arg2)
1273 tcg_gen_op5_i64(INDEX_op_divu2_i64, ret, t0, arg1, t0, arg2);
1277 static inline void tcg_gen_remu_i64(TCGv_i64 ret, TCGv_i64 arg1, TCGv_i64 arg2)
1282 tcg_gen_op5_i64(INDEX_op_divu2_i64, t0, ret, arg1, t0, arg2);
1286 static inline void tcg_gen_div_i64(TCGv_i64 ret, TCGv_i64 arg1, TCGv_i64 arg2)
1294 tcg_gen_helper64(tcg_helper_div_i64, sizemask, ret, arg1, arg2);
1297 static inline void tcg_gen_rem_i64(TCGv_i64 ret, TCGv_i64 arg1, TCGv_i64 arg2)
1305 tcg_gen_helper64(tcg_helper_rem_i64, sizemask, ret, arg1, arg2);
1308 static inline void tcg_gen_divu_i64(TCGv_i64 ret, TCGv_i64 arg1, TCGv_i64 arg2)
1316 tcg_gen_helper64(tcg_helper_divu_i64, sizemask, ret, arg1, arg2);
1319 static inline void tcg_gen_remu_i64(TCGv_i64 ret, TCGv_i64 arg1, TCGv_i64 arg2)
1327 tcg_gen_helper64(tcg_helper_remu_i64, sizemask, ret, arg1, arg2);
1333 static inline void tcg_gen_addi_i64(TCGv_i64 ret, TCGv_i64 arg1, int64_t arg2)
1336 if (arg2 == 0) {
1339 TCGv_i64 t0 = tcg_const_i64(arg2);
1345 static inline void tcg_gen_subfi_i64(TCGv_i64 ret, int64_t arg1, TCGv_i64 arg2)
1348 tcg_gen_sub_i64(ret, t0, arg2);
1352 static inline void tcg_gen_subi_i64(TCGv_i64 ret, TCGv_i64 arg1, int64_t arg2)
1355 if (arg2 == 0) {
1358 TCGv_i64 t0 = tcg_const_i64(arg2);
1364 int64_t arg2, int label_index)
1366 TCGv_i64 t0 = tcg_const_i64(arg2);
1372 TCGv_i64 arg1, int64_t arg2)
1374 TCGv_i64 t0 = tcg_const_i64(arg2);
1379 static inline void tcg_gen_muli_i64(TCGv_i64 ret, TCGv_i64 arg1, int64_t arg2)
1381 TCGv_i64 t0 = tcg_const_i64(arg2);
1809 static inline void tcg_gen_andc_i32(TCGv_i32 ret, TCGv_i32 arg1, TCGv_i32 arg2)
1812 tcg_gen_op3_i32(INDEX_op_andc_i32, ret, arg1, arg2);
1816 tcg_gen_not_i32(t0, arg2);
1822 static inline void tcg_gen_andc_i64(TCGv_i64 ret, TCGv_i64 arg1, TCGv_i64 arg2)
1825 tcg_gen_op3_i64(INDEX_op_andc_i64, ret, arg1, arg2);
1827 tcg_gen_andc_i32(TCGV_LOW(ret), TCGV_LOW(arg1), TCGV_LOW(arg2));
1828 tcg_gen_andc_i32(TCGV_HIGH(ret), TCGV_HIGH(arg1), TCGV_HIGH(arg2));
1832 tcg_gen_not_i64(t0, arg2);
1838 static inline void tcg_gen_eqv_i32(TCGv_i32 ret, TCGv_i32 arg1, TCGv_i32 arg2)
1841 tcg_gen_op3_i32(INDEX_op_eqv_i32, ret, arg1, arg2);
1843 tcg_gen_xor_i32(ret, arg1, arg2);
1848 static inline void tcg_gen_eqv_i64(TCGv_i64 ret, TCGv_i64 arg1, TCGv_i64 arg2)
1851 tcg_gen_op3_i64(INDEX_op_eqv_i64, ret, arg1, arg2);
1853 tcg_gen_eqv_i32(TCGV_LOW(ret), TCGV_LOW(arg1), TCGV_LOW(arg2));
1854 tcg_gen_eqv_i32(TCGV_HIGH(ret), TCGV_HIGH(arg1), TCGV_HIGH(arg2));
1856 tcg_gen_xor_i64(ret, arg1, arg2);
1861 static inline void tcg_gen_nand_i32(TCGv_i32 ret, TCGv_i32 arg1, TCGv_i32 arg2)
1864 tcg_gen_op3_i32(INDEX_op_nand_i32, ret, arg1, arg2);
1866 tcg_gen_and_i32(ret, arg1, arg2);
1871 static inline void tcg_gen_nand_i64(TCGv_i64 ret, TCGv_i64 arg1, TCGv_i64 arg2)
1874 tcg_gen_op3_i64(INDEX_op_nand_i64, ret, arg1, arg2);
1876 tcg_gen_nand_i32(TCGV_LOW(ret), TCGV_LOW(arg1), TCGV_LOW(arg2));
1877 tcg_gen_nand_i32(TCGV_HIGH(ret), TCGV_HIGH(arg1), TCGV_HIGH(arg2));
1879 tcg_gen_and_i64(ret, arg1, arg2);
1884 static inline void tcg_gen_nor_i32(TCGv_i32 ret, TCGv_i32 arg1, TCGv_i32 arg2)
1887 tcg_gen_op3_i32(INDEX_op_nor_i32, ret, arg1, arg2);
1889 tcg_gen_or_i32(ret, arg1, arg2);
1894 static inline void tcg_gen_nor_i64(TCGv_i64 ret, TCGv_i64 arg1, TCGv_i64 arg2)
1897 tcg_gen_op3_i64(INDEX_op_nor_i64, ret, arg1, arg2);
1899 tcg_gen_nor_i32(TCGV_LOW(ret), TCGV_LOW(arg1), TCGV_LOW(arg2));
1900 tcg_gen_nor_i32(TCGV_HIGH(ret), TCGV_HIGH(arg1), TCGV_HIGH(arg2));
1902 tcg_gen_or_i64(ret, arg1, arg2);
1907 static inline void tcg_gen_orc_i32(TCGv_i32 ret, TCGv_i32 arg1, TCGv_i32 arg2)
1910 tcg_gen_op3_i32(INDEX_op_orc_i32, ret, arg1, arg2);
1914 tcg_gen_not_i32(t0, arg2);
1920 static inline void tcg_gen_orc_i64(TCGv_i64 ret, TCGv_i64 arg1, TCGv_i64 arg2)
1923 tcg_gen_op3_i64(INDEX_op_orc_i64, ret, arg1, arg2);
1925 tcg_gen_orc_i32(TCGV_LOW(ret), TCGV_LOW(arg1), TCGV_LOW(arg2));
1926 tcg_gen_orc_i32(TCGV_HIGH(ret), TCGV_HIGH(arg1), TCGV_HIGH(arg2));
1930 tcg_gen_not_i64(t0, arg2);
1936 static inline void tcg_gen_rotl_i32(TCGv_i32 ret, TCGv_i32 arg1, TCGv_i32 arg2)
1939 tcg_gen_op3_i32(INDEX_op_rotl_i32, ret, arg1, arg2);
1945 tcg_gen_shl_i32(t0, arg1, arg2);
1946 tcg_gen_subfi_i32(t1, 32, arg2);
1954 static inline void tcg_gen_rotl_i64(TCGv_i64 ret, TCGv_i64 arg1, TCGv_i64 arg2)
1957 tcg_gen_op3_i64(INDEX_op_rotl_i64, ret, arg1, arg2);
1963 tcg_gen_shl_i64(t0, arg1, arg2);
1964 tcg_gen_subfi_i64(t1, 64, arg2);
1972 static inline void tcg_gen_rotli_i32(TCGv_i32 ret, TCGv_i32 arg1, int32_t arg2)
1975 if (arg2 == 0) {
1979 TCGv_i32 t0 = tcg_const_i32(arg2);
1986 tcg_gen_shli_i32(t0, arg1, arg2);
1987 tcg_gen_shri_i32(t1, arg1, 32 - arg2);
1995 static inline void tcg_gen_rotli_i64(TCGv_i64 ret, TCGv_i64 arg1, int64_t arg2)
1998 if (arg2 == 0) {
2002 TCGv_i64 t0 = tcg_const_i64(arg2);
2009 tcg_gen_shli_i64(t0, arg1, arg2);
2010 tcg_gen_shri_i64(t1, arg1, 64 - arg2);
2018 static inline void tcg_gen_rotr_i32(TCGv_i32 ret, TCGv_i32 arg1, TCGv_i32 arg2)
2021 tcg_gen_op3_i32(INDEX_op_rotr_i32, ret, arg1, arg2);
2027 tcg_gen_shr_i32(t0, arg1, arg2);
2028 tcg_gen_subfi_i32(t1, 32, arg2);
2036 static inline void tcg_gen_rotr_i64(TCGv_i64 ret, TCGv_i64 arg1, TCGv_i64 arg2)
2039 tcg_gen_op3_i64(INDEX_op_rotr_i64, ret, arg1, arg2);
2045 tcg_gen_shr_i64(t0, arg1, arg2);
2046 tcg_gen_subfi_i64(t1, 64, arg2);
2054 static inline void tcg_gen_rotri_i32(TCGv_i32 ret, TCGv_i32 arg1, int32_t arg2)
2057 if (arg2 == 0) {
2060 tcg_gen_rotli_i32(ret, arg1, 32 - arg2);
2064 static inline void tcg_gen_rotri_i64(TCGv_i64 ret, TCGv_i64 arg1, int64_t arg2)
2067 if (arg2 == 0) {
2070 tcg_gen_rotli_i64(ret, arg1, 64 - arg2);