mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-08 15:34:09 +00:00
PPC64: Fix sradi machine code offsets
This commit is contained in:
parent
ac9193cfeb
commit
abac466f8b
@ -764,7 +764,7 @@ map_op = {
|
||||
lfddx_3 = "7c000646FRR",
|
||||
stvepx_3 = "7c00064eVRR",
|
||||
srawi_3 = "7c000670RR~A.",
|
||||
sradi_3 = "7c000674RR~H.",
|
||||
sradi_3 = "7c000674RR~f.",
|
||||
eieio_0 = "7c0006ac",
|
||||
lfiwax_3 = "7c0006aeFR0R",
|
||||
divdeuo_3 = "7c000712RRR.",
|
||||
@ -1718,7 +1718,12 @@ op_template = function(params, template, nparams)
|
||||
elseif p == "G" then
|
||||
op = op + parse_imm(params[n], 8, 12, 0, false); n = n + 1
|
||||
elseif p == "H" then
|
||||
op = op + parse_shiftmask(params[n], true); n = n + 1
|
||||
v = parse_imm(params[n], 6, 0, 0, false);
|
||||
op = op + shl(band(v,31), 11)+shl(shr(v,5), 1);
|
||||
n = n + 1;
|
||||
elseif p == "f" then
|
||||
v = tonumber(params[n]);
|
||||
op = op + shl(band(v,31), 11)+shl(shr(v,5), 1);
|
||||
elseif p == "M" then
|
||||
op = op + parse_shiftmask(params[n], false); n = n + 1
|
||||
elseif p == "J" or p == "K" then
|
||||
|
Loading…
Reference in New Issue
Block a user