Repository navigation
Fix an over-constrained use of a byte reg - #41004
Conversation
There was a problem hiding this comment.
This is the actual fix.
There was a problem hiding this comment.
This and the other assert below are added because these are the only other semi-complex cases where we have byteable restrictions. I've convinced myself that we will never have more than 3 uses in these cases, so a simple assert is useful and sufficient (we don't need to check that we actually have a byteable register source).
|
@dotnet/jit-contrib PTAL |
sandreenko
left a comment
There was a problem hiding this comment.
LGTM
question: could we replace 4 with a constant defined in target.h? Can it be calculated from:
#define RBM_BYTE_REGS (RBM_EAX|RBM_ECX|RBM_EDX|RBM_EBX)
#define RBM_NON_BYTE_REGS (RBM_ESI|RBM_EDI)
?
Also, side question, could you please clarify for me why RBM_NON_BYTE_REGS does not include ESP, EBP? It has only one use but could it be wrong?
I believe it's because we don't use |
|
/backport to release/5.0 |
|
Started backporting to release/5.0: https://github.com/dotnet/runtime/actions/runs/233483644 |
Fix #40963