https://gcc.gnu.org/bugzilla/show_bug.cgi?id=128923
--- Comment #4 from rguenther at suse dot de <rguenther at suse dot de> --- On Mon, 23 Nov 2026, fchelnokov at gmail dot com wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=128923 > > --- Comment #3 from Fedor Chelnokov <fchelnokov at gmail dot com> --- > > This is a target / RTL expansion issue. > > On x86 yes, but not on AArch64: there "p > max ? p : max" is neither fmax > (NaN) > nor fmaxnm (signed zeros), so fcmgt + bsl is already the best expansion, and > it > is still 17% slower than scalar fcsel on Neoverse-N2 (2.07 vs 1.77 ns per > point, the same with GCC 16.2 and trunk, -O2 or -mcpu=neoverse-n2). So on > AArch64 it is the vectorizer's cost decision. Which is also under target discretion.
