-
Notifications
You must be signed in to change notification settings - Fork 11.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tlbilxlpid -> error: invalid instruction #64080
tlbilxlpid -> error: invalid instruction #64080
Comments
@llvm/issue-subscribers-backend-powerpc |
It looks like |
Yes, the PowerISA has removed the Book E as of v3.0. @nickdesaulniers can you comment on where this is coming from? We don't have this implemented but if it is needed, we can go ahead with https://reviews.llvm.org/D156204. |
Landed as 53648ac Should we backport it to 17.x? |
Yes, please. We can work around this in the kernel using |
oh no, is EDIT: oh I can use |
/cherry-pick 53648ac |
Error: Command failed due to missing milestone. |
/cherry-pick 53648ac |
/branch llvm/llvm-project-release-prs/issue64080 |
/pull-request llvm/llvm-project-release-prs#518 |
Thanks @ecnelises ! |
Clang didn't recognize the instruction tlbilxlpid. This was fixed in clang-18 [0] then backported to clang-17 [1]. To support clang-16 and older, rather than using that instruction bare in inline asm, add it to ppc-opcode.h and use that macro as is done elsewhere for other instructions. Link: ClangBuiltLinux/linux#1891 Link: llvm/llvm-project#64080 Link: llvm/llvm-project@53648ac [0] Link: llvm/llvm-project-release-prs@0af7e5e [1] Reported-by: kernel test robot <lkp@intel.com> Closes: https://lore.kernel.org/llvm/202307211945.TSPcyOhh-lkp@intel.com/ Suggested-by: Michael Ellerman <mpe@ellerman.id.au> Signed-off-by: Nick Desaulniers <ndesaulniers@google.com> Reviewed-by: Christophe Leroy <christophe.leroy@csgroup.eu> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://msgid.link/20230803-ppc_tlbilxlpid-v3-1-ca84739bfd73@google.com
Clang didn't recognize the instruction tlbilxlpid. This was fixed in clang-18 [0] then backported to clang-17 [1]. To support clang-16 and older, rather than using that instruction bare in inline asm, add it to ppc-opcode.h and use that macro as is done elsewhere for other instructions. Link: ClangBuiltLinux#1891 Link: llvm/llvm-project#64080 Link: llvm/llvm-project@53648ac [0] Link: llvm/llvm-project-release-prs@0af7e5e [1] Reported-by: kernel test robot <lkp@intel.com> Closes: https://lore.kernel.org/llvm/202307211945.TSPcyOhh-lkp@intel.com/ Suggested-by: Michael Ellerman <mpe@ellerman.id.au> Signed-off-by: Nick Desaulniers <ndesaulniers@google.com> Reviewed-by: Christophe Leroy <christophe.leroy@csgroup.eu> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://msgid.link/20230803-ppc_tlbilxlpid-v3-1-ca84739bfd73@google.com
via https://lore.kernel.org/llvm/202307211945.TSPcyOhh-lkp@intel.com/
it looks like:
produces:
for
--target=powerpc-linux-gnu
. I wonder if clang is missing support for this instruction (or perhaps it's an alias to something that clang does understand).cc @nemanjai @nemanja-ibm
The text was updated successfully, but these errors were encountered: