[PATCH] Fix __builtin_altivec_cmp{l,g}t
Michael Meissner
meissner@linux.vnet.ibm.com
Wed Sep 23 00:09:00 GMT 2009
On Tue, Sep 22, 2009 at 10:01:05AM +0200, Jakub Jelinek 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?
Thanks for finding this. Sorry about that.
--
Michael Meissner, IBM
4 Technology Place Drive, MS 2203A, Westford, MA, 01886, USA
meissner@linux.vnet.ibm.com
More information about the Gcc-patches
mailing list