[Bug middle-end/77769] function generated for OpenMP region uses wrong instruction set
yzhang1985 at gmail dot com
gcc-bugzilla@gcc.gnu.org
Wed Sep 28 09:55:00 GMT 2016
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
More information about the Gcc-bugs
mailing list