MFC r336987: For compat32, emulate the same wraparound check as occurs on the real ILP32 system.
PR: 230162