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: [PATCH] Fix __builtin_altivec_cmp{l,g}t


On Tue, Sep 22, 2009 at 4:01 AM, Jakub Jelinek <jakub@redhat.com> wrote:
> Hi!
>
> testVMX testsuite fails a couple of tests since the power7 merge, apparently
> because 4 of the CODE_FOR_vector_* values are set incorrectly.
> CODE_FOR_vector_gt* values go first all unsigned, then all signed, but the
> actual builtins and their codes go by increasing element sizes.
> So, e.g. vec_cmpgt on signed char vectors actually compares unsigned short
> vectors, etc.
>
> Fixed thusly, ok for trunk?
>
> 2009-09-22 ?Jakub Jelinek ?<jakub@redhat.com>
>
> ? ? ? ?* config/rs6000/rs6000.c (bdesc_2arg): Fix CODE_FOR_vector_gt* codes
> ? ? ? ?for __builtin_altivec_vcmpgt{sb,uh,sh,uw}.

Okay.

Thanks, David


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