references/jcl/thirdparty/pcre/pcre-8.31/sljit/sljitNativeMIPS_32.c
/* mips 32-bit arch dependent functions. */
mips 32-bit arch dependent functions.
mips 32 - bit arch dependent functions .
static int load_immediate(struct sljit_compiler *compiler, int dst_ar, sljit_w imm)
{
	if (!(imm & ~0xffff))
		return push_inst(compiler, ORI | SA(0) | TA(dst_ar) | IMM(imm), dst_ar);
	if (imm < 0 && imm >= SIMM_MIN)
		return push_inst(compiler, ADDIU | SA(0) | TA(dst_ar) | IMM(imm), dst_ar);
	FAIL_IF(push_inst(compiler, LUI | TA(dst_ar) | IMM(imm >> 16), dst_ar));
	return (imm & 0xffff) ? push_inst(compiler, ORI | SA(dst_ar) | TA(dst_ar) | IMM(imm), dst_ar) : SLJIT_SUCCESS;
}
static int load_immediate ( struct sljit_compiler * compiler , int dst_ar , sljit_w imm ) { if ( ! ( imm & ~ 0xffff ) ) return push_inst ( compiler , ORI | SA ( 0 ) | TA ( dst_ar ) | IMM ( imm ) , dst_ar ) ; if ( imm < 0 && imm >= SIMM_MIN ) return push_inst ( compiler , ADDIU | SA ( 0 ) | TA ( dst_ar ) | IMM ( imm ) , dst_ar ) ; FAIL_IF ( push_inst ( compiler , LUI | TA ( dst_ar ) | IMM ( imm >> 16 ) , dst_ar ) ) ; return ( imm & 0xffff ) ? push_inst ( compiler , ORI | SA ( dst_ar ) | TA ( dst_ar ) | IMM ( imm ) , dst_ar ) : SLJIT_SUCCESS ; }
mips 32-bit arch dependent functions.
mips 32 - bit arch dependent functions .