This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/82094] error: inlining failed in call to always_inline ‘_mm512_permutexvar_epi8’


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

Vinay Vasista <vasistavinay at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |RESOLVED
         Resolution|---                         |INVALID

--- Comment #2 from Vinay Vasista <vasistavinay at gmail dot com> ---
Thanks, Martin! That solves my problem.

It would have been more helpful if gcc gave me a possible cause for the
failure, similar to what clang did. Because (arguably) nowhere was I able to
figure out there is this "avx512vbmi" target feature required by the particular
instruction I used.

[
Just noting down the following point. I had also not added -O3 flag, which
resulted in a few more errors:

/tmp/ccpGIXuF.s: Assembler messages:
/tmp/ccpGIXuF.s:17: Error: no such instruction: `vmovdqa64 -112(%rbp),%zmm0'
/tmp/ccpGIXuF.s:18: Error: no such instruction: `vmovdqa64 %zmm0,-304(%rbp)'
/tmp/ccpGIXuF.s:19: Error: no such instruction: `vmovdqa64 -176(%rbp),%zmm0'
/tmp/ccpGIXuF.s:20: Error: no such instruction: `vmovdqa64 %zmm0,-368(%rbp)'
/tmp/ccpGIXuF.s:21: Error: no such instruction: `vmovdqa64 -432(%rbp),%zmm0'
/tmp/ccpGIXuF.s:22: Error: no such instruction: `vmovdqa64 %zmm0,%zmm2'
/tmp/ccpGIXuF.s:23: Error: no such instruction: `vmovdqa64 -304(%rbp),%zmm0'
/tmp/ccpGIXuF.s:24: Error: no such instruction: `vmovdqa64 -368(%rbp),%zmm1'
/tmp/ccpGIXuF.s:26: Error: no such instruction: `kmovq %rax,%k1'
/tmp/ccpGIXuF.s:27: Error: no such instruction: `vpermb %zmm1,%zmm0,%zmm2{%k1}'
/tmp/ccpGIXuF.s:28: Error: no such instruction: `vmovdqa64 %zmm2,%zmm0'
/tmp/ccpGIXuF.s:29: Error: no such instruction: `vmovdqa64 %zmm0,-240(%rbp)'

After adding -O3 flag, the code got compiled without any error.
]

Thanks again!
~ Vinay

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]