/PHP-7.2/ext/pcre/pcrelib/sljit/ |
H A D | sljitNativePPC_32.c | 31 if (imm <= SIMM_MAX && imm >= SIMM_MIN) in load_immediate() 32 return push_inst(compiler, ADDI | D(reg) | A(0) | IMM(imm)); in load_immediate() 34 if (!(imm & ~0xffff)) in load_immediate() 35 return push_inst(compiler, ORI | S(TMP_ZERO) | A(reg) | IMM(imm)); in load_immediate() 38 return (imm & 0xffff) ? push_inst(compiler, ORI | S(reg) | A(reg) | IMM(imm)) : SLJIT_SUCCESS; in load_immediate() 112 …h_inst(compiler, ADDIS | D(dst) | A(src1) | (((compiler->imm >> 16) & 0xffff) + ((compiler->imm >>… in emit_single_op() 226 compiler->imm &= 0x1f; in emit_single_op() 227 …ompiler, RLWINM | RC(flags) | S(src1) | A(dst) | (compiler->imm << 11) | ((31 - compiler->imm) << … in emit_single_op() 234 compiler->imm &= 0x1f; in emit_single_op() 235 …RLWINM | RC(flags) | S(src1) | A(dst) | (((32 - compiler->imm) & 0x1f) << 11) | (compiler->imm << … in emit_single_op() [all …]
|
H A D | sljitNativePPC_64.c | 51 if (imm <= SIMM_MAX && imm >= SIMM_MIN) in load_immediate() 54 if (!(imm & ~0xffff)) in load_immediate() 57 if (imm <= 0x7fffffffl && imm >= -0x80000000l) { in load_immediate() 63 tmp = (imm >= 0) ? imm : ~imm; in load_immediate() 67 tmp = (imm << shift); in load_immediate() 379 compiler->imm &= 0x1f; in emit_single_op() 382 compiler->imm &= 0x3f; in emit_single_op() 391 compiler->imm &= 0x1f; in emit_single_op() 394 compiler->imm &= 0x3f; in emit_single_op() 403 compiler->imm &= 0x1f; in emit_single_op() [all …]
|
H A D | sljitNativeARM_T2_32.c | 56 #define IMM3(imm) (imm << 6) argument 57 #define IMM8(imm) (imm) argument 78 (COPY_BITS(imm, 11, 26, 1) | COPY_BITS(imm, 8, 12, 3) | (imm & 0xff)) 212 COPY_BITS(imm, 12, 16, 4) | COPY_BITS(imm, 11, 26, 1) | COPY_BITS(imm, 8, 12, 3) | (imm & 0xff))); in emit_imm32_const() 526 COPY_BITS(imm, 12, 16, 4) | COPY_BITS(imm, 11, 26, 1) | COPY_BITS(imm, 8, 12, 3) | (imm & 0xff))); in load_immediate() 602 imm = get_imm(imm); in emit_op_imm() 611 imm = get_imm(imm); in emit_op_imm() 655 imm = get_imm(imm); in emit_op_imm() 663 imm = get_imm(imm); in emit_op_imm() 671 imm = get_imm(imm); in emit_op_imm() [all …]
|
H A D | sljitNativeARM_32.c | 890 (((imm) & 0xf) | (((imm) & 0xf0) << 4) | (1 << 22)) 1161 imm <<= 8; in get_imm() 1165 imm = (imm << 24) | (imm >> 8); in get_imm() 1170 imm <<= 8; in get_imm() 1175 imm <<= 4; in get_imm() 1180 imm <<= 2; in get_imm() 1204 imm = (imm << rol) | (imm >> (32 - rol)); in generate_int() 1213 imm = (imm << 8) | (imm >> 24); in generate_int() 1219 imm = (imm << rol) | (imm >> (32 - rol)); in generate_int() 1242 imm <<= 8; in generate_int() [all …]
|
H A D | sljitNativeARM_64.c | 389 if (len == 32 && (imm == 0 || imm == -1)) in logical_imm() 395 SLJIT_ASSERT((len == 32 && imm != 0 && imm != -1) in logical_imm() 429 if (~imm) in logical_imm() 592 imm = -imm; in emit_op_imm() 599 if (imm > 0 && imm <= 0xfff) { in emit_op_imm() 603 nimm = -imm; in emit_op_imm() 608 if (imm > 0 && imm <= 0xffffff && !(imm & 0xfff)) { in emit_op_imm() 616 if (imm > 0 && imm <= 0xffffff && !(flags & SET_FLAGS)) { in emit_op_imm() 646 imm &= 0x1f; in emit_op_imm() 650 imm &= 0x3f; in emit_op_imm() [all …]
|
H A D | sljitNativeMIPS_64.c | 37 if (!(imm & ~0xffff)) in load_immediate() 40 if (imm < 0 && imm >= SIMM_MIN) in load_immediate() 43 if (imm <= 0x7fffffffl && imm >= -0x80000000l) { in load_immediate() 45 …return (imm & 0xffff) ? push_inst(compiler, ORI | SA(dst_ar) | TA(dst_ar) | IMM(imm), dst_ar) : SL… in load_immediate() 49 uimm = imm; in load_immediate() 50 if (imm < 0) { in load_immediate() 51 uimm = ~imm; in load_immediate() 83 imm &= (1l << shift) - 1; in load_immediate() 84 if (!(imm & ~0xffff)) { in load_immediate() 89 …return !(imm & 0xffff) ? SLJIT_SUCCESS : push_inst(compiler, ORI | SA(dst_ar) | TA(dst_ar) | IMM(i… in load_immediate() [all …]
|
H A D | sljitNativeSPARC_32.c | 27 static sljit_s32 load_immediate(struct sljit_compiler *compiler, sljit_s32 dst, sljit_sw imm) in load_immediate() argument 29 if (imm <= SIMM_MAX && imm >= SIMM_MIN) in load_immediate() 30 return push_inst(compiler, OR | D(dst) | S1(0) | IMM(imm), DR(dst)); in load_immediate() 32 FAIL_IF(push_inst(compiler, SETHI | D(dst) | ((imm >> 10) & 0x3fffff), DR(dst))); in load_immediate() 33 …return (imm & 0x3ff) ? push_inst(compiler, OR | D(dst) | S1(dst) | IMM_ARG | (imm & 0x3ff), DR(dst… in load_immediate()
|
H A D | sljitNativeTILEGX_64.c | 42 #define IMM16(imm) ((imm) & 0xffff) argument 418 #define SHRUI(dst, srca, imm) \ argument 421 #define XORI(dst, srca, imm) \ argument 424 #define ORI(dst, srca, imm) \ argument 433 #define CMPLTUI(dst, srca, imm) \ argument 466 #define ADDI_SOLO(dest, srca, imm) \ argument 469 #define ADDLI_SOLO(dest, srca, imm) \ argument 1123 if (imm <= SIMM_16BIT_MAX && imm >= SIMM_16BIT_MIN) in load_immediate() 1124 return ADDLI(dst_ar, ZERO, imm); in load_immediate() 1126 if (imm <= SIMM_32BIT_MAX && imm >= SIMM_32BIT_MIN) { in load_immediate() [all …]
|
H A D | sljitNativePPC_common.c | 125 #define IMM(imm) ((imm) & 0xffff) argument 971 #define ADJUST_CACHED_IMM(imm) \ argument 976 imm &= ~0x3; \ 1562 compiler->imm = src2w & 0xffff; in sljit_emit_op2() 1566 compiler->imm = src1w & 0xffff; in sljit_emit_op2() 1613 compiler->imm = src2w; in sljit_emit_op2() 1685 compiler->imm = src2w; in sljit_emit_op2() 1689 compiler->imm = src1w; in sljit_emit_op2() 1704 compiler->imm = src2w; in sljit_emit_op2() 1708 compiler->imm = src1w; in sljit_emit_op2() [all …]
|
H A D | sljitNativeMIPS_32.c | 29 static sljit_s32 load_immediate(struct sljit_compiler *compiler, sljit_s32 dst_ar, sljit_sw imm) in load_immediate() argument 31 if (!(imm & ~0xffff)) in load_immediate() 32 return push_inst(compiler, ORI | SA(0) | TA(dst_ar) | IMM(imm), dst_ar); in load_immediate() 34 if (imm < 0 && imm >= SIMM_MIN) in load_immediate() 35 return push_inst(compiler, ADDIU | SA(0) | TA(dst_ar) | IMM(imm), dst_ar); in load_immediate() 37 FAIL_IF(push_inst(compiler, LUI | TA(dst_ar) | IMM(imm >> 16), dst_ar)); in load_immediate() 38 …return (imm & 0xffff) ? push_inst(compiler, ORI | SA(dst_ar) | TA(dst_ar) | IMM(imm), dst_ar) : SL… in load_immediate()
|
H A D | sljitNativeX86_64.c | 29 static sljit_s32 emit_load_imm64(struct sljit_compiler *compiler, sljit_s32 reg, sljit_sw imm) in emit_load_imm64() argument 38 sljit_unaligned_store_sw(inst, imm); in emit_load_imm64() 324 …jit_s32 emit_do_imm32(struct sljit_compiler *compiler, sljit_u8 rex, sljit_u8 opcode, sljit_sw imm) in emit_do_imm32() argument 335 sljit_unaligned_store_s32(inst, imm); in emit_do_imm32()
|
H A D | sljitNativeX86_32.c | 29 static sljit_s32 emit_do_imm(struct sljit_compiler *compiler, sljit_u8 opcode, sljit_sw imm) in emit_do_imm() argument 37 sljit_unaligned_store_sw(inst, imm); in emit_do_imm()
|
H A D | sljitLir.h | 365 sljit_sw imm; member
|
H A D | sljitNativeMIPS_common.c | 84 #define IMM(imm) ((imm) & 0xffff) argument 85 #define SH_IMM(imm) ((imm) << 6) argument
|
H A D | sljitNativeSPARC_common.c | 114 #define IMM(imm) (((imm) & 0x1fff) | IMM_ARG) argument
|