Skip to content

Commit 6d03795

Browse files
author
Vladimir Kempik
committed
Fix wrong patch from jep-388 backport
1 parent fe73bf5 commit 6d03795

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/hotspot/cpu/aarch64/macroAssembler_aarch64.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1492,7 +1492,7 @@ void MacroAssembler::movptr(Register r, uintptr_t imm64) {
14921492
#ifndef PRODUCT
14931493
{
14941494
char buffer[64];
1495-
snprintf(buffer, sizeof(buffer), PTR64_FORMAT, imm64);
1495+
snprintf(buffer, sizeof(buffer), "0x%"PRIX64, (uint64_t)imm64);
14961496
block_comment(buffer);
14971497
}
14981498
#endif
@@ -1555,7 +1555,7 @@ void MacroAssembler::mov_immediate64(Register dst, uint64_t imm64)
15551555
#ifndef PRODUCT
15561556
{
15571557
char buffer[64];
1558-
snprintf(buffer, sizeof(buffer), PTR64_FORMAT, imm64);
1558+
snprintf(buffer, sizeof(buffer), "0x%"PRIX64, imm64);
15591559
block_comment(buffer);
15601560
}
15611561
#endif
@@ -1668,7 +1668,7 @@ void MacroAssembler::mov_immediate32(Register dst, uint32_t imm32)
16681668
#ifndef PRODUCT
16691669
{
16701670
char buffer[64];
1671-
snprintf(buffer, sizeof(buffer), PTR32_FORMAT, imm32);
1671+
snprintf(buffer, sizeof(buffer), "0x%"PRIX32, imm32);
16721672
block_comment(buffer);
16731673
}
16741674
#endif

0 commit comments

Comments
 (0)