[Bug target/126935] [17 Regression] SVE2 incorrectly detected on aarch64 vm

"pinskia at gcc dot gnu.org via Gcc-bugs" <[email protected]>
Newsgroups gmane.comp.gcc.bugs
Message-ID <[email protected]/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=126935

--- Comment #4 from Drea Pinski <pinskia at gcc dot gnu.org> ---
(In reply to ktkachov from comment #3)
> (In reply to Drea Pinski from comment #2)
> > Actually I think the better check is if the processor has SVE and SVE2.
> > Even though SVE2 should be enough here; it seems like some VMs advertise
> > SVE2 but not SVE support (which in itself odd but that ever).
> 
> Oof, SVE2 but not SVE is a nonsense configuration.
> Anyway, for the libcpp fast-path I've added I think we can make the
> configure check also execute the SVE2 instructions required, not just test
> their HWCAPs. That would sidestep the dodgy VM advertising

But then that would break cross.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.