Skip to content

Commit 813a10f

Browse files
committed
Improved ARM64 disassembly by emitting the right register
1 parent 48fe637 commit 813a10f

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

src/coreclr/jit/emitarm64.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12063,7 +12063,7 @@ void emitter::emitDispExtendReg(regNumber reg, insOpts opt, ssize_t imm)
1206312063
assert(insOptsNone(opt) || insOptsAnyExtend(opt) || (opt == INS_OPTS_LSL));
1206412064

1206512065
// size is based on the extend option, not the instr size.
12066-
emitAttr size = insOpts32BitExtend(opt) ? EA_4BYTE : EA_8BYTE;
12066+
emitAttr size = insOpts64BitExtend(opt) ? EA_8BYTE : EA_4BYTE;
1206712067

1206812068
if (strictArmAsm)
1206912069
{

src/coreclr/jit/emitarm64.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -667,11 +667,6 @@ inline static bool insOptsLSExtend(insOpts opt)
667667
(opt == INS_OPTS_UXTX) || (opt == INS_OPTS_SXTX));
668668
}
669669

670-
inline static bool insOpts32BitExtend(insOpts opt)
671-
{
672-
return ((opt == INS_OPTS_UXTW) || (opt == INS_OPTS_SXTW));
673-
}
674-
675670
inline static bool insOpts64BitExtend(insOpts opt)
676671
{
677672
return ((opt == INS_OPTS_UXTX) || (opt == INS_OPTS_SXTX));

0 commit comments

Comments
 (0)