Lines Matching refs:expr
249 local function parse_reg(expr)
250 if not expr then werror("expected register name") end
251 local tname, ovreg = match(expr, "^([%w_]+):(@?%l%d+)$")
252 local tp = map_type[tname or expr]
256 werror("type `"..(tname or expr).."' needs a register override")
258 expr = reg
260 local ok31, rt, r = match(expr, "^(@?)([xwqdshb])([123]?[0-9])$")
272 werror("bad register name `"..expr.."'")
275 local function parse_reg_base(expr)
276 if expr == "sp" then return 0x3e0 end
277 local base, tp = parse_reg(expr)
429 local function parse_shift(expr)
430 local s, s2 = match(expr, "^(%S+)%s*(.*)$")
436 local function parse_lslx16(expr)
437 local n = match(expr, "^lsl%s*#(%d+)$")
446 local function parse_extend(expr)
447 local s, s2 = match(expr, "^(%S+)%s*(.*)$")
457 local function parse_cond(expr, inv)
458 local c = map_cond[expr]