[PATCH] selftests/powerpc: Fix earlyclobber in tm-vmxcopy

Michael Ellerman patch-notifications at ellerman.id.au
Sun Jun 30 18:37:30 AEST 2019


On Mon, 2019-06-17 at 21:24:58 UTC, Gustavo Romero wrote:
> In some cases, compiler can allocate the same register for operand 'res'
> and 'vecoutptr', resulting in segfault at 'stxvd2x 40,0,%[vecoutptr]'
> because base register will contain 1, yielding a false-positive.
> 
> This is because output 'res' must be marked as an earlyclobber operand so
> it may not overlap an input operand ('vecoutptr').
> 
> Signed-off-by: Gustavo Romero <gromero at linux.vnet.ibm.com>
> Reviewed-by: Segher Boessenkool <segher at kernel.crashing.org>

Applied to powerpc next, thanks.

https://git.kernel.org/powerpc/c/8d0f1e05ab16c4bd628ddaefd20b94ffb36d799c

cheers


More information about the Linuxppc-dev mailing list