Home
last modified time | relevance | path

Searched refs:REG_MASK (Results 1 – 11 of 11) sorted by relevance

/external/pcre/dist/sljit/
DsljitNativeX86_64.c393 if (b & REG_MASK) in emit_x86_instruction()
398 else if (reg_lmap[b & REG_MASK] == 4) in emit_x86_instruction()
402 if ((b & REG_MASK) == SLJIT_UNUSED) in emit_x86_instruction()
405 if (reg_map[b & REG_MASK] >= 8) in emit_x86_instruction()
415 else if (reg_lmap[b & REG_MASK] == 5) in emit_x86_instruction()
499 else if ((b & REG_MASK) != SLJIT_UNUSED) { in emit_x86_instruction()
501 if (immb != 0 || reg_lmap[b & REG_MASK] == 5) { in emit_x86_instruction()
509 *buf_ptr++ |= reg_lmap[b & REG_MASK]; in emit_x86_instruction()
512 *buf_ptr++ = reg_lmap[b & REG_MASK] | (reg_lmap[OFFS_REG(b)] << 3); in emit_x86_instruction()
515 if (immb != 0 || reg_lmap[b & REG_MASK] == 5) { in emit_x86_instruction()
[all …]
DsljitLir.c100 #define REG_MASK 0x3f macro
101 #define OFFS_REG(reg) (((reg) >> 8) & REG_MASK)
102 #define OFFS_REG_MASK (REG_MASK << 8)
105 #define FAST_IS_REG(reg) ((reg) <= REG_MASK)
107 #define SLOW_IS_REG(reg) ((reg) > 0 && (reg) <= REG_MASK)
624 (((exp) & SLJIT_MEM) && (((exp) & REG_MASK) == reg || OFFS_REG(exp) == reg))
713 CHECK_ARGUMENT(FUNCTION_CHECK_IS_REG_OR_UNUSED((p) & REG_MASK)); \
714 CHECK_NOT_VIRTUAL_REGISTER((p) & REG_MASK); \
716 CHECK_ARGUMENT(((p) & REG_MASK) != SLJIT_UNUSED); \
721 CHECK_ARGUMENT(!((p) & ~(SLJIT_MEM | SLJIT_IMM | REG_MASK | OFFS_REG_MASK))); \
[all …]
DsljitNativeARM_32.c1361 if (!(arg & REG_MASK)) in getput_arg_fast()
1370 …F(push_inst(compiler, EMIT_DATA_TRANSFER(inp_flags, 1, inp_flags & WRITE_BACK, reg, arg & REG_MASK, in getput_arg_fast()
1379 …st(compiler, EMIT_DATA_TRANSFER(inp_flags, 1, inp_flags & WRITE_BACK, reg, arg & REG_MASK, argw))); in getput_arg_fast()
1385 …t(compiler, EMIT_DATA_TRANSFER(inp_flags, 0, inp_flags & WRITE_BACK, reg, arg & REG_MASK, -argw))); in getput_arg_fast()
1393 …er, EMIT_DATA_TRANSFER(inp_flags, 1, inp_flags & WRITE_BACK, reg, arg & REG_MASK, TYPE2_TRANSFER_I… in getput_arg_fast()
1400 …er, EMIT_DATA_TRANSFER(inp_flags, 0, inp_flags & WRITE_BACK, reg, arg & REG_MASK, TYPE2_TRANSFER_I… in getput_arg_fast()
1421 if (!(arg & REG_MASK)) { in can_cache()
1448 tmp_r = arg & REG_MASK; \
1476 if ((arg & REG_MASK) == SLJIT_UNUSED) { in getput_arg()
1512 tmp_r = arg & REG_MASK; in getput_arg()
[all …]
DsljitNativeX86_32.c308 if ((b & REG_MASK) == SLJIT_UNUSED) in emit_x86_instruction()
318 if ((b & REG_MASK) == SLJIT_SP && !(b & OFFS_REG_MASK)) in emit_x86_instruction()
389 else if ((b & REG_MASK) != SLJIT_UNUSED) { in emit_x86_instruction()
399 *buf_ptr++ |= reg_map[b & REG_MASK]; in emit_x86_instruction()
402 *buf_ptr++ = reg_map[b & REG_MASK] | (reg_map[OFFS_REG(b)] << 3); in emit_x86_instruction()
416 *buf_ptr++ = reg_map[b & REG_MASK] | (reg_map[OFFS_REG(b)] << 3) | (immb << 6); in emit_x86_instruction()
DsljitNativePPC_common.c860 …FAIL_IF(push_inst(compiler, INST_CODE_AND_DST(inst, inp_flags, reg) | A(arg & REG_MASK) | B(OFFS_R… in getput_arg_fast()
864 if (SLJIT_UNLIKELY(!(arg & REG_MASK))) in getput_arg_fast()
869 SLJIT_ASSERT((arg & REG_MASK) || !(inst & UPDATE_REQ)); in getput_arg_fast()
887 …FAIL_IF(push_inst(compiler, INST_CODE_AND_DST(inst, inp_flags, reg) | A(arg & REG_MASK) | IMM(argw… in getput_arg_fast()
922 if (!(arg & REG_MASK)) in can_cache()
956 if ((arg & REG_MASK) == tmp_r) in getput_arg()
980 …return push_inst(compiler, INST_CODE_AND_DST(inst, inp_flags, reg) | A(arg & REG_MASK) | B(tmp_r)); in getput_arg()
983 if (SLJIT_UNLIKELY(!(arg & REG_MASK))) in getput_arg()
987 SLJIT_ASSERT((arg & REG_MASK) || !(inst & UPDATE_REQ)); in getput_arg()
994 arg &= REG_MASK; in getput_arg()
[all …]
DsljitNativeARM_64.c835 if ((arg & REG_MASK) && !(arg & OFFS_REG_MASK) && argw <= 255 && argw >= -256) { in getput_arg_fast()
839 arg &= REG_MASK; in getput_arg_fast()
857 | RN(arg & REG_MASK) | RM(OFFS_REG(arg)) | (argw ? (1 << 12) : 0))); in getput_arg_fast()
861 arg &= REG_MASK; in getput_arg_fast()
891 if (!(arg & REG_MASK)) { in can_cache()
924 if (SLJIT_UNLIKELY((flags & UPDATE) && (arg & REG_MASK))) { in getput_arg()
928 other_r = arg & REG_MASK; in getput_arg()
968 arg &= REG_MASK; in getput_arg()
985 arg &= REG_MASK; in getput_arg()
1002 …FAIL_IF(push_inst(compiler, ADDI | (1 << 22) | RD(tmp_r) | RN(arg & REG_MASK) | ((argw >> 12) << 1… in getput_arg()
[all …]
DsljitNativeARM_T2_32.c898 if ((arg & REG_MASK) && !(arg & OFFS_REG_MASK) && argw <= 0xff && argw >= -0xff) { in getput_arg_fast()
932 if (!(arg & REG_MASK) || argw > 0xfff || argw < -0xff) in getput_arg_fast()
984 if (!(arg & REG_MASK)) { in can_cache()
1016 if (SLJIT_UNLIKELY((flags & UPDATE) && (arg & REG_MASK))) { in getput_arg()
1075 next_arg = (arg & REG_MASK) && (arg == next_arg) && (argw != next_argw); in getput_arg()
1575 …FAIL_IF(push_inst32(compiler, ADD_W | RD4(TMP_REG2) | RN4(arg & REG_MASK) | RM4(OFFS_REG(arg)) | (… in emit_fop_mem()
1580 if ((arg & REG_MASK) && (argw & 0x3) == 0) { in emit_fop_mem()
1582 return push_inst32(compiler, inst | 0x800000 | RN4(arg & REG_MASK) | DD4(reg) | (argw >> 2)); in emit_fop_mem()
1584 return push_inst32(compiler, inst | RN4(arg & REG_MASK) | DD4(reg) | (-argw >> 2)); in emit_fop_mem()
1602 if (arg & REG_MASK) { in emit_fop_mem()
[all …]
DsljitNativeX86_common.c967 if ((dst & REG_MASK) == SLJIT_R0) { in emit_mov_byte()
976 else if ((dst & REG_MASK) == SLJIT_R1) in emit_mov_byte()
1190 if ((dst & REG_MASK) != SLJIT_R0 && (dst & OFFS_REG_MASK) != TO_OFFS_REG(SLJIT_R0)) in emit_clz()
1192 else if ((dst & REG_MASK) != SLJIT_R1 && (dst & OFFS_REG_MASK) != TO_OFFS_REG(SLJIT_R1)) in emit_clz()
1341 …if (SLJIT_UNLIKELY(update) && (src & SLJIT_MEM) && !src_is_ereg && (src & REG_MASK) && (srcw != 0 … in sljit_emit_op1()
1342 inst = emit_x86_instruction(compiler, 1, src & REG_MASK, 0, src, srcw); in sljit_emit_op1()
1392 …if (SLJIT_UNLIKELY(update) && (dst & SLJIT_MEM) && (dst & REG_MASK) && (dstw != 0 || (dst & OFFS_R… in sljit_emit_op1()
1393 inst = emit_x86_instruction(compiler, 1, dst & REG_MASK, 0, dst, dstw); in sljit_emit_op1()
DsljitNativeSPARC_common.c513 if (!(flags & WRITE_BACK) || !(arg & REG_MASK)) { in getput_arg_fast()
521 | S1(arg & REG_MASK) | ((arg & OFFS_REG_MASK) ? S2(OFFS_REG(arg)) : IMM(argw)), in getput_arg_fast()
563 base = arg & REG_MASK; in getput_arg()
DsljitNativeTILEGX_64.c1292 if ((!(flags & WRITE_BACK) || !(arg & REG_MASK)) in getput_arg_fast()
1298 FAIL_IF(ADDLI(ADDR_TMP_mapped, reg_map[arg & REG_MASK], argw)); in getput_arg_fast()
1355 base = arg & REG_MASK; in getput_arg()
DsljitNativeMIPS_common.c705 …if ((!(flags & WRITE_BACK) || !(arg & REG_MASK)) && !(arg & OFFS_REG_MASK) && argw <= SIMM_MAX && … in getput_arg_fast()
709 FAIL_IF(push_inst(compiler, data_transfer_insts[flags & MEM_MASK] | S(arg & REG_MASK) in getput_arg_fast()
759 base = arg & REG_MASK; in getput_arg()