]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/powerpc: Adjust wild_bctr to build with old binutils
authorGustavo Romero <gromero@linux.vnet.ibm.com>
Thu, 15 Nov 2018 02:33:30 +0000 (21:33 -0500)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 15 Nov 2018 12:05:17 +0000 (23:05 +1100)
commitddfb099b59f5b295eac9f90b1391a2c27c0ae1e8
tree68d7941711d7660c65a51dd48d6025d726268f34
parenta38de6eb9b9e6f97378e91e825e00a106473c833
selftests/powerpc: Adjust wild_bctr to build with old binutils

Currently the selftest wild_bctr can fail to build when an old gcc is
used, notably on gcc using a binutils version <= 2.27, because the
assembler does not support the integer suffix UL.

This patch adjusts the wild_bctr test so the REG_POISON value is still
treated as an unsigned long for the shifts on compilation but the UL
suffix is absent on the stringification, so the inline asm code
generated has no UL suffixes.

Signed-off-by: Gustavo Romero <gromero@linux.vnet.ibm.com>
[mpe: Wrap long line]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
tools/testing/selftests/powerpc/mm/wild_bctr.c