src/hotspot/cpu/aarch64/macroAssembler_aarch64.cpp
changeset 51970 7cbb77546f87
parent 51866 703813b05838
child 52408 04cbcebf5adf
equal deleted inserted replaced
51968:5bdf60cd0ed0 51970:7cbb77546f87
  1503 // reach anywhere.
  1503 // reach anywhere.
  1504 void MacroAssembler::movptr(Register r, uintptr_t imm64) {
  1504 void MacroAssembler::movptr(Register r, uintptr_t imm64) {
  1505 #ifndef PRODUCT
  1505 #ifndef PRODUCT
  1506   {
  1506   {
  1507     char buffer[64];
  1507     char buffer[64];
  1508     snprintf(buffer, sizeof(buffer), "0x%"PRIX64, imm64);
  1508     snprintf(buffer, sizeof(buffer), "0x%" PRIX64, imm64);
  1509     block_comment(buffer);
  1509     block_comment(buffer);
  1510   }
  1510   }
  1511 #endif
  1511 #endif
  1512   assert(imm64 < (1ul << 48), "48-bit overflow in address constant");
  1512   assert(imm64 < (1ul << 48), "48-bit overflow in address constant");
  1513   movz(r, imm64 & 0xffff);
  1513   movz(r, imm64 & 0xffff);
  1566 void MacroAssembler::mov_immediate64(Register dst, u_int64_t imm64)
  1566 void MacroAssembler::mov_immediate64(Register dst, u_int64_t imm64)
  1567 {
  1567 {
  1568 #ifndef PRODUCT
  1568 #ifndef PRODUCT
  1569   {
  1569   {
  1570     char buffer[64];
  1570     char buffer[64];
  1571     snprintf(buffer, sizeof(buffer), "0x%"PRIX64, imm64);
  1571     snprintf(buffer, sizeof(buffer), "0x%" PRIX64, imm64);
  1572     block_comment(buffer);
  1572     block_comment(buffer);
  1573   }
  1573   }
  1574 #endif
  1574 #endif
  1575   if (operand_valid_for_logical_immediate(false, imm64)) {
  1575   if (operand_valid_for_logical_immediate(false, imm64)) {
  1576     orr(dst, zr, imm64);
  1576     orr(dst, zr, imm64);
  1679 void MacroAssembler::mov_immediate32(Register dst, u_int32_t imm32)
  1679 void MacroAssembler::mov_immediate32(Register dst, u_int32_t imm32)
  1680 {
  1680 {
  1681 #ifndef PRODUCT
  1681 #ifndef PRODUCT
  1682     {
  1682     {
  1683       char buffer[64];
  1683       char buffer[64];
  1684       snprintf(buffer, sizeof(buffer), "0x%"PRIX32, imm32);
  1684       snprintf(buffer, sizeof(buffer), "0x%" PRIX32, imm32);
  1685       block_comment(buffer);
  1685       block_comment(buffer);
  1686     }
  1686     }
  1687 #endif
  1687 #endif
  1688   if (operand_valid_for_logical_immediate(true, imm32)) {
  1688   if (operand_valid_for_logical_immediate(true, imm32)) {
  1689     orrw(dst, zr, imm32);
  1689     orrw(dst, zr, imm32);