GCC left shift overflow
Short answer: the Intel processor masks the shift count to 5 bits (maximum 31). In other words, the shift actually performed is 32 & 31, which is 0 (no change). The same result appears using gcc on a Linux 32-bit PC. I assembled a shorter version of this program because I was puzzled by why … Read more