-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix the ARM's double
register name displayed in JitDisasm/JitDump
#79949
Conversation
@dotnet/jit-contrib |
Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch, @kunalspathak Issue DetailsFix the display of ARM double register name in JitDisasm and JitDump. We would just display the floating register name, but instead should be displaying the accurate double register name (that the encoding reflects). Fixes: #8121
|
} | ||
else | ||
{ | ||
printf("s%s", emitFloatRegName(reg, attr) + 1); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this side also incorrect? I could easily have misread the chain of calls, but it looked like emitFloatRegName is going to return "f" so it would be "sf", which doesn't seem right.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right, but since we do + 1
, we remove the extra f
character that gets printed. This portion is unchanged actually.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will just use something manual version of _itoa
to convert from int -> string.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change looks good - there might be another change depending on whether my comment is correct or not, but this is an improvement either way.
Fix the display of ARM double register name in JitDisasm and JitDump. We would just display the floating register name, but instead should be displaying the accurate double register name (that the encoding reflects).
Fixes: #8121