[Bug target/93127] PPC altivec vec_promote creates unnecessary xxpermdi instruction
guihaoc at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Jan 14 08:37:59 GMT 2022
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93127
HaoChen Gui <guihaoc at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
CC| |guihaoc at gcc dot gnu.org
--- Comment #4 from HaoChen Gui <guihaoc at gcc dot gnu.org> ---
I committed a patch (r12-4987) which is related to this issue. But it doesn't
behave as the ticket expects. With the patch, vec_min/max is bound to
xv[min|max]dp when fast-math is not set. If fast-math is set, it can be folded
into scalar comparison. So with fast-math is set, the code could be
xsmaxdp 1,1,2
blr
More information about the Gcc-bugs
mailing list