This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
On Tue, Jan 5, 2010 at 7:55 AM, Paolo Bonzini<bonzini@gnu.org> wrote:I see no other way to fixup the underflow. Some comments below:
You can always subtract (or XOR) the sign bit to turn an unsigned value to the corresponding signed value. The attached patch (on top of the code before H.J.'s patch) fixes the C testcase in the PR, but I didn't test it further and I don't have time unfortunately.
What is the the corresponding signed value of unsigned 0x8000000?
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |