Re: [11/11] Fix get_mode_bounds

2011-07-11 Thread Bernd Schmidt
On 07/06/11 20:37, Richard Henderson wrote: > On 07/01/2011 10:42 AM, Bernd Schmidt wrote: >> get_mode_bounds should also use GET_MODE_PRECISION, but this exposes a >> problem on ia64 - BImode needs to be handled specially here to work >> around another preexisting special case in gen_int_mode. >

Re: [11/11] Fix get_mode_bounds

2011-07-06 Thread Richard Henderson
On 07/06/2011 04:04 PM, Bernd Schmidt wrote: > That might require target specific changes if there are assumptions that > a BImode value is either 0 or 1, not 0 or -1. For now I'd prefer to > minimize the impact. Systems that set STORE_FLAG_VALUE to -1: m68k spu Systems that use B

Re: [11/11] Fix get_mode_bounds

2011-07-06 Thread Bernd Schmidt
On 07/06/11 20:37, Richard Henderson wrote: > On 07/01/2011 10:42 AM, Bernd Schmidt wrote: >> get_mode_bounds should also use GET_MODE_PRECISION, but this exposes a >> problem on ia64 - BImode needs to be handled specially here to work >> around another preexisting special case in gen_int_mode. >

Re: [11/11] Fix get_mode_bounds

2011-07-06 Thread Richard Henderson
On 07/01/2011 10:42 AM, Bernd Schmidt wrote: > get_mode_bounds should also use GET_MODE_PRECISION, but this exposes a > problem on ia64 - BImode needs to be handled specially here to work > around another preexisting special case in gen_int_mode. Would it be better to remove the trunc_int_for_mode