mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-07 15:14:08 +00:00
PPC: Add mtcrf instruction to DynASM.
This commit is contained in:
parent
28b98acd75
commit
5385809d30
@ -339,7 +339,8 @@ local map_op = {
|
|||||||
iselgt_3 = "7c00005eRRR",
|
iselgt_3 = "7c00005eRRR",
|
||||||
iseleq_3 = "7c00009eRRR",
|
iseleq_3 = "7c00009eRRR",
|
||||||
mfcr_1 = "7c000026R",
|
mfcr_1 = "7c000026R",
|
||||||
-- NYI: mtcrf, mtocrf, mfocrf
|
mtcrf_2 = "7c000120GR",
|
||||||
|
-- NYI: mtocrf, mfocrf
|
||||||
lwarx_3 = "7c000028RR0R",
|
lwarx_3 = "7c000028RR0R",
|
||||||
ldx_3 = "7c00002aRR0R",
|
ldx_3 = "7c00002aRR0R",
|
||||||
lwzx_3 = "7c00002eRR0R",
|
lwzx_3 = "7c00002eRR0R",
|
||||||
@ -1025,6 +1026,8 @@ map_op[".template__"] = function(params, template, nparams)
|
|||||||
rs = rs - 5; op = op + parse_cr(params[n]) * 2^(rs+2); n = n + 1
|
rs = rs - 5; op = op + parse_cr(params[n]) * 2^(rs+2); n = n + 1
|
||||||
elseif p == "W" then
|
elseif p == "W" then
|
||||||
op = op + parse_cr(params[n]); n = n + 1
|
op = op + parse_cr(params[n]); n = n + 1
|
||||||
|
elseif p == "G" then
|
||||||
|
op = op + parse_imm(params[n], 8, 12, 0, false); n = n + 1
|
||||||
elseif p == "J" or p == "K" then
|
elseif p == "J" or p == "K" then
|
||||||
local mode, n, s = parse_label(params[n], false)
|
local mode, n, s = parse_label(params[n], false)
|
||||||
if p == "K" then n = n + 2048 end
|
if p == "K" then n = n + 2048 end
|
||||||
|
Loading…
Reference in New Issue
Block a user