[ABI] X86/X64 GP registers should use the real type (GpbLo, GpbHi, Gpw, Gpd, Gpq) and not just Gp (fixes #292)

This commit is contained in:
kobalicek
2021-01-26 01:30:59 +01:00
parent 0636dd316a
commit 6678143772
2 changed files with 72 additions and 72 deletions

View File

@@ -55,10 +55,10 @@ static void generateOpcodes(asmjit::x86::Emitter* e, bool useRex1 = false, bool
Gp gdB = useRex2 ? r9d : ebx;
Gp gdC = useRex2 ? r10d : ecx;
Gp gzA = useRex1 ? r8 : e->zax();
Gp gzB = useRex2 ? r9 : e->zbx();
Gp gzC = useRex2 ? r10 : e->zcx();
Gp gzD = useRex2 ? r11 : e->zdx();
Gp gzA = useRex1 ? r8.as<Gp>() : e->zax();
Gp gzB = useRex2 ? r9.as<Gp>() : e->zbx();
Gp gzC = useRex2 ? r10.as<Gp>() : e->zcx();
Gp gzD = useRex2 ? r11.as<Gp>() : e->zdx();
KReg kA = k1;
KReg kB = k2;