Lines Matching refs:reg
410 for _,reg in ipairs(reg_list) do
411 if reg == "" then
414 local name = map_reg_rev[reg]
415 local num = map_reg_num[reg]
416 local opsize = map_opsizename[map_reg_opsize[reg]]
532 local reg, vreg = 0, nil
534 reg = vex.v.reg
535 if not reg then werror("bad vex operand") end
536 if reg < 0 then reg = 0; vreg = vex.v.vreg end
539 wputb(tail + shl(bxor(reg, 15), 3) + vex.p)
585 local reg, xreg = t.reg, t.xreg
586 if reg and reg < 0 then reg = 0; vreg = t.vreg end
592 wputmodrm(3, s, reg)
601 if not reg then
643 if disp == 0 and band(reg, 7) ~= 5 then -- [ebp] -> [ebp+0] (in SIB, too)
652 if xreg or band(reg, 7) == 4 then
656 wputmodrm(t.xsc or 0, xreg or 4, reg) -- SIB.
660 wputmodrm(m or 2, s, reg) -- ModRM.
764 local reg = ovreg or tp.reg
765 local rnum = map_reg_num[reg]
769 if not map_reg_valid_base[reg] then
770 werror("bad base register override `"..(map_reg_rev[reg] or reg).."'")
772 return reg, rnum, tp
802 local reg, tailr = match(br, "^([@%w_:]+)%s*(.*)$")
803 reg, t.reg, tp = rtexpr(reg)
804 if not t.reg then
811 if t.reg == -1 then
819 if not map_reg_valid_index[reg] then
820 werror("bad index register `"..map_reg_rev[reg].."'")
823 t.xreg = t.reg
825 t.reg = nil
830 if not map_reg_valid_base[reg] then
831 werror("bad base register `"..map_reg_rev[reg].."'")
886 local reg, tailr = match(expr, "^([@%w_:]+)%s*(.*)$")
887 reg, t.reg, tp = rtexpr(reg)
888 if t.reg then
889 if t.reg == -1 then
896 t.opsize = map_reg_opsize[reg]
898 t.mode = t.reg == 0 and "fF" or "f"
900 if reg == "@w4" or (x64 and reg == "@d4") then
903 t.mode = t.reg == 0 and "rmR" or (reg == "@b1" and "rmC" or "rm")
905 t.needrex = map_reg_needrex[reg]
1912 addin = args[1]; opcode = opcode + (addin.reg % 8)
1915 addin = args[2]; opcode = opcode + (addin.reg % 8)
1920 s = addin.reg
1930 if t.reg and t.reg > 7 then rex = rex + 1 end
1964 if addin and addin.reg == -1 then
1968 if addin and addin.reg > 7 then rex = rex + 1 end
2007 local reg = a.reg
2008 if reg < 0 then
2012 wputb(shl(reg, 4))
2153 if a.reg == -1 then
2157 opcode = 0xb8 + band(a.reg, 7)
2159 rex = a.reg > 7 and 9 or 8
2306 local name, ctype, reg = params[1], params[2], params[3]
2314 if reg and not map_reg_valid_base[reg] then
2315 werror("bad base register `"..(map_reg_rev[reg] or reg).."'")
2324 reg = reg,
2339 local reg = tp.reg and map_reg_rev[tp.reg] or ""
2340 out:write(format(" %-20s %-20s %s\n", name, tp.ctype, reg))