[Pcre-svn] [679] code/trunk/sljit/sljitNativeARM_v5.c: Small…

Startseite
Nachricht löschen
Autor: Subversion repository
Datum:  
To: pcre-svn
Betreff: [Pcre-svn] [679] code/trunk/sljit/sljitNativeARM_v5.c: Small, ARM related fix in the JIT compiler
Revision: 679
          http://vcs.pcre.org/viewvc?view=rev&revision=679
Author:   zherczeg
Date:     2011-09-03 19:23:04 +0100 (Sat, 03 Sep 2011)


Log Message:
-----------
Small, ARM related fix in the JIT compiler

Modified Paths:
--------------
    code/trunk/sljit/sljitNativeARM_v5.c


Modified: code/trunk/sljit/sljitNativeARM_v5.c
===================================================================
--- code/trunk/sljit/sljitNativeARM_v5.c    2011-08-28 15:23:03 UTC (rev 678)
+++ code/trunk/sljit/sljitNativeARM_v5.c    2011-09-03 18:23:04 UTC (rev 679)
@@ -1581,6 +1581,12 @@
         return SLJIT_SUCCESS;
     }


+    if ((arg & 0xf) == tmp_r) {
+        compiler->cache_arg = SLJIT_IMM;
+        compiler->cache_argw = argw;
+        tmp_r = TMP_REG3;
+    }
+
     FAIL_IF(load_immediate(compiler, tmp_r, argw));
     EMIT_INSTRUCTION(EMIT_DATA_TRANSFER(inp_flags, 1, inp_flags & WRITE_BACK, reg, arg & 0xf, reg_map[tmp_r] | (max_delta & 0xf00 ? SRC2_IMM : 0)));
     return SLJIT_SUCCESS;