Lines Matching refs:reg
436 sljit_s32 reg; in generate_jump_or_mov_addr() local
463 reg = (flags & JUMP_MOV_ADDR) ? (sljit_s32)ins[0] : TMP_CALL_REG; in generate_jump_or_mov_addr()
466 ins[0] = ADDIS | D(reg) | A(0) | IMM(addr >> 16); in generate_jump_or_mov_addr()
467 ins[1] = ORI | S(reg) | A(reg) | IMM(addr); in generate_jump_or_mov_addr()
473 ins[0] = ADDIS | D(reg) | A(0) | IMM(addr >> 16); in generate_jump_or_mov_addr()
474 ins[1] = ORI | S(reg) | A(reg) | IMM(addr); in generate_jump_or_mov_addr()
480 ins[0] = ADDIS | D(reg) | A(0) | IMM(addr >> 32); in generate_jump_or_mov_addr()
481 ins[1] = ORI | S(reg) | A(reg) | IMM(addr >> 16); in generate_jump_or_mov_addr()
482 ins[2] = SLDI(16) | S(reg) | A(reg); in generate_jump_or_mov_addr()
483 ins[3] = ORI | S(reg) | A(reg) | IMM(addr); in generate_jump_or_mov_addr()
487 ins[0] = ADDIS | D(reg) | A(0) | IMM(addr >> 48); in generate_jump_or_mov_addr()
488 ins[1] = ORI | S(reg) | A(reg) | IMM(addr >> 32); in generate_jump_or_mov_addr()
489 ins[2] = SLDI(32) | S(reg) | A(reg); in generate_jump_or_mov_addr()
490 ins[3] = ORIS | S(reg) | A(reg) | IMM(addr >> 16); in generate_jump_or_mov_addr()
491 ins[4] = ORI | S(reg) | A(reg) | IMM(addr); in generate_jump_or_mov_addr()
822 static sljit_s32 emit_op_mem(struct sljit_compiler *compiler, sljit_s32 inp_flags, sljit_s32 reg,
1095 #define INST_CODE_AND_DST(inst, flags, reg) \ argument
1096 ((sljit_ins)(inst) | (sljit_ins)(((flags) & MEM_MASK) <= GPR_REG ? D(reg) : FD(reg)))
1099 #define INST_CODE_AND_DST(inst, flags, reg) \ argument
1100 …inst) & ~(sljit_ins)INT_ALIGNED) | (sljit_ins)(((flags) & MEM_MASK) <= GPR_REG ? D(reg) : FD(reg)))
1236 static sljit_s32 emit_op_mem(struct sljit_compiler *compiler, sljit_s32 inp_flags, sljit_s32 reg, in emit_op_mem() argument
1261 …return push_inst(compiler, INST_CODE_AND_DST(inst, inp_flags, reg) | A(arg & REG_MASK) | B(offs_re… in emit_op_mem()
1272 return push_inst(compiler, INST_CODE_AND_DST(inst, inp_flags, reg) | A(arg) | B(tmp_reg)); in emit_op_mem()
1277 return push_inst(compiler, INST_CODE_AND_DST(inst, inp_flags, reg) | A(arg) | IMM(argw)); in emit_op_mem()
1283 return push_inst(compiler, INST_CODE_AND_DST(inst, inp_flags, reg) | A(tmp_reg) | IMM(argw)); in emit_op_mem()
1290 return push_inst(compiler, INST_CODE_AND_DST(inst, inp_flags, reg) | A(arg) | B(tmp_reg)); in emit_op_mem()
2150 SLJIT_API_FUNC_ATTRIBUTE sljit_s32 sljit_get_register_index(sljit_s32 type, sljit_s32 reg) in sljit_get_register_index() argument
2152 CHECK_REG_INDEX(check_sljit_get_register_index(type, reg)); in sljit_get_register_index()
2155 return reg_map[reg]; in sljit_get_register_index()
2160 return freg_map[reg]; in sljit_get_register_index()
2643 sljit_s32 reg, invert; in sljit_emit_op_flags() local
2658 reg = (op < SLJIT_ADD && FAST_IS_REG(dst)) ? dst : TMP_REG2; in sljit_emit_op_flags()
2773 FAIL_IF(push_inst(compiler, (from_xer ? MFXER : MFCR) | D(reg))); in sljit_emit_op_flags()
2775 FAIL_IF(push_inst(compiler, RLWINM | S(reg) | A(reg) | RLWI_SH(1 + bit) | RLWI_MBE(31, 31))); in sljit_emit_op_flags()
2778 FAIL_IF(push_inst(compiler, XORI | S(reg) | A(reg) | 0x1)); in sljit_emit_op_flags()
2783 return emit_op_mem(compiler, input_flags, reg, dst, dstw, TMP_REG1); in sljit_emit_op_flags()
2910 sljit_s32 reg, in sljit_emit_mem() argument
2916 CHECK(check_sljit_emit_mem(compiler, type, reg, mem, memw)); in sljit_emit_mem()
2918 if (!(reg & REG_PAIR_MASK)) in sljit_emit_mem()
2919 return sljit_emit_mem_unaligned(compiler, type, reg, mem, memw); in sljit_emit_mem()
2963 if (!(type & SLJIT_MEM_STORE) && mem == REG_PAIR_FIRST(reg)) { in sljit_emit_mem()
2964 FAIL_IF(push_inst(compiler, inst | D(REG_PAIR_SECOND(reg)) | A(mem) | IMM(memw + SSIZE_OF(sw)))); in sljit_emit_mem()
2965 return push_inst(compiler, inst | D(REG_PAIR_FIRST(reg)) | A(mem) | IMM(memw)); in sljit_emit_mem()
2968 FAIL_IF(push_inst(compiler, inst | D(REG_PAIR_FIRST(reg)) | A(mem) | IMM(memw))); in sljit_emit_mem()
2969 return push_inst(compiler, inst | D(REG_PAIR_SECOND(reg)) | A(mem) | IMM(memw + SSIZE_OF(sw))); in sljit_emit_mem()
2975 sljit_s32 reg, in sljit_emit_mem_update() argument
2982 CHECK(check_sljit_emit_mem_update(compiler, type, reg, mem, memw)); in sljit_emit_mem_update()
3046 …FAIL_IF(push_inst(compiler, INST_CODE_AND_DST(inst, 0, reg) | A(mem & REG_MASK) | B(OFFS_REG(mem))… in sljit_emit_mem_update()
3062 FAIL_IF(push_inst(compiler, INST_CODE_AND_DST(inst, 0, reg) | A(mem & REG_MASK) | IMM(memw))); in sljit_emit_mem_update()
3066 return push_inst(compiler, EXTSB | S(reg) | A(reg)); in sljit_emit_mem_update()