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:
niravthakkar 2016-11-28 13:32:30 +05:30 committed by GitHub
parent cac5d4f2fb
commit 203006579f

View File

@ -251,15 +251,7 @@ local parse_reg_type
local function parse_gpr(expr)
local tname, ovreg = match(expr, "^([%w_]+):(r[1-3]?[0-9])$")
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
-- assuming we get r0-r31 for now
local r = match(expr, "^r([1-3]?[0-9])$")
if r then
r = tonumber(r)