mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-08 15:34:09 +00:00
Removed the extra check in parse_reg
The extra check for register is currently ignored, and trying to see what value does the encode function return. Its still to be worked out, how this value is used later, after decoding.
This commit is contained in:
parent
cac5d4f2fb
commit
203006579f
@ -251,15 +251,7 @@ local parse_reg_type
|
|||||||
|
|
||||||
|
|
||||||
local function parse_gpr(expr)
|
local function parse_gpr(expr)
|
||||||
local tname, ovreg = match(expr, "^([%w_]+):(r[1-3]?[0-9])$")
|
-- assuming we get r0-r31 for now
|
||||||
local tp = map_type[tname or expr]
|
|
||||||
if tp then
|
|
||||||
local reg = ovreg or tp.reg
|
|
||||||
if not reg then
|
|
||||||
werror("type `"..(tname or expr).."' needs a register override")
|
|
||||||
end
|
|
||||||
expr = reg
|
|
||||||
end
|
|
||||||
local r = match(expr, "^r([1-3]?[0-9])$")
|
local r = match(expr, "^r([1-3]?[0-9])$")
|
||||||
if r then
|
if r then
|
||||||
r = tonumber(r)
|
r = tonumber(r)
|
||||||
|
Loading…
Reference in New Issue
Block a user