Subtraction of small constant integers optimized with OP_ADDI

This commit is contained in:
Roberto Ierusalimschy
2019-09-24 14:34:52 -03:00
parent 03cde80b58
commit 6ef366644f
4 changed files with 46 additions and 31 deletions

View File

@@ -82,7 +82,7 @@ assert(c.a == nil)
f()
assert(c.a == 3)
-- old test for limits for special instructions (now just a generic test)
-- old test for limits for special instructions
do
local i = 2
local p = 4 -- p == 2^i