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

--- Comment #3 from Yale Zhang <yzhang1985 at gmail dot com> ---
(In reply to Richard Biener from comment #2)
> The testcase you attached can't work because we can't inline an avx2
> function into a function not having avx2 enabled.

Right, but main() and the OpenMP function should have AVX2 enabled because they
come after #pragma GCC target("avx2") which is still in effect.

If the target("avx2") was surrounded by #pragma GCC push_options/pop_options,
then main would not have AVX2 enabled

Reply via email to