mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-08 15:34:09 +00:00
Various cleanup of dasm_s390x.lua
- Fix syntax errors - Fix whitespace (use two-space indentation to match surrounding code)
This commit is contained in:
parent
7a49be07be
commit
0e3241180f
@ -1225,7 +1225,7 @@ local function parse_template(params, template, nparams, pos)
|
||||
local n,rs = 1,26
|
||||
|
||||
parse_reg_type = false
|
||||
-- Process each character. (if its RX-a==> 1st iteration gets R, 2nd==X and so on)
|
||||
-- Process each character.
|
||||
for p in gmatch(sub(template, 17), ".") do
|
||||
local pr1,pr2,pr3
|
||||
if p == "g" then
|
||||
@ -1235,11 +1235,10 @@ local function parse_template(params, template, nparams, pos)
|
||||
pr1,pr2=param[n],param[n+1]
|
||||
op = op + shl(parse_reg(pr1),4) + parse_reg(pr2)
|
||||
elseif p == "j" then
|
||||
op = op + shl(parse_reg(param[1],24) + shl(parse_reg(param[2],20) + shl(parse_reg(param[3]),16) + parse_number(param[4])
|
||||
-- assuming that the parameters are passes in order (R1,X2,B2,D) --only RX-a is satisfied
|
||||
|
||||
op = op + shl(parse_reg(param[1]),24) + shl(parse_reg(param[2]),20) + shl(parse_reg(param[3]),16) + parse_number(param[4])
|
||||
-- assuming that the parameters are passes in order (R1,X2,B2,D) --only RX-a is satisfied
|
||||
elseif p == "k" then
|
||||
op = op + shl(parse_reg(param[1],40) + shl(parse_reg(param[2],36) + shl(parse_reg(param[3]),32) + parse_number(param[4]) parse_number(param[5])
|
||||
op = op + shl(parse_reg(param[1]),40) + shl(parse_reg(param[2]),36) + shl(parse_reg(param[3]),32) + parse_number(param[4]) + parse_number(param[5])
|
||||
-- assuming params are passed as (R1,X2,B2,DL2,DH2)
|
||||
elseif p == "l" then
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user