llvm / llvm-project

The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.
http://llvm.org
Other
28.3k stars 11.68k forks source link

[PowerPC] support inline asm Y constraint #92939

Open nickdesaulniers opened 4 months ago

nickdesaulniers commented 4 months ago

The PPC port of the Linux kernel is looking to use an undocumented constraint Y in inline asm.

https://lore.kernel.org/linuxppc-dev/20240521123919.245886-1-mpe@ellerman.id.au/

We should add support for this to LLVM.

llvmbot commented 4 months ago

@llvm/issue-subscribers-backend-powerpc

Author: Nick Desaulniers (paternity leave) (nickdesaulniers)

The PPC port of the Linux kernel is looking to use an undocumented constraint `Y` in inline asm. https://lore.kernel.org/linuxppc-dev/20240521123919.245886-1-mpe@ellerman.id.au/ We should add support for this to LLVM.
chenzheng1030 commented 4 months ago

Where can I get an explanation for constraint Y? Is Y a PPC specific constraint. I can not find it in GCC manual or IBM XLC manual. Thanks.