mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-14 21:37:52 -07:00
Arm64Emitter: Allow specifying 21th bit of ADRP imm
This commit is contained in:
parent
d226b8f825
commit
4e107935ac
@ -1998,9 +1998,9 @@ void ARM64XEmitter::ADR(ARM64Reg Rd, s32 imm)
|
||||
{
|
||||
EncodeAddressInst(0, Rd, imm);
|
||||
}
|
||||
void ARM64XEmitter::ADRP(ARM64Reg Rd, s32 imm)
|
||||
void ARM64XEmitter::ADRP(ARM64Reg Rd, s64 imm)
|
||||
{
|
||||
EncodeAddressInst(1, Rd, imm >> 12);
|
||||
EncodeAddressInst(1, Rd, static_cast<s32>(imm >> 12));
|
||||
}
|
||||
|
||||
// Wrapper around MOVZ+MOVK (and later MOVN)
|
||||
|
@ -862,7 +862,7 @@ public:
|
||||
|
||||
// Address of label/page PC-relative
|
||||
void ADR(ARM64Reg Rd, s32 imm);
|
||||
void ADRP(ARM64Reg Rd, s32 imm);
|
||||
void ADRP(ARM64Reg Rd, s64 imm);
|
||||
|
||||
// Wrapper around MOVZ+MOVK
|
||||
void MOVI2R(ARM64Reg Rd, u64 imm);
|
||||
|
Loading…
Reference in New Issue
Block a user