[PATCH] powerpc/atomic: Use YZ constraints for DS-form instructions
Michael Ellerman
patch-notifications at ellerman.id.au
Tue Sep 17 22:22:42 AEST 2024
On Mon, 16 Sep 2024 22:05:10 +1000, Michael Ellerman wrote:
> The 'ld' and 'std' instructions require a 4-byte aligned displacement
> because they are DS-form instructions. But the "m" asm constraint
> doesn't enforce that.
>
> That can lead to build errors if the compiler chooses a non-aligned
> displacement, as seen with GCC 14:
>
> [...]
Applied to powerpc/next.
[1/1] powerpc/atomic: Use YZ constraints for DS-form instructions
https://git.kernel.org/powerpc/c/39190ac7cff1fd15135fa8e658030d9646fdb5f2
cheers
More information about the Linuxppc-dev
mailing list