From: John R. <jr...@bi...> - 2013-02-03 15:46:20
|
>> typedef struct { >> UInt regno : 24; >> HRegClass class : 4; >> Bool virtual : 1; >> } HReg; > and what does sameHReg: toBool(*(UInt*)&r1 == *(UInt*)&r2)) provides ? > (assuming sizeof(HReg)==sizeof(UInt)) Here that definition of sameHReg provides a bug, because the declaration of HReg has 3 uninitialized bits whose value is not controlled. To fix the bug, increase the width of some field(s) of HReg until the widths sum to 32 bits (the bit width of UInt.) -- |