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
invalid register name and invalid operand for instruction in arch/powerpc/kernel/vdso{32,64}/gettimeofday.S #764
Comments
https://developer.ibm.com/articles/l-ppc/ makes it sound like the cc @arndb for |
It looks like some of this might be resolved by b2f663073917babb84f5ba9129451e8d564cba1a ("[PowerPC] Allow a '%' prefix for registers in CFI directives"). I'm building llvm from git now to have a look. |
However, it seems a bigger issue might be |
@cmriedl points out that this could be due to llvm's assembler not supporting |
@mpe pointed out that our register names are actually #defined, so llvm is actually rejecting %r0, %r1 etc, which is even odder. However, I can work around this for now by just changing the defines, for example |
Yes, from my godbolt link, it looks like |
This is dumb but makes the llvm integrated assembler happy. ClangBuiltLinux#764 Signed-off-by: Daniel Axtens <dja@axtens.net>
This is dumb but makes the llvm integrated assembler happy. ClangBuiltLinux#764 Signed-off-by: Daniel Axtens <dja@axtens.net>
This is dumb but makes the llvm integrated assembler happy. ClangBuiltLinux#764 Signed-off-by: Daniel Axtens <dja@axtens.net>
This is dumb but makes the llvm integrated assembler happy. ClangBuiltLinux#764 Signed-off-by: Daniel Axtens <dja@axtens.net>
This is dumb but makes the llvm integrated assembler happy. ClangBuiltLinux#764 Signed-off-by: Daniel Axtens <dja@axtens.net>
This is dumb but makes the llvm integrated assembler happy. ClangBuiltLinux#764 Signed-off-by: Daniel Axtens <dja@axtens.net>
cmpli is #1419 . Let's use this issue to track |
The |
Indeed, I can no longer reproduce with: $ ARCH=powerpc make LLVM=1 -j72 pseries_defconfig arch/powerpc/kernel/vdso32/
# or
$ ARCH=powerpc make LLVM=1 -j72 ppc44x_defconfig arch/powerpc/kernel/vdso32/
# or
$ ARCH=powerpc make LLVM=1 -j72 powernv_defconfig arch/powerpc/kernel/vdso32/ (working around #1484, #1418 and #672).
lol, I reviewed that patch...forgot about this issue. Looks like this shipped in clang-12. Thanks @gwelymernans ! |
Build of ppc32 and ppc64 kernels with integrated-as enabled failing:
Build of ppc64le kernel with integrated-as enabled failing:
The text was updated successfully, but these errors were encountered: