Skip to content

Commit

Permalink
fix formatting of arm/arm64 addresses (#73967)
Browse files Browse the repository at this point in the history
  • Loading branch information
kunalspathak committed Aug 16, 2022
1 parent acce4fd commit 080f708
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/coreclr/jit/emitarm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6782,7 +6782,7 @@ void emitter::emitDispImm(int imm, bool addComma, bool alwaysHex /* =false */, b
{
if (isAddrOffset)
{
printf("%02XH", imm);
printf("0x%02X", imm);
}
else
{
Expand All @@ -6794,7 +6794,7 @@ void emitter::emitDispImm(int imm, bool addComma, bool alwaysHex /* =false */, b
// val <= -1000
if (isAddrOffset)
{
printf("-%02XH", -imm);
printf("-0x%02X", -imm);
}
else
{
Expand Down
6 changes: 3 additions & 3 deletions src/coreclr/jit/emitarm64.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11796,7 +11796,7 @@ void emitter::emitDispImm(ssize_t imm, bool addComma, bool alwaysHex /* =false *
{
alwaysHex = true;
}
else if (strictArmAsm)
if (strictArmAsm)
{
printf("#");
}
Expand Down Expand Up @@ -11827,7 +11827,7 @@ void emitter::emitDispImm(ssize_t imm, bool addComma, bool alwaysHex /* =false *
{
if (isAddrOffset)
{
printf("%llXH", imm);
printf("0x%llX", imm);
}
else
{
Expand All @@ -11836,7 +11836,7 @@ void emitter::emitDispImm(ssize_t imm, bool addComma, bool alwaysHex /* =false *
}
else
{
printf("%02XH", (unsigned)imm);
printf("0x%02X", (unsigned)imm);
}
}

Expand Down

0 comments on commit 080f708

Please sign in to comment.