Lines Matching refs:push_inst

171 static sljit_s32 push_inst(struct sljit_compiler *compiler, sljit_ins ins)  in push_inst()  function
857 FAIL_IF(push_inst(compiler, brc(0xc, 2 + 2 + ((op & SLJIT_32) ? 1 : 2) + 2 + 3 + 1))); in update_zero_overflow()
858 FAIL_IF(push_inst(compiler, ipm(tmp1))); in update_zero_overflow()
859 FAIL_IF(push_inst(compiler, (op & SLJIT_32) ? or(dst_r, dst_r) : ogr(dst_r, dst_r))); in update_zero_overflow()
860 FAIL_IF(push_inst(compiler, brc(0x8, 2 + 3))); in update_zero_overflow()
861 FAIL_IF(push_inst(compiler, slfi(tmp1, 0x10000000))); in update_zero_overflow()
862 FAIL_IF(push_inst(compiler, spm(tmp1))); in update_zero_overflow()
871 return push_inst(compiler, lghi(target, (sljit_s16)v)); in push_load_imm_inst()
874 return push_inst(compiler, llill(target, (sljit_u16)v)); in push_load_imm_inst()
877 return push_inst(compiler, llilh(target, (sljit_u16)(v >> 16))); in push_load_imm_inst()
880 return push_inst(compiler, llihl(target, (sljit_u16)(v >> 32))); in push_load_imm_inst()
883 return push_inst(compiler, llihh(target, (sljit_u16)(v >> 48))); in push_load_imm_inst()
888 return push_inst(compiler, lgfi(target, (sljit_s32)v)); in push_load_imm_inst()
891 return push_inst(compiler, llilf(target, (sljit_u32)v)); in push_load_imm_inst()
894 return push_inst(compiler, llihf(target, (sljit_u32)((sljit_uw)v >> 32))); in push_load_imm_inst()
896 FAIL_IF(push_inst(compiler, llilf(target, (sljit_u32)v))); in push_load_imm_inst()
897 return push_inst(compiler, iihf(target, (sljit_u32)(v >> 32))); in push_load_imm_inst()
927 FAIL_IF(push_inst(compiler, sllg(tmp, index, (sljit_s32)off, 0))); in make_addr_bxy()
960 FAIL_IF(push_inst(compiler, sllg(tmp, index, (sljit_s32)off, 0))); in make_addr_bx()
999 return push_inst(compiler, ins); in load_word()
1021 return push_inst(compiler, ins); in store_word()
1039 return push_inst(compiler, (compiler->mode & SLJIT_32) ? lr(dst_r, src_r) : lgr(dst_r, src_r)); in emit_move()
1070 FAIL_IF(push_inst(compiler, ins | R4A(dst_r) | R0A(src_r))); in emit_rr()
1076 return push_inst(compiler, (compiler->mode & SLJIT_32) ? lr(dst_r, tmp0) : lgr(dst_r, tmp0)); in emit_rr()
1091 return push_inst(compiler, ins | R4A(dst_r) | R0A(src_r)); in emit_rr1()
1113 return push_inst(compiler, ins | R4A(dst_r) | R0A(src1_r) | R12A(src2_r)); in emit_rrf()
1141 return push_inst(compiler, ins | R36A(dst_r) | (src2w & 0xffffffff)); in emit_ri()
1142 return push_inst(compiler, ins | R20A(dst_r) | (src2w & 0xffff)); in emit_ri()
1158 return push_inst(compiler, ins | R36A(dst_r) | R32A(src_r) | (sljit_ins)(src2w & 0xffff) << 16); in emit_rie_d()
1199 FAIL_IF(push_inst(compiler, sllg(tmp1, index, src2w & 0x3, 0))); in emit_rx()
1218 FAIL_IF(push_inst(compiler, ins)); in emit_rx()
1224 return push_inst(compiler, (compiler->mode & SLJIT_32) ? lr(dst_r, tmp0) : lgr(dst_r, tmp0)); in emit_rx()
1241 FAIL_IF(push_inst(compiler, sllg(tmp1, index, dstw & 0x3, 0))); in emit_siy()
1243 FAIL_IF(push_inst(compiler, la(tmp1, 0, dst_r, index))); in emit_siy()
1250 FAIL_IF(push_inst(compiler, la(tmp1, 0, dst_r, tmp1))); in emit_siy()
1257 …return push_inst(compiler, ins | ((sljit_ins)(srcw & 0xff) << 32) | R28A(dst_r) | disp_s20((sljit_… in emit_siy()
1651 FAIL_IF(push_inst(compiler, stmg(r6, r14, offset, r15))); /* save registers TODO(MGM): optimize */ in sljit_emit_enter()
1655 FAIL_IF(push_inst(compiler, stg(r6, offset, 0, r15))); in sljit_emit_enter()
1658 …FAIL_IF(push_inst(compiler, stmg(r6, r6 + (sljit_gpr)(scratches - SLJIT_FIRST_SAVED_REG), offset, … in sljit_emit_enter()
1663 FAIL_IF(push_inst(compiler, stg(r14, offset, 0, r15))); in sljit_emit_enter()
1666 FAIL_IF(push_inst(compiler, stmg(r14 - (sljit_gpr)saveds, r14, offset, r15))); in sljit_emit_enter()
1673 FAIL_IF(push_inst(compiler, 0x60000000 /* std */ | F20(i) | R12A(r15) | (sljit_ins)offset)); in sljit_emit_enter()
1678 FAIL_IF(push_inst(compiler, 0x60000000 /* std */ | F20(i) | R12A(r15) | (sljit_ins)offset)); in sljit_emit_enter()
1685 …FAIL_IF(push_inst(compiler, 0xe30000000071 /* lay */ | R36A(r15) | R28A(r15) | disp_s20(-local_siz… in sljit_emit_enter()
1692 FAIL_IF(push_inst(compiler, lgr(gpr(SLJIT_S0 - tmp), gpr(SLJIT_R0 + word_arg_count)))); in sljit_emit_enter()
1724 FAIL_IF(push_inst(compiler, 0x41000000 /* ly */ | R20A(r15) | R12A(r15) | (sljit_ins)local_size)); in emit_stack_frame_release()
1726 …FAIL_IF(push_inst(compiler, 0xe30000000071 /* lay */ | R36A(r15) | R28A(r15) | disp_s20(local_size… in emit_stack_frame_release()
1730 FAIL_IF(push_inst(compiler, lmg(r6, r14, offset, r15))); /* save registers TODO(MGM): optimize */ in emit_stack_frame_release()
1734 FAIL_IF(push_inst(compiler, lg(r6, offset, 0, r15))); in emit_stack_frame_release()
1737 …FAIL_IF(push_inst(compiler, lmg(r6, r6 + (sljit_gpr)(scratches - SLJIT_FIRST_SAVED_REG), offset, r… in emit_stack_frame_release()
1742 FAIL_IF(push_inst(compiler, lg(r14, offset, 0, r15))); in emit_stack_frame_release()
1745 FAIL_IF(push_inst(compiler, lmg(r14 - (sljit_gpr)saveds, r14, offset, r15))); in emit_stack_frame_release()
1752 FAIL_IF(push_inst(compiler, 0x68000000 /* ld */ | F20(i) | R12A(r15) | (sljit_ins)offset)); in emit_stack_frame_release()
1757 FAIL_IF(push_inst(compiler, 0x68000000 /* ld */ | F20(i) | R12A(r15) | (sljit_ins)offset)); in emit_stack_frame_release()
1770 return push_inst(compiler, br(r14)); /* return */ in sljit_emit_return_void()
1789 return push_inst(compiler, 0x0001 /* 2-byte trap */); in sljit_emit_op0()
1791 return push_inst(compiler, 0x0700 /* 2-byte nop */); in sljit_emit_op0()
1793 FAIL_IF(push_inst(compiler, mlgr(arg0, arg0))); in sljit_emit_op0()
1798 FAIL_IF(push_inst(compiler, srag(tmp0, arg0, 63, 0))); in sljit_emit_op0()
1799 FAIL_IF(push_inst(compiler, srag(tmp1, arg1, 63, 0))); in sljit_emit_op0()
1800 FAIL_IF(push_inst(compiler, ngr(tmp0, arg1))); in sljit_emit_op0()
1801 FAIL_IF(push_inst(compiler, ngr(tmp1, arg0))); in sljit_emit_op0()
1804 FAIL_IF(push_inst(compiler, mlgr(arg0, arg0))); in sljit_emit_op0()
1806 FAIL_IF(push_inst(compiler, sgr(arg0, tmp0))); in sljit_emit_op0()
1807 FAIL_IF(push_inst(compiler, sgr(arg0, tmp1))); in sljit_emit_op0()
1811 FAIL_IF(push_inst(compiler, lhi(tmp0, 0))); in sljit_emit_op0()
1812 FAIL_IF(push_inst(compiler, lr(tmp1, arg0))); in sljit_emit_op0()
1813 FAIL_IF(push_inst(compiler, dlr(tmp0, arg1))); in sljit_emit_op0()
1814 FAIL_IF(push_inst(compiler, lr(arg0, tmp1))); /* quotient */ in sljit_emit_op0()
1816 return push_inst(compiler, lr(arg1, tmp0)); /* remainder */ in sljit_emit_op0()
1821 FAIL_IF(push_inst(compiler, lhi(tmp0, 0))); in sljit_emit_op0()
1822 FAIL_IF(push_inst(compiler, lr(tmp1, arg0))); in sljit_emit_op0()
1823 FAIL_IF(push_inst(compiler, dr(tmp0, arg1))); in sljit_emit_op0()
1824 FAIL_IF(push_inst(compiler, lr(arg0, tmp1))); /* quotient */ in sljit_emit_op0()
1826 return push_inst(compiler, lr(arg1, tmp0)); /* remainder */ in sljit_emit_op0()
1831 FAIL_IF(push_inst(compiler, lghi(tmp0, 0))); in sljit_emit_op0()
1832 FAIL_IF(push_inst(compiler, lgr(tmp1, arg0))); in sljit_emit_op0()
1833 FAIL_IF(push_inst(compiler, dlgr(tmp0, arg1))); in sljit_emit_op0()
1834 FAIL_IF(push_inst(compiler, lgr(arg0, tmp1))); /* quotient */ in sljit_emit_op0()
1836 return push_inst(compiler, lgr(arg1, tmp0)); /* remainder */ in sljit_emit_op0()
1841 FAIL_IF(push_inst(compiler, lgr(tmp1, arg0))); in sljit_emit_op0()
1842 FAIL_IF(push_inst(compiler, dsgr(tmp0, arg1))); in sljit_emit_op0()
1843 FAIL_IF(push_inst(compiler, lgr(arg0, tmp1))); /* quotient */ in sljit_emit_op0()
1845 return push_inst(compiler, lgr(arg1, tmp0)); /* remainder */ in sljit_emit_op0()
1856 FAIL_IF(push_inst(compiler, lgr(tmp0, arg0))); in sljit_emit_op0()
1857 FAIL_IF(push_inst(compiler, lgr(arg0, arg1))); in sljit_emit_op0()
1858 return push_inst(compiler, lgr(arg1, tmp0)); in sljit_emit_op0()
1933 FAIL_IF(push_inst(compiler, ins)); in sljit_emit_op1()
2012 FAIL_IF(push_inst(compiler, ins)); in sljit_emit_op1()
2028 return push_inst(compiler, in sljit_emit_op1()
2032 return push_inst(compiler, in sljit_emit_op1()
2037 return push_inst(compiler, in sljit_emit_op1()
2041 FAIL_IF(push_inst(compiler, LEVAL(stg))); in sljit_emit_op1()
2055 FAIL_IF(push_inst(compiler, in sljit_emit_op1()
2058 return push_inst(compiler, in sljit_emit_op1()
2062 FAIL_IF(push_inst(compiler, in sljit_emit_op1()
2065 return push_inst(compiler, in sljit_emit_op1()
2070 FAIL_IF(push_inst(compiler, in sljit_emit_op1()
2073 return push_inst(compiler, in sljit_emit_op1()
2077 FAIL_IF(push_inst(compiler, in sljit_emit_op1()
2080 FAIL_IF(push_inst(compiler, in sljit_emit_op1()
2105 FAIL_IF(push_inst(compiler, lgr(dst_r, src_r))); in sljit_emit_op1()
2107 FAIL_IF(push_inst(compiler, xgr(dst_r, tmp1))); in sljit_emit_op1()
2112 FAIL_IF(push_inst(compiler, xilf(dst_r, 0xffffffff))); in sljit_emit_op1()
2116 FAIL_IF(push_inst(compiler, lr(dst_r, src_r))); in sljit_emit_op1()
2118 FAIL_IF(push_inst(compiler, xr(dst_r, tmp1))); in sljit_emit_op1()
2123 FAIL_IF(push_inst(compiler, flogr(tmp0, src_r))); /* clobbers tmp1 */ in sljit_emit_op1()
2125 FAIL_IF(push_inst(compiler, lgr(dst_r, tmp0))); in sljit_emit_op1()
2132 FAIL_IF(push_inst(compiler, sllg(tmp1, src_r, 32, 0))); in sljit_emit_op1()
2133 FAIL_IF(push_inst(compiler, iilf(tmp1, 0xffffffff))); in sljit_emit_op1()
2134 FAIL_IF(push_inst(compiler, flogr(tmp0, tmp1))); /* clobbers tmp1 */ in sljit_emit_op1()
2136 FAIL_IF(push_inst(compiler, lr(dst_r, tmp0))); in sljit_emit_op1()
2385 FAIL_IF(push_inst(compiler, brc(0xe, 2 + 2))); in sljit_emit_sub()
2386 FAIL_IF(push_inst(compiler, (op & SLJIT_32) ? lcr(tmp1, dst_r) : lcgr(tmp1, dst_r))); in sljit_emit_sub()
2475 FAIL_IF(push_inst(compiler, 0xc00a00000000 /* nihf */ | R36A(dst_r) | (imm >> 32))); in sljit_emit_bitwise_imm()
2476 return push_inst(compiler, 0xc00b00000000 /* nilf */ | R36A(dst_r) | (imm & 0xffffffff)); in sljit_emit_bitwise_imm()
2480 FAIL_IF(push_inst(compiler, 0xc00c00000000 /* oihf */ | R36A(dst_r) | (imm >> 32))); in sljit_emit_bitwise_imm()
2481 return push_inst(compiler, 0xc00d00000000 /* oilf */ | R36A(dst_r) | (imm & 0xffffffff)); in sljit_emit_bitwise_imm()
2486 return push_inst(compiler, 0xc00c00000000 /* oihf */ | R36A(dst_r) | (imm >> 32)); in sljit_emit_bitwise_imm()
2488 return push_inst(compiler, 0xc00d00000000 /* oilf */ | R36A(dst_r) | (imm & 0xffffffff)); in sljit_emit_bitwise_imm()
2492 FAIL_IF(push_inst(compiler, 0xa5080000 /* oihh */ | R20A(dst_r) | (imm >> 48))); in sljit_emit_bitwise_imm()
2494 FAIL_IF(push_inst(compiler, 0xa5090000 /* oihl */ | R20A(dst_r) | ((imm >> 32) & 0xffff))); in sljit_emit_bitwise_imm()
2496 FAIL_IF(push_inst(compiler, 0xa50a0000 /* oilh */ | R20A(dst_r) | ((imm >> 16) & 0xffff))); in sljit_emit_bitwise_imm()
2498 return push_inst(compiler, 0xa50b0000 /* oill */ | R20A(dst_r) | (imm & 0xffff)); in sljit_emit_bitwise_imm()
2503 FAIL_IF(push_inst(compiler, 0xc00600000000 /* xihf */ | R36A(dst_r) | (imm >> 32))); in sljit_emit_bitwise_imm()
2505 return push_inst(compiler, 0xc00700000000 /* xilf */ | R36A(dst_r) | (imm & 0xffffffff)); in sljit_emit_bitwise_imm()
2572 return push_inst(compiler, 0xa7010000 | R20A(src_r) | imm); in sljit_emit_bitwise()
2574 return push_inst(compiler, 0xa7000000 | R20A(src_r) | (imm >> 16)); in sljit_emit_bitwise()
2576 return push_inst(compiler, 0xa7030000 | R20A(src_r) | (imm >> 32)); in sljit_emit_bitwise()
2577 return push_inst(compiler, 0xa7020000 | R20A(src_r) | (imm >> 48)); in sljit_emit_bitwise()
2628 FAIL_IF(push_inst(compiler, ins | R20A(dst_r) | R12A(base_r) | imm)); in sljit_emit_shift()
2638 FAIL_IF(push_inst(compiler, ins | R36A(dst_r) | R32A(src_r) | R28A(base_r) | (imm << 16))); in sljit_emit_shift()
2642 return push_inst(compiler, (op & SLJIT_32) ? or(dst_r, dst_r) : ogr(dst_r, dst_r)); in sljit_emit_shift()
2760 return push_inst(compiler, br(src_r)); in sljit_emit_op_src()
2799 return push_inst(compiler, ins); in sljit_emit_op_custom()
2826 …return push_inst(compiler, ins | F20(reg) | R16A(addr.index) | R12A(addr.base) | (sljit_ins)addr.o… in float_mem()
2836 …return push_inst(compiler, ins | F36(reg) | R32A(addr.index) | R28A(addr.base) | disp_s20(addr.off… in float_mem()
2846 return push_inst(compiler, ins_r | F4(reg) | F0(src)); in emit_float()
2849 …return push_inst(compiler, ins | F36(reg) | R32A(addr.index) | R28A(addr.base) | ((sljit_ins)addr.… in emit_float()
2870 FAIL_IF(push_inst(compiler, ins | R4A(dst_r) | F0(src))); in sljit_emit_fop1_conv_sw_from_f64()
2899 FAIL_IF(push_inst(compiler, ins | F4(dst_r) | R0(src))); in sljit_emit_fop1_conv_f64_from_sw()
2973 FAIL_IF(push_inst(compiler, ins | F4(dst_r) | F0(src))); in sljit_emit_fop1()
3016 FAIL_IF(push_inst(compiler, FLOAT_MOV(op, TMP_FREG1, src2))); in sljit_emit_fop2()
3024 FAIL_IF(push_inst(compiler, FLOAT_MOV(op, dst_r, src1))); in sljit_emit_fop2()
3067 return push_inst(compiler, lgr(gpr(dst), fast_link_r)); in sljit_emit_fast_enter()
3110 PTR_FAIL_IF(push_inst(compiler, brasl(type == SLJIT_FAST_CALL ? fast_link_r : link_r, 0))); in sljit_emit_jump()
3112 PTR_FAIL_IF(push_inst(compiler, brcl(mask, 0))); in sljit_emit_jump()
3154 return push_inst(compiler, basr(type == SLJIT_FAST_CALL ? fast_link_r : link_r, src_r)); in sljit_emit_ijump()
3156 return push_inst(compiler, br(src_r)); in sljit_emit_ijump()
3176 FAIL_IF(push_inst(compiler, lgr(tmp1, gpr(src)))); in sljit_emit_icall()
3229 FAIL_IF(push_inst(compiler, in sljit_emit_op_flags()
3241 FAIL_IF(push_inst(compiler, in sljit_emit_op_flags()
3245 FAIL_IF(push_inst(compiler, in sljit_emit_op_flags()
3249 FAIL_IF(push_inst(compiler, in sljit_emit_op_flags()
3280 return push_inst(compiler, in sljit_emit_cmov()
3319 PTR_FAIL_IF(push_inst(compiler, sljit_ins_const | lgrl(dst_r, 0))); in sljit_emit_const()
3321 PTR_FAIL_IF(push_inst(compiler, sljit_ins_const | larl(tmp1, 0))); in sljit_emit_const()
3322 PTR_FAIL_IF(push_inst(compiler, lg(dst_r, 0, r0, tmp1))); in sljit_emit_const()
3366 PTR_FAIL_IF(push_inst(compiler, lgrl(dst_r, 0))); in sljit_emit_put_label()
3368 PTR_FAIL_IF(push_inst(compiler, larl(tmp1, 0))); in sljit_emit_put_label()
3369 PTR_FAIL_IF(push_inst(compiler, lg(dst_r, 0, r0, tmp1))); in sljit_emit_put_label()