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