diff options
author | Mike Pall <mike> | 2010-12-31 01:00:54 +0100 |
---|---|---|
committer | Mike Pall <mike> | 2010-12-31 01:00:54 +0100 |
commit | 65b194a2f89eb315029724af56354bb527021192 (patch) | |
tree | d932b57effed9283029f49f8ec82b3182d615cc0 /lib | |
parent | dc4b82c33d04930bbc2e54673ebea41ffa3368fc (diff) | |
download | luajit-65b194a2f89eb315029724af56354bb527021192.tar.gz luajit-65b194a2f89eb315029724af56354bb527021192.tar.bz2 luajit-65b194a2f89eb315029724af56354bb527021192.zip |
Copy destination type for CONV from ir->t to op2, too.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/dump.lua | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/dump.lua b/lib/dump.lua index 34365360..39dc241d 100644 --- a/lib/dump.lua +++ b/lib/dump.lua | |||
@@ -238,9 +238,10 @@ local litname = { | |||
238 | ["XLOAD "] = { [0] = "", "R", "U", "RU", }, | 238 | ["XLOAD "] = { [0] = "", "R", "U", "RU", }, |
239 | ["CONV "] = setmetatable({}, { __index = function(t, mode) | 239 | ["CONV "] = setmetatable({}, { __index = function(t, mode) |
240 | local s = irtype[band(mode, 31)] | 240 | local s = irtype[band(mode, 31)] |
241 | if band(mode, 0x100) ~= 0 then s = s.." trunc" | 241 | s = irtype[band(shr(mode, 5), 31)].."."..s |
242 | elseif band(mode, 0x200) ~= 0 then s = s.." sext" end | 242 | if band(mode, 0x400) ~= 0 then s = s.." trunc" |
243 | local c = shr(mode, 10) | 243 | elseif band(mode, 0x800) ~= 0 then s = s.." sext" end |
244 | local c = shr(mode, 14) | ||
244 | if c == 2 then s = s.." index" elseif c == 3 then s = s.." check" end | 245 | if c == 2 then s = s.." index" elseif c == 3 then s = s.." check" end |
245 | t[mode] = s | 246 | t[mode] = s |
246 | return s | 247 | return s |