8256166: [C2] Registers get confused on Big Endian after 8221404

Reviewed-by: redestad, thartmann
This commit is contained in:
Martin Doerr 2020-11-11 15:28:09 +00:00
parent ed615e3ca0
commit 436019b8bb

@ -110,7 +110,12 @@ class RegMask {
FORALL_BODY
# undef BODY
int dummy = 0) {
#if defined(VM_LITTLE_ENDIAN) || !defined(_LP64)
# define BODY(I) _RM_I[I] = a##I;
#else
// We need to swap ints.
# define BODY(I) _RM_I[I ^ 1] = a##I;
#endif
FORALL_BODY
# undef BODY
_lwm = 0;