diff options
author | Mike Pall <mike> | 2011-05-22 17:41:59 +0200 |
---|---|---|
committer | Mike Pall <mike> | 2011-05-22 17:44:58 +0200 |
commit | 138f54352ad604ef50f77cbcc15abec6dbd883c0 (patch) | |
tree | f8ac2d3599cec2af1007da1c894847d3d0e2ff95 /lib | |
parent | d0115c65f5ad80af2a113332906a0c5a010f9812 (diff) | |
download | luajit-138f54352ad604ef50f77cbcc15abec6dbd883c0.tar.gz luajit-138f54352ad604ef50f77cbcc15abec6dbd883c0.tar.bz2 luajit-138f54352ad604ef50f77cbcc15abec6dbd883c0.zip |
Split up FP IR instructions with SPLIT pass for soft-float targets.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/dump.lua | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/dump.lua b/lib/dump.lua index 0f9f7b2b..a6b61f53 100644 --- a/lib/dump.lua +++ b/lib/dump.lua | |||
@@ -147,6 +147,7 @@ local irtype_text = { | |||
147 | "u32", | 147 | "u32", |
148 | "i64", | 148 | "i64", |
149 | "u64", | 149 | "u64", |
150 | "sfp", | ||
150 | } | 151 | } |
151 | 152 | ||
152 | local colortype_ansi = { | 153 | local colortype_ansi = { |
@@ -173,6 +174,7 @@ local colortype_ansi = { | |||
173 | "\027[35m%s\027[m", | 174 | "\027[35m%s\027[m", |
174 | "\027[35m%s\027[m", | 175 | "\027[35m%s\027[m", |
175 | "\027[35m%s\027[m", | 176 | "\027[35m%s\027[m", |
177 | "\027[35m%s\027[m", | ||
176 | } | 178 | } |
177 | 179 | ||
178 | local function colorize_text(s, t) | 180 | local function colorize_text(s, t) |
@@ -318,11 +320,11 @@ local function printsnap(tr, snap) | |||
318 | if ref < 0 then | 320 | if ref < 0 then |
319 | out:write(formatk(tr, ref)) | 321 | out:write(formatk(tr, ref)) |
320 | else | 322 | else |
321 | local m, ot, op1, op2 = traceir(tr, ref) | ||
322 | out:write(colorize(format("%04d", ref), band(ot, 31))) | ||
323 | if band(sn, 0x80000) ~= 0 then -- SNAP_SOFTFPNUM | 323 | if band(sn, 0x80000) ~= 0 then -- SNAP_SOFTFPNUM |
324 | local m, ot, op1, op2 = traceir(tr, ref+1) | 324 | out:write(colorize(format("%04d/%04d", ref, ref+1), 14)) |
325 | out:write(colorize(format("/%04d", ref+1), band(ot, 31))) | 325 | else |
326 | local m, ot, op1, op2 = traceir(tr, ref) | ||
327 | out:write(colorize(format("%04d", ref), band(ot, 31))) | ||
326 | end | 328 | end |
327 | end | 329 | end |
328 | out:write(band(sn, 0x10000) == 0 and " " or "|") -- SNAP_FRAME | 330 | out:write(band(sn, 0x10000) == 0 and " " or "|") -- SNAP_FRAME |