diff options
author | Mike Pall <mike> | 2012-10-15 16:52:18 +0200 |
---|---|---|
committer | Mike Pall <mike> | 2012-10-15 16:52:18 +0200 |
commit | 894d2d6ef4bf50a7c355e49e4508de5d07edad2d (patch) | |
tree | 4c8310c35e62d6774e41134a9b9e8d28be13368c /dynasm/dasm_arm.lua | |
parent | 1447ee6520a09b180a0eeffa97d8a36302c61ab9 (diff) | |
download | luajit-894d2d6ef4bf50a7c355e49e4508de5d07edad2d.tar.gz luajit-894d2d6ef4bf50a7c355e49e4508de5d07edad2d.tar.bz2 luajit-894d2d6ef4bf50a7c355e49e4508de5d07edad2d.zip |
DynASM/ARM: Fix conditional VFP instruction encoding.
Diffstat (limited to '')
-rw-r--r-- | dynasm/dasm_arm.lua | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/dynasm/dasm_arm.lua b/dynasm/dasm_arm.lua index 11701691..8984aab2 100644 --- a/dynasm/dasm_arm.lua +++ b/dynasm/dasm_arm.lua | |||
@@ -1106,7 +1106,10 @@ function _M.mergemaps(map_coreop, map_def) | |||
1106 | local cv = map_cond[cc] | 1106 | local cv = map_cond[cc] |
1107 | if cv then | 1107 | if cv then |
1108 | local v = rawget(t, k1..k2) | 1108 | local v = rawget(t, k1..k2) |
1109 | if type(v) == "string" then return format("%x%s", cv, sub(v, 2)) end | 1109 | if type(v) == "string" then |
1110 | local scv = format("%x", cv) | ||
1111 | return gsub(scv..sub(v, 2), "|e", "|"..scv) | ||
1112 | end | ||
1110 | end | 1113 | end |
1111 | end }) | 1114 | end }) |
1112 | setmetatable(map_def, { __index = map_archdef }) | 1115 | setmetatable(map_def, { __index = map_archdef }) |