From 203006579f28d0aa0a0108845fd589f44a00e164 Mon Sep 17 00:00:00 2001 From: niravthakkar Date: Mon, 28 Nov 2016 13:32:30 +0530 Subject: [PATCH] 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. --- dynasm/dasm_s390x.lua | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/dynasm/dasm_s390x.lua b/dynasm/dasm_s390x.lua index 76fe281e..340ad24c 100644 --- a/dynasm/dasm_s390x.lua +++ b/dynasm/dasm_s390x.lua @@ -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)