Currently, Macro::Assembler(Address dst, intprt_t src) on x64 uses an intermediate scratch register to store the 64-bit immediate.
But, if the value fits into 32-bits, we can also explicitly use the 32-bit immediate overload, which saves an instruction and a register use.
But, if the value fits into 32-bits, we can also explicitly use the 32-bit immediate overload, which saves an instruction and a register use.
- relates to
- 
                    JDK-8319406 x86: Shorter movptr(reg, imm) for 32-bit immediates -           
- Resolved
 
-         
- 
                    JDK-8255921 Use 'nop' to replace 'mov' when patching instructions -           
- Closed
 
-         
 
        