https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95790

--- Comment #6 from H.J. Lu <hjl.tools at gmail dot com> ---
(In reply to Yichao Yu from comment #5)
> It’s wrong when running on a target that has avx512f. The unoptimuzed
> version will call the correct foo but the unoptimized case won’t.
> 
> As I said, this is an issue when the total targets are different between the
> callee and caller.

Your testcase has nested function multi-versioning.  I don't think it works
at all.  I opened PR 95793.

Reply via email to