[PATCH, rs6000] Fix PR63335 (vec_any/all_nge/nle)

David Edelsohn dje.gcc@gmail.com
Thu Sep 25 13:42:00 GMT 2014


On Wed, Sep 24, 2014 at 6:51 PM, Bill Schmidt
<wschmidt@linux.vnet.ibm.com> wrote:
> Hi,
>
> PR63335 reports that the builtins vec_any_nge, vec_all_nge, vec_any_nle,
> and vec_all_nle produce incorrect results for vector double.  There is
> some special handling for these intrinsics for the various vector
> integral types.  There is a test that excludes vector float from this
> handling, but when vector double was added with VSX, the required
> similar test was apparently not added.  This patch fixes that.  I've
> added a test based on the attachment in the bugzilla.
>
> Bootstrapped and tested on powerpc64le-unknown-linux-gnu.  Is this ok
> for trunk?  I expect we should backport the fix to 4.8 and 4.9 as well.
>
> Thanks,
> Bill
>
>
> [gcc]
>
> 2014-09-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
>
>         PR target/63335
>         * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin):
>         Exclude VSX_BUILTIN_XVCMPGEDP_P from special handling.
>
> [gcc/testsuite]
>
> 2014-09-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
>
>         PR target/63335
>         * gcc.target/powerpc/pr63335.c: New test.

Okay.

Thanks, David



More information about the Gcc-patches mailing list