Add IR_TOI64.

This commit is contained in:
Mike Pall
2010-12-06 16:18:18 +01:00
parent f6c4e8d3d7
commit 159f51d811
5 changed files with 56 additions and 4 deletions

View File

@@ -219,7 +219,8 @@ span.irt_int, span.irt_i8, span.irt_u8, span.irt_i16, span.irt_u16 { color: #b04
local colorize, irtype
-- Lookup table to convert some literals into names.
-- Lookup tables to convert some literals into names.
local tointname = { [0] = "check", "index", "", "Z", "S", "T", }
local litname = {
["SLOAD "] = setmetatable({}, { __index = function(t, mode)
local s = ""
@@ -233,7 +234,8 @@ local litname = {
return s
end}),
["XLOAD "] = { [0] = "", "R", "U", "RU", },
["TOINT "] = { [0] = "check", "index", "", },
["TOINT "] = tointname,
["TOI64 "] = tointname,
["FLOAD "] = vmdef.irfield,
["FREF "] = vmdef.irfield,
["FPMATH"] = vmdef.irfpm,