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

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

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

revision 1208 by zherczeg, Mon Nov 5 12:30:13 2012 UTC revision 1209 by zherczeg, Wed Nov 7 07:25:07 2012 UTC
# Line 1745  SLJIT_API_FUNC_ATTRIBUTE sljit_si sljit_ Line 1745  SLJIT_API_FUNC_ATTRIBUTE sljit_si sljit_
1745          return SLJIT_SUCCESS;          return SLJIT_SUCCESS;
1746  }  }
1747    
1748  SLJIT_API_FUNC_ATTRIBUTE sljit_si sljit_emit_cond_value(struct sljit_compiler *compiler, sljit_si op, sljit_si dst, sljit_sw dstw, sljit_si type)  SLJIT_API_FUNC_ATTRIBUTE sljit_si sljit_emit_op_flags(struct sljit_compiler *compiler, sljit_si op,
1749            sljit_si dst, sljit_sw dstw,
1750            sljit_si src, sljit_sw srcw,
1751            sljit_si type)
1752  {  {
1753          sljit_si sugg_dst_ar, dst_ar;          sljit_si sugg_dst_ar, dst_ar;
1754          sljit_si flags = GET_ALL_FLAGS(op);          sljit_si flags = GET_ALL_FLAGS(op);
1755    
1756          CHECK_ERROR();          CHECK_ERROR();
1757          check_sljit_emit_cond_value(compiler, op, dst, dstw, type);          check_sljit_emit_op_flags(compiler, op, dst, dstw, src, srcw, type);
1758          ADJUST_LOCAL_OFFSET(dst, dstw);          ADJUST_LOCAL_OFFSET(dst, dstw);
1759    
1760          if (dst == SLJIT_UNUSED)          if (dst == SLJIT_UNUSED)
# Line 1820  SLJIT_API_FUNC_ATTRIBUTE sljit_si sljit_ Line 1823  SLJIT_API_FUNC_ATTRIBUTE sljit_si sljit_
1823                  dst_ar = sugg_dst_ar;                  dst_ar = sugg_dst_ar;
1824          }          }
1825    
1826          if (op == SLJIT_AND || op == SLJIT_OR) {          if (op >= SLJIT_AND && op <= SLJIT_XOR) {
1827                  if (DR(TMP_REG2) != dst_ar)                  if (DR(TMP_REG2) != dst_ar)
1828                          FAIL_IF(push_inst(compiler, ADDU_W | SA(dst_ar) | TA(0) | D(TMP_REG2), DR(TMP_REG2)));                          FAIL_IF(push_inst(compiler, ADDU_W | SA(dst_ar) | TA(0) | D(TMP_REG2), DR(TMP_REG2)));
1829                  return emit_op(compiler, op | flags, CUMULATIVE_OP | LOGICAL_OP | IMM_OP, dst, dstw, dst, dstw, TMP_REG2, 0);                  return emit_op(compiler, op | flags, CUMULATIVE_OP | LOGICAL_OP | IMM_OP, dst, dstw, dst, dstw, TMP_REG2, 0);

Legend:
Removed from v.1208  
changed lines
  Added in v.1209

  ViewVC Help
Powered by ViewVC 1.1.5