references/jcl/thirdparty/pcre/pcre-8.31/sljit/sljitNativePPC_32.c
/* ppc 32-bit arch dependent functions. */
ppc 32-bit arch dependent functions.
ppc 32 - bit arch dependent functions .
static int load_immediate(struct sljit_compiler *compiler, int reg, sljit_w imm)
{
	if (imm <= SIMM_MAX && imm >= SIMM_MIN)
		return push_inst(compiler, ADDI | D(reg) | A(0) | IMM(imm));
	if (!(imm & ~0xffff))
		return push_inst(compiler, ORI | S(ZERO_REG) | A(reg) | IMM(imm));
	FAIL_IF(push_inst(compiler, ADDIS | D(reg) | A(0) | IMM(imm >> 16)));
	return (imm & 0xffff) ? push_inst(compiler, ORI | S(reg) | A(reg) | IMM(imm)) : SLJIT_SUCCESS;
}
static int load_immediate ( struct sljit_compiler * compiler , int reg , sljit_w imm ) { if ( imm <= SIMM_MAX && imm >= SIMM_MIN ) return push_inst ( compiler , ADDI | D ( reg ) | A ( 0 ) | IMM ( imm ) ) ; if ( ! ( imm & ~ 0xffff ) ) return push_inst ( compiler , ORI | S ( ZERO_REG ) | A ( reg ) | IMM ( imm ) ) ; FAIL_IF ( push_inst ( compiler , ADDIS | D ( reg ) | A ( 0 ) | IMM ( imm >> 16 ) ) ) ; return ( imm & 0xffff ) ? push_inst ( compiler , ORI | S ( reg ) | A ( reg ) | IMM ( imm ) ) : SLJIT_SUCCESS ; }
ppc 32-bit arch dependent functions.
ppc 32 - bit arch dependent functions .