mirror of
https://github.com/openjdk/jdk.git
synced 2026-05-11 14:11:36 +00:00
8255838: Use 32-bit immediate movslq in macro assembler if 64-bit value fits in 32 bits on x86_64
Reviewed-by: azeemj, kvn, redestad, thartmann
This commit is contained in:
parent
94ace035a5
commit
160759ceef
@ -714,8 +714,12 @@ void MacroAssembler::movptr(Register dst, ArrayAddress src) {
|
||||
|
||||
// src should NEVER be a real pointer. Use AddressLiteral for true pointers
|
||||
void MacroAssembler::movptr(Address dst, intptr_t src) {
|
||||
mov64(rscratch1, src);
|
||||
movq(dst, rscratch1);
|
||||
if (is_simm32(src)) {
|
||||
movptr(dst, checked_cast<int32_t>(src));
|
||||
} else {
|
||||
mov64(rscratch1, src);
|
||||
movq(dst, rscratch1);
|
||||
}
|
||||
}
|
||||
|
||||
// These are mostly for initializing NULL
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user