linux/tools/testing/selftests/powerpc
Michael Ellerman dd3a44c06f selftests/powerpc: Only test lwm/stmw on big endian
Newer binutils (>= 2.36) refuse to assemble lmw/stmw when building in
little endian mode. That breaks compilation of our alignment handler
test:

  /tmp/cco4l14N.s: Assembler messages:
  /tmp/cco4l14N.s:1440: Error: `lmw' invalid when little-endian
  /tmp/cco4l14N.s:1814: Error: `stmw' invalid when little-endian
  make[2]: *** [../../lib.mk:139: /output/kselftest/powerpc/alignment/alignment_handler] Error 1

These tests do pass on little endian machines, as the kernel will
still emulate those instructions even when running little
endian (which is arguably a kernel bug).

But we don't really need to test that case, so ifdef those
instructions out to get the alignment test building again.

Reported-by: Libor Pechacek <lpechacek@suse.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Tested-by: Libor Pechacek <lpechacek@suse.com>
Link: https://lore.kernel.org/r/20210119041800.3093047-1-mpe@ellerman.id.au
2021-01-20 11:49:55 +11:00
..
alignment selftests/powerpc: Only test lwm/stmw on big endian 2021-01-20 11:49:55 +11:00
benchmarks selftests/powerpc: Don't touch VMX/VSX on older CPUs 2020-09-08 22:24:10 +10:00
cache_shape .gitignore: add SPDX License Identifier 2020-03-25 11:50:48 +01:00
copyloops x86, powerpc: Rename memcpy_mcsafe() to copy_mc_to_{user, kernel}() 2020-10-06 11:18:04 +02:00
dscr selftests/powerpc: Don't run DSCR tests on old systems 2020-09-08 22:24:02 +10:00
eeh selftests/powerpc/eeh: disable kselftest timeout setting for eeh-basic 2020-11-19 14:50:14 +11:00
include selftests/powerpc: refactor entry and rfi_flush tests 2020-11-19 23:47:23 +11:00
lib treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
math selftests/powerpc: Skip vmx/vsx/tar/etc tests on older CPUs 2020-08-03 22:12:41 +10:00
mm selftests/powerpc: Fix exit status of pkey tests 2021-01-19 08:04:32 +11:00
nx-gzip selftests/powerpc: update .gitignore 2020-12-04 01:01:21 +11:00
pmu selftests/powerpc: Skip L3 bank test on older CPUs 2020-09-08 22:24:08 +10:00
primitives .gitignore: add SPDX License Identifier 2020-03-25 11:50:48 +01:00
ptrace selftests/powerpc: Tests for kernel accessing user memory 2020-09-15 22:13:21 +10:00
scripts treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 285 2019-06-05 17:36:37 +02:00
security selftests/powerpc: update .gitignore 2020-12-04 01:01:21 +11:00
signal selftests/powerpc: update .gitignore 2020-12-04 01:01:21 +11:00
stringloops selftests/powerpc: Include asm/cputable.h from utils.h 2020-09-08 22:23:59 +10:00
switch_endian selftests/powerpc: Properly handle failure in switch_endian_test 2020-09-08 22:24:13 +10:00
syscalls selftests/powerpc: update .gitignore 2020-12-04 01:01:21 +11:00
tm selftests/powerpc: Include asm/cputable.h from utils.h 2020-09-08 22:23:59 +10:00
vphn .gitignore: add SPDX License Identifier 2020-03-25 11:50:48 +01:00
harness.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 191 2019-05-30 11:29:21 -07:00
Makefile selftests/powerpc: Add NX-GZIP engine compress testcase 2020-04-21 22:51:34 +10:00
utils.c selftests/powerpc: Move set_dscr() into rfi_flush.c 2020-09-08 22:23:57 +10:00