This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: get_condition causes overlow for sign extended constants
- To: amylaar at cygnus dot co dot uk
- Subject: Re: get_condition causes overlow for sign extended constants
- From: kenner at vlsi1 dot ultra dot nyu dot edu (Richard Kenner)
- Date: Tue, 18 Mar 97 16:51:13 EST
It would fix the problem I pointed out, but it would create new
problems. If op0 has a narrower mode than HOST_WIDE_INT, overflow
will not be detected by your version.
How is that possible? The shift amount isn't being changed. So if the
shift of -1 would overflow, why wouldn't the current shift of 1 in the
similar situation?