[PATCH] Fix __builtin_altivec_cmp{l,g}t

David Edelsohn dje.gcc@gmail.com
Tue Sep 22 13:01:00 GMT 2009


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



More information about the Gcc-patches mailing list