PPC64: Fix sradi machine code offsets

This commit is contained in:
Gustavo Serra Scalet 2015-06-02 14:36:20 -03:00 committed by Gustavo Serra Scalet
parent ac9193cfeb
commit abac466f8b

View File

@ -764,7 +764,7 @@ map_op = {
lfddx_3 = "7c000646FRR", lfddx_3 = "7c000646FRR",
stvepx_3 = "7c00064eVRR", stvepx_3 = "7c00064eVRR",
srawi_3 = "7c000670RR~A.", srawi_3 = "7c000670RR~A.",
sradi_3 = "7c000674RR~H.", sradi_3 = "7c000674RR~f.",
eieio_0 = "7c0006ac", eieio_0 = "7c0006ac",
lfiwax_3 = "7c0006aeFR0R", lfiwax_3 = "7c0006aeFR0R",
divdeuo_3 = "7c000712RRR.", divdeuo_3 = "7c000712RRR.",
@ -1718,7 +1718,12 @@ op_template = function(params, template, nparams)
elseif p == "G" then elseif p == "G" then
op = op + parse_imm(params[n], 8, 12, 0, false); n = n + 1 op = op + parse_imm(params[n], 8, 12, 0, false); n = n + 1
elseif p == "H" then 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 elseif p == "M" then
op = op + parse_shiftmask(params[n], false); n = n + 1 op = op + parse_shiftmask(params[n], false); n = n + 1
elseif p == "J" or p == "K" then elseif p == "J" or p == "K" then