Lines Matching refs:push_inst

145 static sljit_s32 push_inst(struct sljit_compiler *compiler, sljit_ins ins)  in push_inst()  function
845 FAIL_IF(push_inst(compiler, brc(0xc, 2 + 2 + ((op & SLJIT_I32_OP) ? 1 : 2) + 2 + 3 + 1))); in update_zero_overflow()
846 FAIL_IF(push_inst(compiler, ipm(flag_r))); in update_zero_overflow()
847 FAIL_IF(push_inst(compiler, (op & SLJIT_I32_OP) ? or(dst_r, dst_r) : ogr(dst_r, dst_r))); in update_zero_overflow()
848 FAIL_IF(push_inst(compiler, brc(0x8, 2 + 3))); in update_zero_overflow()
849 FAIL_IF(push_inst(compiler, slfi(flag_r, 0x10000000))); in update_zero_overflow()
850 FAIL_IF(push_inst(compiler, spm(flag_r))); in update_zero_overflow()
859 return push_inst(compiler, lghi(target, (sljit_s16)v)); in push_load_imm_inst()
862 return push_inst(compiler, llill(target, (sljit_u16)v)); in push_load_imm_inst()
865 return push_inst(compiler, llilh(target, (sljit_u16)(v >> 16))); in push_load_imm_inst()
868 return push_inst(compiler, llihl(target, (sljit_u16)(v >> 32))); in push_load_imm_inst()
871 return push_inst(compiler, llihh(target, (sljit_u16)(v >> 48))); in push_load_imm_inst()
876 return push_inst(compiler, lgfi(target, (sljit_s32)v)); in push_load_imm_inst()
879 return push_inst(compiler, llilf(target, (sljit_u32)v)); in push_load_imm_inst()
882 return push_inst(compiler, llihf(target, (sljit_u32)(v >> 32))); in push_load_imm_inst()
884 FAIL_IF(push_inst(compiler, llilf(target, (sljit_u32)v))); in push_load_imm_inst()
885 return push_inst(compiler, iihf(target, (sljit_u32)(v >> 32))); in push_load_imm_inst()
914 FAIL_IF(push_inst(compiler, sllg(tmp, index, off, 0))); in make_addr_bxy()
947 FAIL_IF(push_inst(compiler, sllg(tmp, index, off, 0))); in make_addr_bx()
986 return push_inst(compiler, ins); in load_word()
1008 return push_inst(compiler, ins); in store_word()
1026 return push_inst(compiler, (compiler->mode & SLJIT_I32_OP) ? lr(dst_r, src_r) : lgr(dst_r, src_r)); in emit_move()
1057 FAIL_IF(push_inst(compiler, ins | (dst_r << 4) | src_r)); in emit_rr()
1063 return push_inst(compiler, (compiler->mode & SLJIT_I32_OP) ? lr(dst_r, tmp0) : lgr(dst_r, tmp0)); in emit_rr()
1085 return push_inst(compiler, ins | (dst_r << 4) | src1_r | (src2_r << 12)); in emit_rrf()
1113 return push_inst(compiler, ins | (dst_r << 36) | (src2w & 0xffffffff)); in emit_ri()
1114 return push_inst(compiler, ins | (dst_r << 20) | (src2w & 0xffff)); in emit_ri()
1130 return push_inst(compiler, ins | (dst_r << 36) | (src_r << 32) | (src2w & 0xffff) << 16); in emit_rie_d()
1171 FAIL_IF(push_inst(compiler, sllg(tmp1, index, src2w & 0x3, 0))); in emit_rx()
1190 FAIL_IF(push_inst(compiler, ins)); in emit_rx()
1196 return push_inst(compiler, (compiler->mode & SLJIT_I32_OP) ? lr(dst_r, tmp0) : lgr(dst_r, tmp0)); in emit_rx()
1213 FAIL_IF(push_inst(compiler, sllg(tmp1, index, dstw & 0x3, 0))); in emit_siy()
1215 FAIL_IF(push_inst(compiler, la(tmp1, 0, dst_r, index))); in emit_siy()
1222 FAIL_IF(push_inst(compiler, la(tmp1, 0, dst_r, tmp1))); in emit_siy()
1229 return push_inst(compiler, ins | ((srcw & 0xff) << 32) | (dst_r << 28) | disp_s20(dstw)); in emit_siy()
1621 …FAIL_IF(push_inst(compiler, stmg(r6, r15, r6 * sizeof(sljit_sw), r15))); /* save registers TODO(MG… in sljit_emit_enter()
1624 FAIL_IF(push_inst(compiler, aghi(r15, -((sljit_s16)frame_size)))); in sljit_emit_enter()
1626 FAIL_IF(push_inst(compiler, agfi(r15, -((sljit_s32)frame_size)))); in sljit_emit_enter()
1629 FAIL_IF(push_inst(compiler, la(r15, 0, tmp1, r15))); in sljit_emit_enter()
1634 FAIL_IF(push_inst(compiler, lgr(gpr(SLJIT_S0), gpr(SLJIT_R0)))); in sljit_emit_enter()
1636 FAIL_IF(push_inst(compiler, lgr(gpr(SLJIT_S1), gpr(SLJIT_R1)))); in sljit_emit_enter()
1638 FAIL_IF(push_inst(compiler, lgr(gpr(SLJIT_S2), gpr(SLJIT_R2)))); in sljit_emit_enter()
1670 FAIL_IF(push_inst(compiler, la(r15, 0, tmp1, r15))); in sljit_emit_return()
1677 FAIL_IF(push_inst(compiler, lmg(r6, end, size, r15))); /* restore registers TODO(MGM): optimize */ in sljit_emit_return()
1678 FAIL_IF(push_inst(compiler, br(r14))); /* return */ in sljit_emit_return()
1699 return push_inst(compiler, 0x0001 /* 2-byte trap */); in sljit_emit_op0()
1701 return push_inst(compiler, 0x0700 /* 2-byte nop */); in sljit_emit_op0()
1703 FAIL_IF(push_inst(compiler, mlgr(arg0, arg0))); in sljit_emit_op0()
1708 FAIL_IF(push_inst(compiler, srag(tmp0, arg0, 63, 0))); in sljit_emit_op0()
1709 FAIL_IF(push_inst(compiler, srag(tmp1, arg1, 63, 0))); in sljit_emit_op0()
1710 FAIL_IF(push_inst(compiler, ngr(tmp0, arg1))); in sljit_emit_op0()
1711 FAIL_IF(push_inst(compiler, ngr(tmp1, arg0))); in sljit_emit_op0()
1714 FAIL_IF(push_inst(compiler, mlgr(arg0, arg0))); in sljit_emit_op0()
1716 FAIL_IF(push_inst(compiler, sgr(arg0, tmp0))); in sljit_emit_op0()
1717 FAIL_IF(push_inst(compiler, sgr(arg0, tmp1))); in sljit_emit_op0()
1721 FAIL_IF(push_inst(compiler, lhi(tmp0, 0))); in sljit_emit_op0()
1722 FAIL_IF(push_inst(compiler, lr(tmp1, arg0))); in sljit_emit_op0()
1723 FAIL_IF(push_inst(compiler, dlr(tmp0, arg1))); in sljit_emit_op0()
1724 FAIL_IF(push_inst(compiler, lr(arg0, tmp1))); /* quotient */ in sljit_emit_op0()
1726 return push_inst(compiler, lr(arg1, tmp0)); /* remainder */ in sljit_emit_op0()
1731 FAIL_IF(push_inst(compiler, lhi(tmp0, 0))); in sljit_emit_op0()
1732 FAIL_IF(push_inst(compiler, lr(tmp1, arg0))); in sljit_emit_op0()
1733 FAIL_IF(push_inst(compiler, dr(tmp0, arg1))); in sljit_emit_op0()
1734 FAIL_IF(push_inst(compiler, lr(arg0, tmp1))); /* quotient */ in sljit_emit_op0()
1736 return push_inst(compiler, lr(arg1, tmp0)); /* remainder */ in sljit_emit_op0()
1741 FAIL_IF(push_inst(compiler, lghi(tmp0, 0))); in sljit_emit_op0()
1742 FAIL_IF(push_inst(compiler, lgr(tmp1, arg0))); in sljit_emit_op0()
1743 FAIL_IF(push_inst(compiler, dlgr(tmp0, arg1))); in sljit_emit_op0()
1744 FAIL_IF(push_inst(compiler, lgr(arg0, tmp1))); /* quotient */ in sljit_emit_op0()
1746 return push_inst(compiler, lgr(arg1, tmp0)); /* remainder */ in sljit_emit_op0()
1751 FAIL_IF(push_inst(compiler, lgr(tmp1, arg0))); in sljit_emit_op0()
1752 FAIL_IF(push_inst(compiler, dsgr(tmp0, arg1))); in sljit_emit_op0()
1753 FAIL_IF(push_inst(compiler, lgr(arg0, tmp1))); /* quotient */ in sljit_emit_op0()
1755 return push_inst(compiler, lgr(arg1, tmp0)); /* remainder */ in sljit_emit_op0()
1766 FAIL_IF(push_inst(compiler, lgr(tmp0, arg0))); in sljit_emit_op0()
1767 FAIL_IF(push_inst(compiler, lgr(arg0, arg1))); in sljit_emit_op0()
1768 return push_inst(compiler, lgr(arg1, tmp0)); in sljit_emit_op0()
1843 FAIL_IF(push_inst(compiler, ins)); in sljit_emit_op1()
1919 FAIL_IF(push_inst(compiler, ins)); in sljit_emit_op1()
1935 return push_inst(compiler, in sljit_emit_op1()
1939 return push_inst(compiler, in sljit_emit_op1()
1943 return push_inst(compiler, in sljit_emit_op1()
1947 FAIL_IF(push_inst(compiler, LEVAL(stg))); in sljit_emit_op1()
1961 FAIL_IF(push_inst(compiler, in sljit_emit_op1()
1964 return push_inst(compiler, in sljit_emit_op1()
1968 FAIL_IF(push_inst(compiler, in sljit_emit_op1()
1971 return push_inst(compiler, in sljit_emit_op1()
1975 FAIL_IF(push_inst(compiler, in sljit_emit_op1()
1978 return push_inst(compiler, in sljit_emit_op1()
1982 FAIL_IF(push_inst(compiler, in sljit_emit_op1()
1985 FAIL_IF(push_inst(compiler, in sljit_emit_op1()
2010 FAIL_IF(push_inst(compiler, lgr(dst_r, src_r))); in sljit_emit_op1()
2012 FAIL_IF(push_inst(compiler, xgr(dst_r, tmp1))); in sljit_emit_op1()
2017 FAIL_IF(push_inst(compiler, xilf(dst_r, -1))); in sljit_emit_op1()
2021 FAIL_IF(push_inst(compiler, lr(dst_r, src_r))); in sljit_emit_op1()
2023 FAIL_IF(push_inst(compiler, xr(dst_r, tmp1))); in sljit_emit_op1()
2028 FAIL_IF(push_inst(compiler, lcgr(dst_r, src_r))); in sljit_emit_op1()
2032 FAIL_IF(push_inst(compiler, lcr(dst_r, src_r))); in sljit_emit_op1()
2036 FAIL_IF(push_inst(compiler, flogr(tmp0, src_r))); /* clobbers tmp1 */ in sljit_emit_op1()
2038 FAIL_IF(push_inst(compiler, lgr(dst_r, tmp0))); in sljit_emit_op1()
2045 FAIL_IF(push_inst(compiler, sllg(tmp1, src_r, 32, 0))); in sljit_emit_op1()
2046 FAIL_IF(push_inst(compiler, iilf(tmp1, 0xffffffff))); in sljit_emit_op1()
2047 FAIL_IF(push_inst(compiler, flogr(tmp0, tmp1))); /* clobbers tmp1 */ in sljit_emit_op1()
2049 FAIL_IF(push_inst(compiler, lr(dst_r, tmp0))); in sljit_emit_op1()
2305 FAIL_IF(push_inst(compiler, brc(0xe, 2 + 2))); in sljit_emit_sub()
2306 FAIL_IF(push_inst(compiler, (op & SLJIT_I32_OP) ? lcr(tmp1, dst_r) : lcgr(tmp1, dst_r))); in sljit_emit_sub()
2395 FAIL_IF(push_inst(compiler, 0xc00a00000000 /* nihf */ | (dst_r << 36) | (imm >> 32))); in sljit_emit_bitwise_imm()
2396 return push_inst(compiler, 0xc00b00000000 /* nilf */ | (dst_r << 36) | (imm & 0xffffffff)); in sljit_emit_bitwise_imm()
2400 FAIL_IF(push_inst(compiler, 0xc00c00000000 /* oihf */ | (dst_r << 36) | (imm >> 32))); in sljit_emit_bitwise_imm()
2401 return push_inst(compiler, 0xc00d00000000 /* oilf */ | (dst_r << 36) | (imm & 0xffffffff)); in sljit_emit_bitwise_imm()
2406 return push_inst(compiler, 0xc00c00000000 /* oihf */ | (dst_r << 36) | (imm >> 32)); in sljit_emit_bitwise_imm()
2408 return push_inst(compiler, 0xc00d00000000 /* oilf */ | (dst_r << 36) | (imm & 0xffffffff)); in sljit_emit_bitwise_imm()
2412 FAIL_IF(push_inst(compiler, 0xa5080000 /* oihh */ | (dst_r << 20) | (imm >> 48))); in sljit_emit_bitwise_imm()
2414 FAIL_IF(push_inst(compiler, 0xa5090000 /* oihl */ | (dst_r << 20) | ((imm >> 32) & 0xffff))); in sljit_emit_bitwise_imm()
2416 FAIL_IF(push_inst(compiler, 0xa50a0000 /* oilh */ | (dst_r << 20) | ((imm >> 16) & 0xffff))); in sljit_emit_bitwise_imm()
2418 return push_inst(compiler, 0xa50b0000 /* oill */ | (dst_r << 20) | (imm & 0xffff)); in sljit_emit_bitwise_imm()
2423 FAIL_IF(push_inst(compiler, 0xc00600000000 /* xihf */ | (dst_r << 36) | (imm >> 32))); in sljit_emit_bitwise_imm()
2425 return push_inst(compiler, 0xc00700000000 /* xilf */ | (dst_r << 36) | (imm & 0xffffffff)); in sljit_emit_bitwise_imm()
2492 return push_inst(compiler, 0xa7010000 | (src_r << 20) | imm); in sljit_emit_bitwise()
2494 return push_inst(compiler, 0xa7000000 | (src_r << 20) | (imm >> 16)); in sljit_emit_bitwise()
2496 return push_inst(compiler, 0xa7030000 | (src_r << 20) | (imm >> 32)); in sljit_emit_bitwise()
2497 return push_inst(compiler, 0xa7020000 | (src_r << 20) | (imm >> 48)); in sljit_emit_bitwise()
2548 FAIL_IF(push_inst(compiler, ins | (dst_r << 20) | (base_r << 12) | imm)); in sljit_emit_shift()
2558 FAIL_IF(push_inst(compiler, ins | (dst_r << 36) | (src_r << 32) | (base_r << 28) | (imm << 16))); in sljit_emit_shift()
2562 return push_inst(compiler, (op & SLJIT_I32_OP) ? or(dst_r, dst_r) : ogr(dst_r, dst_r)); in sljit_emit_shift()
2668 return push_inst(compiler, br(src_r)); in sljit_emit_op_src()
2707 return push_inst(compiler, ins); in sljit_emit_op_custom()
2742 return push_inst(compiler, lgr(gpr(dst), fast_link_r)); in sljit_emit_fast_enter()
2785 PTR_FAIL_IF(push_inst(compiler, brasl(type == SLJIT_FAST_CALL ? fast_link_r : link_r, 0))); in sljit_emit_jump()
2787 PTR_FAIL_IF(push_inst(compiler, brcl(mask, 0))); in sljit_emit_jump()
2823 return push_inst(compiler, basr(type == SLJIT_FAST_CALL ? fast_link_r : link_r, src_r)); in sljit_emit_ijump()
2825 return push_inst(compiler, br(src_r)); in sljit_emit_ijump()
2878 FAIL_IF(push_inst(compiler, in sljit_emit_op_flags()
2890 FAIL_IF(push_inst(compiler, in sljit_emit_op_flags()
2894 FAIL_IF(push_inst(compiler, in sljit_emit_op_flags()
2898 FAIL_IF(push_inst(compiler, in sljit_emit_op_flags()
2929 return push_inst(compiler, in sljit_emit_cmov()
2968 PTR_FAIL_IF(push_inst(compiler, sljit_ins_const | lgrl(dst_r, 0))); in sljit_emit_const()
2970 PTR_FAIL_IF(push_inst(compiler, sljit_ins_const | larl(tmp1, 0))); in sljit_emit_const()
2971 PTR_FAIL_IF(push_inst(compiler, lg(dst_r, 0, r0, tmp1))); in sljit_emit_const()
3015 PTR_FAIL_IF(push_inst(compiler, lgrl(dst_r, 0))); in sljit_emit_put_label()
3017 PTR_FAIL_IF(push_inst(compiler, larl(tmp1, 0))); in sljit_emit_put_label()
3018 PTR_FAIL_IF(push_inst(compiler, lg(dst_r, 0, r0, tmp1))); in sljit_emit_put_label()