lua-l archive
[
Date Prev
][
Date Next
][
Thread Prev
][
Thread Next
] [
Date Index
] [
Thread Index
]
Subject
:
LuaJIT 2 bug with constants passed to IRCALL functions
From
: Erik Lindroos <gliptic@
...
>
Date
: Wed, 14 Jul 2010 12:40:28 +0200
Hi,
I found a bug in the JIT that happens when passing numeric constants to e.g. sinh. This happens only on x64, tested on Windows with VC++.
Here's a snippet that reproduces it:
local sum = 0
for i=1,100 do
sum = sum + math.sinh(2)
end
assert(math.abs(math.sinh(2)*100 - sum) < 0.1)
It appears the JIT fails to assign the constant to the xmm0 register in the call to sinh.
Regards,
Erik Lindroos
Follow-Ups
:
Re: LuaJIT 2 bug with constants passed to IRCALL functions
,
Mike Pall
Prev by Date:
Re: Multiple assignments to the same variable
Next by Date:
Re: Re: Multiple assignments to the same variable
Previous by thread:
Re: Luaproc
Next by thread:
Re: LuaJIT 2 bug with constants passed to IRCALL functions
Index(es):
Date
Thread