Home
last modified time | relevance | path

Searched refs:imm (Results 1 – 23 of 23) sorted by relevance

/PHP-8.0/ext/opcache/tests/jit/
H A Dbug81225_2.phpt18 …$e = $a + 2147483648; // 0x8000,0000 cannot encoded as imm field of lea r1, [r2 + imm]
19 …$f = $a + 78187493394; // 0x12,1234,5678 cannot encoded as imm field of lea r1, [r2 + imm]
28 … + (-2147483649); // 0xFFFF,FFFF,7FFF,FFFF cannot encoded as imm field of lea r1, [r2 + imm]
29 … + (-261458978401740); // 0xFFFF,1234,5678,1234 cannot encoded as imm field of lea r1, [r2 + imm]
39 …$f = $a - 2147483649; // 0x8000,0001 cannot encoded as imm field of lea r1, [r2 + imm]
40 …$g = $a - 78187493394; // 0x12,1234,5678 cannot encoded as imm field of lea r1, [r2 + imm]
49 … - (-2147483648); // 0xFFFF,FFFF,8000,0000 cannot encoded as imm field of lea r1, [r2 + imm]
50 … - (-2147483649); // 0xFFFF,FFFF,7FFF,FFFF cannot encoded as imm field of lea r1, [r2 + imm]
51 … - (-261458978401740); // 0xFFFF,1234,5678,1234 cannot encoded as imm field of lea r1, [r2 + imm]
/PHP-8.0/ext/pcre/pcre2lib/sljit/
H A DsljitNativePPC_32.c31 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 DsljitNativePPC_64.c48 if (imm <= SIMM_MAX && imm >= SIMM_MIN) in load_immediate()
51 if (!(imm & ~0xffff)) in load_immediate()
54 if (imm <= 0x7fffffffl && imm >= -0x80000000l) { in load_immediate()
60 tmp = (imm >= 0) ? imm : ~imm; in load_immediate()
64 tmp = (imm << shift); in load_immediate()
376 compiler->imm &= 0x1f; in emit_single_op()
379 compiler->imm &= 0x3f; in emit_single_op()
388 compiler->imm &= 0x1f; in emit_single_op()
391 compiler->imm &= 0x3f; in emit_single_op()
400 compiler->imm &= 0x1f; in emit_single_op()
[all …]
H A DsljitNativeARM_T2_32.c64 #define IMM3(imm) (imm << 6) argument
65 #define IMM8(imm) (imm) argument
86 (COPY_BITS(imm, 11, 26, 1) | COPY_BITS(imm, 8, 12, 3) | (imm & 0xff))
225 …| COPY_BITS(imm, 12, 16, 4) | COPY_BITS(imm, 11, 26, 1) | COPY_BITS(imm, 8, 12, 3) | (imm & 0xff))… in emit_imm32_const()
562 …| COPY_BITS(imm, 12, 16, 4) | COPY_BITS(imm, 11, 26, 1) | COPY_BITS(imm, 8, 12, 3) | (imm & 0xff))… in load_immediate()
638 imm = get_imm(imm); in emit_op_imm()
647 imm = get_imm(imm); in emit_op_imm()
691 imm = get_imm(imm); in emit_op_imm()
699 imm = get_imm(imm); in emit_op_imm()
707 imm = get_imm(imm); in emit_op_imm()
[all …]
H A DsljitNativeARM_32.c935 (((imm) & 0xf) | (((imm) & 0xf0) << 4) | (1 << 22))
1196 imm <<= 8; in get_imm()
1200 imm = (imm << 24) | (imm >> 8); in get_imm()
1205 imm <<= 8; in get_imm()
1210 imm <<= 4; in get_imm()
1215 imm <<= 2; in get_imm()
1239 imm = (imm << rol) | (imm >> (32 - rol)); in generate_int()
1248 imm = (imm << 8) | (imm >> 24); in generate_int()
1254 imm = (imm << rol) | (imm >> (32 - rol)); in generate_int()
1277 imm <<= 8; in generate_int()
[all …]
H A DsljitNativeARM_64.c448 if (len == 32 && (imm == 0 || imm == -1)) in logical_imm()
454 SLJIT_ASSERT((len == 32 && imm != 0 && imm != -1) in logical_imm()
490 if (~imm) in logical_imm()
653 imm = -imm; in emit_op_imm()
660 if (imm > 0 && imm <= 0xfff) { in emit_op_imm()
664 nimm = -imm; in emit_op_imm()
669 if (imm > 0 && imm <= 0xffffff && !(imm & 0xfff)) { in emit_op_imm()
677 if (imm > 0 && imm <= 0xffffff && !(flags & SET_FLAGS)) { in emit_op_imm()
707 imm &= 0x1f; in emit_op_imm()
711 imm &= 0x3f; in emit_op_imm()
[all …]
H A DsljitNativeMIPS_64.c37 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 DsljitNativeTILEGX_64.c42 #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 DsljitNativeSPARC_32.c27 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 DsljitNativePPC_common.c128 #define IMM(imm) ((imm) & 0xffff) argument
1369 compiler->imm = src2w & 0xffff; in sljit_emit_op2()
1373 compiler->imm = src1w & 0xffff; in sljit_emit_op2()
1396 compiler->imm = src2w & 0xffff; in sljit_emit_op2()
1400 compiler->imm = src1w & 0xffff; in sljit_emit_op2()
1420 compiler->imm = src2w; in sljit_emit_op2()
1492 compiler->imm = src2w; in sljit_emit_op2()
1496 compiler->imm = src1w; in sljit_emit_op2()
1511 compiler->imm = src2w; in sljit_emit_op2()
1515 compiler->imm = src1w; in sljit_emit_op2()
[all …]
H A DsljitNativeMIPS_32.c29 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 DsljitNativeX86_64.c29 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()
378 …jit_s32 emit_do_imm32(struct sljit_compiler *compiler, sljit_u8 rex, sljit_u8 opcode, sljit_sw imm) in emit_do_imm32() argument
389 sljit_unaligned_store_s32(inst, imm); in emit_do_imm32()
H A DsljitNativeX86_32.c29 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 DsljitLir.h439 sljit_sw imm; member
H A DsljitNativeMIPS_common.c114 #define IMM(imm) ((imm) & 0xffff) argument
115 #define SH_IMM(imm) ((imm) << 6) argument
H A DsljitNativeSPARC_common.c125 #define IMM(imm) (((imm) & 0x1fff) | IMM_ARG) argument
/PHP-8.0/ext/opcache/jit/dynasm/
H A Ddasm_arm.lua601 imm = match(imm, "^#(.*)$")
638 imm = match(imm, "^#(.*)$")
754 if imm then
769 if imm then
795 imm = match(imm, "^,%s*#(.*)$")
796 if imm then
853 if imm then
904 if not imm or shr(imm, 8) ~= 0 then
907 op = op + shl(band(imm, 0xf0), 12) + band(imm, 0x0f)
910 if not imm or shr(imm, 16) ~= 0 then
[all …]
H A Ddasm_arm64.lua306 imm = match(imm, "^#(.*)$")
308 local n = parse_number(imm)
328 imm = match(imm, "^#(.*)$")
330 local n = parse_number(imm)
339 waction("IMM12", 0, imm)
345 imm = match(imm, "^#(.*)$")
381 imm = match(imm, "^#(.*)$")
390 waction("IMM6", 0, imm)
406 waction("IMML", 0, imm)
412 imm = match(imm, "^#(.*)$")
[all …]
H A Ddasm_x86.lua431 imm = -imm-1
435 wputxb(imm)
751 if c == "-" then imm = -imm end
873 if imm then
874 imm = imm * map_opsizenum[t.opsize]
882 if imm >= 4294967168 and imm <= 4294967295 then imm = imm-4294967296 end
883 if imm >= -128 and imm <= 127 then m = m.."S" end
884 t.imm = imm
1898 local mode, imm = a.mode, a.imm
2157 local mode, imm = a.mode, a.imm
[all …]
H A Ddasm_mips.lua687 local function parse_imm(imm, bits, shift, scale, signed, action)
688 local n = tonumber(imm)
700 werror("out of range immediate `"..imm.."'")
701 elseif match(imm, "^[rf]([1-3]?[0-9])$") or
702 match(imm, "^([%w_]+):([rf][1-3]?[0-9])$") then
706 (signed and 32768 or 0)+shl(scale, 10)+shl(bits, 5)+shift, imm)
712 local imm, reg = match(disp, "^(.*)%(([%w_:]+)%)$")
713 if imm then
715 local extname = match(imm, "^extern%s+(%S+)$")
720 return r + parse_imm(imm, 16, 0, 0, true)
H A Ddasm_ppc.lua1539 local n = parse_number(imm)
1552 elseif match(imm, "^[rfv]([1-3]?[0-9])$") or
1553 match(imm, "^vs([1-6]?[0-9])$") or
1554 match(imm, "^([%w_]+):(r[1-3]?[0-9])$") then
1562 local function parse_shiftmask(imm, isshift)
1563 local n = parse_number(imm)
1571 elseif match(imm, "^r([1-3]?[0-9])$") or
1572 match(imm, "^([%w_]+):(r[1-3]?[0-9])$") then
1575 waction("IMMSH", isshift and 1 or 0, imm)
1582 if imm then
[all …]
/PHP-8.0/ext/opcache/jit/libudis86/
H A Ddecode.c712 uint8_t imm = inp_next(u); in decode_vex_immreg() local
716 decode_reg(u, opr, REGCLASS_XMM, mask & (imm >> 4), size); in decode_vex_immreg()
/PHP-8.0/ext/opcache/jit/
H A Dzend_jit_x86.dasc192 | mov reg, ((ptrdiff_t)addr) // 0x48 0xc7 0xc0 <imm-32-bit>
194 | mov64 reg, ((ptrdiff_t)addr) // 0x48 0xb8 <imm-64-bit>

Completed in 131 milliseconds