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]

Re: [RFC] PR 58542: const_int vs lost modes


Eric Botcazou <ebotcazou@adacore.com> writes:
>> That's a fairly dangerous hack in my opinion, in particular this breaks the
>> uniqueness of representation of -1 as constm1_rtx.  Can't we find a really
>> contained hack instead, especially if we want to backport it to 4.8?
>
> In particular, can't Uros' patch be considered as such here?  Frankly, the 
> choice of 'true' vs 'false' for create_convert_operand_to in optabs isn't 
> crystal clear...

Do we actually need to do a conversion here at all?  It looks like the
modes of "expected" and "desired" should already match "mem", so we could
just use create_input_operand.

Thanks,
Richard


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