Skip to content

Commit

Permalink
Fix emitDispJumpList for Arm64 (#70542)
Browse files Browse the repository at this point in the history
* fix jitdump

* Fix arm build

* Another format
  • Loading branch information
kunalspathak committed Jun 16, 2022
1 parent c972517 commit 3b04dc1
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/coreclr/jit/emit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3894,6 +3894,19 @@ void emitter::emitDispJumpList()
unsigned int jmpCount = 0;
for (instrDescJmp* jmp = emitJumpList; jmp != nullptr; jmp = jmp->idjNext)
{
#if defined(TARGET_ARM64)
if ((jmp->idInsFmt() == IF_LARGEADR) || (jmp->idInsFmt() == IF_LARGELDC))
{
printf("IG%02u IN%04x %3s[%u] -> %s\n", jmp->idjIG->igNum, jmp->idDebugOnlyInfo()->idNum,
codeGen->genInsDisplayName(jmp), jmp->idCodeSize(), getRegName(jmp->idReg1()));
}
else
{
printf("IG%02u IN%04x %3s[%u] -> IG%02u\n", jmp->idjIG->igNum, jmp->idDebugOnlyInfo()->idNum,
codeGen->genInsDisplayName(jmp), jmp->idCodeSize(),
((insGroup*)emitCodeGetCookie(jmp->idAddr()->iiaBBlabel))->igNum);
}
#else
printf("IG%02u IN%04x %3s[%u] -> IG%02u %s\n", jmp->idjIG->igNum, jmp->idDebugOnlyInfo()->idNum,
codeGen->genInsDisplayName(jmp), jmp->idCodeSize(),
((insGroup*)emitCodeGetCookie(jmp->idAddr()->iiaBBlabel))->igNum,
Expand All @@ -3903,6 +3916,7 @@ void emitter::emitDispJumpList()
""
#endif
);
#endif
jmpCount += 1;
}
printf(" total jump count: %u\n", jmpCount);
Expand Down

0 comments on commit 3b04dc1

Please sign in to comment.