Merge pull request #1050 from Sonicadvance1/AArch64-sign-extend
Add sign extending aliases to the ARM64Emitter.
This commit is contained in:
commit
581c81ce1c
|
@ -1081,6 +1081,20 @@ void ARM64XEmitter::UBFM(ARM64Reg Rd, ARM64Reg Rn, u32 immr, u32 imms)
|
||||||
{
|
{
|
||||||
EncodeBitfieldMOVInst(2, Rd, Rn, immr, imms);
|
EncodeBitfieldMOVInst(2, Rd, Rn, immr, imms);
|
||||||
}
|
}
|
||||||
|
void ARM64XEmitter::SXTB(ARM64Reg Rd, ARM64Reg Rn)
|
||||||
|
{
|
||||||
|
SBFM(Rd, Rn, 0, 7);
|
||||||
|
}
|
||||||
|
void ARM64XEmitter::SXTH(ARM64Reg Rd, ARM64Reg Rn)
|
||||||
|
{
|
||||||
|
SBFM(Rd, Rn, 0, 15);
|
||||||
|
}
|
||||||
|
void ARM64XEmitter::SXTW(ARM64Reg Rd, ARM64Reg Rn)
|
||||||
|
{
|
||||||
|
_assert_msg_(DYNA_REC, Is64Bit(Rd), "%s requires 64bit register as destination", __FUNCTION__);
|
||||||
|
|
||||||
|
SBFM(Rd, Rn, 0, 31);
|
||||||
|
}
|
||||||
|
|
||||||
// Load Register (Literal)
|
// Load Register (Literal)
|
||||||
void ARM64XEmitter::LDR(ARM64Reg Rt, u32 imm)
|
void ARM64XEmitter::LDR(ARM64Reg Rt, u32 imm)
|
||||||
|
|
|
@ -477,6 +477,9 @@ public:
|
||||||
void BFM(ARM64Reg Rd, ARM64Reg Rn, u32 immr, u32 imms);
|
void BFM(ARM64Reg Rd, ARM64Reg Rn, u32 immr, u32 imms);
|
||||||
void SBFM(ARM64Reg Rd, ARM64Reg Rn, u32 immr, u32 imms);
|
void SBFM(ARM64Reg Rd, ARM64Reg Rn, u32 immr, u32 imms);
|
||||||
void UBFM(ARM64Reg Rd, ARM64Reg Rn, u32 immr, u32 imms);
|
void UBFM(ARM64Reg Rd, ARM64Reg Rn, u32 immr, u32 imms);
|
||||||
|
void SXTB(ARM64Reg Rd, ARM64Reg Rn);
|
||||||
|
void SXTH(ARM64Reg Rd, ARM64Reg Rn);
|
||||||
|
void SXTW(ARM64Reg Rd, ARM64Reg Rn);
|
||||||
|
|
||||||
// Load Register (Literal)
|
// Load Register (Literal)
|
||||||
void LDR(ARM64Reg Rt, u32 imm);
|
void LDR(ARM64Reg Rt, u32 imm);
|
||||||
|
|
Loading…
Reference in New Issue