[pcre-dev] [Bug 2254] MIPS JIT tests fail

Top Page
Delete this message
Author: admin
Date:  
To: pcre-dev
Subject: [pcre-dev] [Bug 2254] MIPS JIT tests fail
https://bugs.exim.org/show_bug.cgi?id=2254

--- Comment #1 from James Cowgill <jcowgill+exim@???> ---
I think I know what the problem is.

The pcre2 jit code has some functions which return flags instead of a specific
value (eg anynewline). The bug is that the MIPS jit compiler uses the same
register for the zero flag as it does for the return address. When returning
from a "fast" function, the return address register is unconditionally
overwritten which will clobber the zero flag.

I've attached a simple fix which reserves an extra register for the zero flag
which seems to work. I don't think this is too bad because mips has a lot of
registers available anyway. While debugging this I added a test case to sljit's
testsuite which I've also attached (obviously this is not relevant to pcre2).

--
You are receiving this mail because:
You are on the CC list for the bug.