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

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

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

revision 1194 by zherczeg, Sun Oct 28 05:22:32 2012 UTC revision 1195 by zherczeg, Thu Nov 1 15:21:27 2012 UTC
# Line 26  Line 26 
26    
27  /* mips 32-bit arch dependent functions. */  /* mips 32-bit arch dependent functions. */
28    
29  static int load_immediate(struct sljit_compiler *compiler, int dst_ar, sljit_w imm)  static sljit_si load_immediate(struct sljit_compiler *compiler, sljit_si dst_ar, sljit_sw imm)
30  {  {
31          if (!(imm & ~0xffff))          if (!(imm & ~0xffff))
32                  return push_inst(compiler, ORI | SA(0) | TA(dst_ar) | IMM(imm), dst_ar);                  return push_inst(compiler, ORI | SA(0) | TA(dst_ar) | IMM(imm), dst_ar);
# Line 66  static int load_immediate(struct sljit_c Line 66  static int load_immediate(struct sljit_c
66                          FAIL_IF(push_inst(compiler, op_norm | S(src2) | T(src1) | D(dst), DR(dst))); \                          FAIL_IF(push_inst(compiler, op_norm | S(src2) | T(src1) | D(dst), DR(dst))); \
67          }          }
68    
69  static SLJIT_INLINE int emit_single_op(struct sljit_compiler *compiler, int op, int flags,  static SLJIT_INLINE sljit_si emit_single_op(struct sljit_compiler *compiler, sljit_si op, sljit_si flags,
70          int dst, int src1, sljit_w src2)          sljit_si dst, sljit_si src1, sljit_sw src2)
71  {  {
72          int overflow_ra = 0;          sljit_si overflow_ra = 0;
73    
74          switch (GET_OPCODE(op)) {          switch (GET_OPCODE(op)) {
75          case SLJIT_MOV:          case SLJIT_MOV:
# Line 379  static SLJIT_INLINE int emit_single_op(s Line 379  static SLJIT_INLINE int emit_single_op(s
379          return SLJIT_SUCCESS;          return SLJIT_SUCCESS;
380  }  }
381    
382  static SLJIT_INLINE int emit_const(struct sljit_compiler *compiler, int dst, sljit_w init_value)  static SLJIT_INLINE sljit_si emit_const(struct sljit_compiler *compiler, sljit_si dst, sljit_sw init_value)
383  {  {
384          FAIL_IF(push_inst(compiler, LUI | T(dst) | IMM(init_value >> 16), DR(dst)));          FAIL_IF(push_inst(compiler, LUI | T(dst) | IMM(init_value >> 16), DR(dst)));
385          return push_inst(compiler, ORI | S(dst) | T(dst) | IMM(init_value), DR(dst));          return push_inst(compiler, ORI | S(dst) | T(dst) | IMM(init_value), DR(dst));
# Line 394  SLJIT_API_FUNC_ATTRIBUTE void sljit_set_ Line 394  SLJIT_API_FUNC_ATTRIBUTE void sljit_set_
394          SLJIT_CACHE_FLUSH(inst, inst + 2);          SLJIT_CACHE_FLUSH(inst, inst + 2);
395  }  }
396    
397  SLJIT_API_FUNC_ATTRIBUTE void sljit_set_const(sljit_uw addr, sljit_w new_constant)  SLJIT_API_FUNC_ATTRIBUTE void sljit_set_const(sljit_uw addr, sljit_sw new_constant)
398  {  {
399          sljit_ins *inst = (sljit_ins*)addr;          sljit_ins *inst = (sljit_ins*)addr;
400    

Legend:
Removed from v.1194  
changed lines
  Added in v.1195

  ViewVC Help
Powered by ViewVC 1.1.5