[Pcre-svn] [1281] code/trunk/src/sljit: JIT compiler update.

Páxina inicial
Borrar esta mensaxe
Autor: Subversion repository
Data:  
Para: pcre-svn
Asunto: [Pcre-svn] [1281] code/trunk/src/sljit: JIT compiler update.
Revision: 1281
          http://www.exim.org/viewvc/pcre2?view=rev&revision=1281
Author:   zherczeg
Date:     2020-11-03 13:20:09 +0000 (Tue, 03 Nov 2020)
Log Message:
-----------
JIT compiler update.


Modified Paths:
--------------
    code/trunk/src/sljit/sljitLir.c
    code/trunk/src/sljit/sljitNativeMIPS_common.c


Modified: code/trunk/src/sljit/sljitLir.c
===================================================================
--- code/trunk/src/sljit/sljitLir.c    2020-10-27 08:16:04 UTC (rev 1280)
+++ code/trunk/src/sljit/sljitLir.c    2020-11-03 13:20:09 UTC (rev 1281)
@@ -2043,7 +2043,7 @@
 #if (defined SLJIT_CONFIG_X86 && SLJIT_CONFIG_X86) \
         || (defined SLJIT_CONFIG_PPC && SLJIT_CONFIG_PPC) \
         || (defined SLJIT_CONFIG_SPARC_32 && SLJIT_CONFIG_SPARC_32) \
-        || ((defined SLJIT_CONFIG_MIPS && SLJIT_CONFIG_MIPS) && !(defined SLJIT_MIPS_REV && SLJIT_MIPS_REV >= 1))
+        || ((defined SLJIT_CONFIG_MIPS && SLJIT_CONFIG_MIPS) && !(defined SLJIT_MIPS_REV && SLJIT_MIPS_REV >= 1 && SLJIT_MIPS_REV < 6))


 static SLJIT_INLINE sljit_s32 sljit_emit_cmov_generic(struct sljit_compiler *compiler, sljit_s32 type,
     sljit_s32 dst_reg,


Modified: code/trunk/src/sljit/sljitNativeMIPS_common.c
===================================================================
--- code/trunk/src/sljit/sljitNativeMIPS_common.c    2020-10-27 08:16:04 UTC (rev 1280)
+++ code/trunk/src/sljit/sljitNativeMIPS_common.c    2020-11-03 13:20:09 UTC (rev 1281)
@@ -2186,14 +2186,14 @@
     sljit_s32 dst_reg,
     sljit_s32 src, sljit_sw srcw)
 {
-#if (defined SLJIT_MIPS_REV && SLJIT_MIPS_REV >= 1)
+#if (defined SLJIT_MIPS_REV && SLJIT_MIPS_REV >= 1 && SLJIT_MIPS_REV < 6)
     sljit_ins ins;
-#endif /* SLJIT_MIPS_REV >= 1 */
+#endif /* SLJIT_MIPS_REV >= 1 && SLJIT_MIPS_REV < 6 */


     CHECK_ERROR();
     CHECK(check_sljit_emit_cmov(compiler, type, dst_reg, src, srcw));


-#if (defined SLJIT_MIPS_REV && SLJIT_MIPS_REV >= 1)
+#if (defined SLJIT_MIPS_REV && SLJIT_MIPS_REV >= 1 && SLJIT_MIPS_REV < 6)

     if (SLJIT_UNLIKELY(src & SLJIT_IMM)) {
 #if (defined SLJIT_CONFIG_MIPS_64 && SLJIT_CONFIG_MIPS_64)
@@ -2250,7 +2250,7 @@


     return push_inst(compiler, ins | S(src) | D(dst_reg), DR(dst_reg));


-#else /* SLJIT_MIPS_REV < 1 */
+#else /* SLJIT_MIPS_REV < 1 || SLJIT_MIPS_REV >= 6 */
     return sljit_emit_cmov_generic(compiler, type, dst_reg, src, srcw);
 #endif /* SLJIT_MIPS_REV >= 1 */
 }