/[pcre]/code/trunk/sljit/sljitNativePPC_64.c
ViewVC logotype

Diff of /code/trunk/sljit/sljitNativePPC_64.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1455 by zherczeg, Thu Jan 30 06:10:21 2014 UTC revision 1456 by zherczeg, Fri Feb 28 09:25:37 2014 UTC
# Line 54  static sljit_si load_immediate(struct sl Line 54  static sljit_si load_immediate(struct sl
54          if (!(imm & ~0xffff))          if (!(imm & ~0xffff))
55                  return push_inst(compiler, ORI | S(TMP_ZERO) | A(reg) | IMM(imm));                  return push_inst(compiler, ORI | S(TMP_ZERO) | A(reg) | IMM(imm));
56    
57          if (imm <= SLJIT_W(0x7fffffff) && imm >= SLJIT_W(-0x80000000)) {          if (imm <= 0x7fffffffl && imm >= -0x80000000l) {
58                  FAIL_IF(push_inst(compiler, ADDIS | D(reg) | A(0) | IMM(imm >> 16)));                  FAIL_IF(push_inst(compiler, ADDIS | D(reg) | A(0) | IMM(imm >> 16)));
59                  return (imm & 0xffff) ? push_inst(compiler, ORI | S(reg) | A(reg) | IMM(imm)) : SLJIT_SUCCESS;                  return (imm & 0xffff) ? push_inst(compiler, ORI | S(reg) | A(reg) | IMM(imm)) : SLJIT_SUCCESS;
60          }          }

Legend:
Removed from v.1455  
changed lines
  Added in v.1456

  ViewVC Help
Powered by ViewVC 1.1.5