-
Notifications
You must be signed in to change notification settings - Fork 10.8k
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
llvm assembler does not recognise powerpc paddi, pla, psubi extended mnemonics #62373
Comments
@llvm/issue-subscribers-backend-powerpc |
I guess you mean the native assembler from LLVM, not You can have a look at: https://github.com/llvm/llvm-project/blob/main/llvm/test/MC/PowerPC/ppc64-reloc-directive-pcrel.s and test functionality of |
Oh, right yes I meant the LLVM assembler. clang doesn't emit those extended mnemonics when generating pcrel code, but we have some Linux kernel asm code that uses them. Adding one to that test case: ppc64-reloc-directive-pcrel.S:19:2: error: invalid instruction, did you mean: bla, la, lha, lwa, pld, plha, pli, plwa? (gas does assemble this) |
Ah, it doesn't recognise the 2-operand pld extended mnemonics either. Must be a bunch of things missing. |
I've added a patch now that will hopefully cover a whole set of missing Power 10 extended mnemonics. |
The patch has been merged: #73003 |
Some Power ISA v3.1 extended mnemonics for paddi including pla, 3-operand form of paddi, and psubi are not recognised by llvm-mc (EDIT: llvm-as -> llvm-mc here and fixed title).
The text was updated successfully, but these errors were encountered: