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: [committed] clarify sleu_operand


Eric Christopher <echristo@redhat.com> writes:
>> What was the testcase?
>> 
>
> int foo (unsigned int a)
> {
>    return a < 0xf000;
> }

And what output were you expecting?  You certainly can't use sltiu for that.
It's not in either the lower or the upper ranges of allowed values.

The example you gave was:

    sltiu $2,$3,-32767

and you get that for something like:

    int foo (unsigned int a)
    {
      return a < 0xffff8001u;
    }

Richard


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