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

--- Comment #1 from Haochen Jiang <haochen.jiang at intel dot com> ---
(In reply to Haochen Jiang from comment #0)
> Created attachment 56155 [details]
> Simple testcase
> 
> With this simple testcase and command like this:
> 
> x86_64-pc-linux-gnu-gcc -O2 -march=x86-64 1.c
> 
> We will finally get:
> 
> error: inlining failed in call to ‘always_inline’ ‘_mm256_mask_mov_pd’:
> target specific option mismatch
> 
> But if we use the command like this:
> 
> x86_64-pc-linux-gnu-gcc -O2 -march=x86-64 -mno-evex512 1.c

Oops, I missing a sentence here, I mean it will meet no issue if we specified
-mno-evex512 in command line.

> 
> It seems that the default handle for evex512 with avx512 will finally let
> the compiler wrongly suppose that 128/256 bit intrins need evex512 feature
> when co-operating with function attribute, but actually it does not.

Reply via email to