[PATCH, rs6000] Disable gimple fold for float or double vec_minmax when fast-math is not set
David Edelsohn
dje.gcc@gmail.com
Tue Nov 2 13:12:10 GMT 2021
On Mon, Nov 1, 2021 at 10:40 PM HAO CHEN GUI <guihaoc@linux.ibm.com> wrote:
>
> David,
>
> My patch file was broken. I am sorry for it. Here is the correct one. Thanks a lot.
>
> ChangeLog
>
> 2021-11-01 Haochen Gui <guihaoc@linux.ibm.com>
>
> gcc/
> * config/rs6000/rs6000-call.c (rs6000_gimple_fold_builtin): Disable
> gimple fold for VSX_BUILTIN_XVMINDP, ALTIVEC_BUILTIN_VMINFP,
> VSX_BUILTIN_XVMAXDP, ALTIVEC_BUILTIN_VMAXFP when fast-math is not
> set.
>
> gcc/testsuite/
> * gcc.target/powerpc/vec-minmax-1.c: New test.
> * gcc.target/powerpc/vec-minmax-2.c: Likewise.
This is okay.
The default DejaGNU test action is compile, but it's a good idea to
include the dg-do line to be clear and document the intention.
Thanks, David
More information about the Gcc-patches
mailing list