Lines Matching refs:reg
39 #define PUSH_SLDI_NEG(reg, shift) \ argument
40 push_inst(compiler, RLDICR | S(reg) | A(reg) | RLDI_SH(63 - shift) | RLDI_ME(shift))
42 static sljit_s32 load_immediate(struct sljit_compiler *compiler, sljit_s32 reg, sljit_sw imm) in load_immediate() argument
50 return push_inst(compiler, ADDI | D(reg) | A(0) | IMM(imm)); in load_immediate()
53 return push_inst(compiler, ORI | S(TMP_ZERO) | A(reg) | IMM(imm)); in load_immediate()
56 FAIL_IF(push_inst(compiler, ADDIS | D(reg) | A(0) | IMM(imm >> 16))); in load_immediate()
57 return (imm & 0xffff) ? push_inst(compiler, ORI | S(reg) | A(reg) | IMM(imm)) : SLJIT_SUCCESS; in load_immediate()
61 FAIL_IF(push_inst(compiler, ORIS | S(TMP_ZERO) | A(reg) | IMM(imm >> 16))); in load_immediate()
62 return (imm & 0xffff) ? push_inst(compiler, ORI | S(reg) | A(reg) | IMM(imm)) : SLJIT_SUCCESS; in load_immediate()
73 FAIL_IF(push_inst(compiler, ADDI | D(reg) | A(0) | (sljit_ins)(tmp >> 48))); in load_immediate()
75 return PUSH_SLDI_NEG(reg, shift); in load_immediate()
79 FAIL_IF(push_inst(compiler, ADDIS | D(reg) | A(0) | (sljit_ins)(tmp >> 48))); in load_immediate()
80 FAIL_IF(push_inst(compiler, ORI | S(reg) | A(reg) | IMM(tmp >> 32))); in load_immediate()
82 return PUSH_SLDI_NEG(reg, shift); in load_immediate()
90 FAIL_IF(push_inst(compiler, ADDI | D(reg) | A(0) | (sljit_ins)(tmp >> 48))); in load_immediate()
91 FAIL_IF(PUSH_SLDI_NEG(reg, shift)); in load_immediate()
92 return push_inst(compiler, ORI | S(reg) | A(reg) | (sljit_ins)tmp2); in load_immediate()
96 FAIL_IF(push_inst(compiler, ADDI | D(reg) | A(0) | IMM(tmp >> 48))); in load_immediate()
97 FAIL_IF(PUSH_SLDI_NEG(reg, shift)); in load_immediate()
98 FAIL_IF(push_inst(compiler, ORIS | S(reg) | A(reg) | (sljit_ins)(tmp2 >> 16))); in load_immediate()
99 return (imm & 0xffff) ? push_inst(compiler, ORI | S(reg) | A(reg) | IMM(tmp2)) : SLJIT_SUCCESS; in load_immediate()
106 FAIL_IF(push_inst(compiler, ADDI | D(reg) | A(0) | (sljit_ins)(tmp >> 48))); in load_immediate()
109 FAIL_IF(PUSH_SLDI_NEG(reg, shift)); in load_immediate()
110 FAIL_IF(push_inst(compiler, ORI | S(reg) | A(reg) | (sljit_ins)(tmp2 >> 48))); in load_immediate()
111 return PUSH_SLDI_NEG(reg, shift2); in load_immediate()
115 FAIL_IF(push_inst(compiler, ADDIS | D(reg) | A(0) | (sljit_ins)((sljit_uw)imm >> 48))); in load_immediate()
116 FAIL_IF(push_inst(compiler, ORI | S(reg) | A(reg) | IMM(imm >> 32))); in load_immediate()
117 FAIL_IF(PUSH_SLDI_NEG(reg, 31)); in load_immediate()
118 FAIL_IF(push_inst(compiler, ORIS | S(reg) | A(reg) | IMM(imm >> 16))); in load_immediate()
119 return push_inst(compiler, ORI | S(reg) | A(reg) | IMM(imm)); in load_immediate()
512 sljit_s32 reg = 0; in call_with_args() local
515 reg = *src & REG_MASK; in call_with_args()
531 if (arg_count != word_arg_count && arg_count == reg) { in call_with_args()
532 FAIL_IF(push_inst(compiler, OR | S(reg) | A(TMP_CALL_REG) | B(reg))); in call_with_args()
562 static SLJIT_INLINE sljit_s32 emit_const(struct sljit_compiler *compiler, sljit_s32 reg, sljit_sw i… in emit_const() argument
564 FAIL_IF(push_inst(compiler, ADDIS | D(reg) | A(0) | IMM(init_value >> 48))); in emit_const()
565 FAIL_IF(push_inst(compiler, ORI | S(reg) | A(reg) | IMM(init_value >> 32))); in emit_const()
566 FAIL_IF(push_inst(compiler, SLDI(32) | S(reg) | A(reg))); in emit_const()
567 FAIL_IF(push_inst(compiler, ORIS | S(reg) | A(reg) | IMM(init_value >> 16))); in emit_const()
568 return push_inst(compiler, ORI | S(reg) | A(reg) | IMM(init_value)); in emit_const()
692 sljit_s32 freg, sljit_s32 reg) in sljit_emit_fcopy() argument
695 CHECK(check_sljit_emit_fcopy(compiler, op, freg, reg)); in sljit_emit_fcopy()
698 …FAIL_IF(push_inst(compiler, ((op & SLJIT_32) ? STW : STD) | S(reg) | A(SLJIT_SP) | TMP_MEM_OFFSET)… in sljit_emit_fcopy()
703 return push_inst(compiler, ((op & SLJIT_32) ? LWZ : LD) | S(reg) | A(SLJIT_SP) | TMP_MEM_OFFSET); in sljit_emit_fcopy()