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]

Re: Sign-extend CONST_INTs within their modes


On Apr 10, 2001, Richard Henderson <rth@redhat.com> wrote:

> On Wed, Apr 04, 2001 at 12:22:24PM -0300, Alexandre Oliva wrote:
>> @@ -1108,6 +1108,12 @@ general_operand (op, mode)
>> && GET_MODE_CLASS (mode) != MODE_PARTIAL_INT)
>> return 0;
>> 
>> +#ifdef ENABLE_CHECKING
>> +  if (GET_CODE (op) == CONST_INT
>> +      && trunc_int_for_mode (INTVAL (op), mode) != INTVAL (op))
>> +    return 0;
>> +#endif

> I don't think these should be ENABLE_CHECKING.  If we did that it
> could drastically change what patterns combine thinks it can create.

Yeah...  When they would abort () otherwise, making it conditional
made sense.  Now that it may actually affect the generated code, it
shouldn't be conditional.

> Otherwise ok.

Thanks, I'll remove the #ifdefs and check it in tonight.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]