Mark Wielaard a37c73
diff --git a/none/tests/ppc64/ldst_multiple.vgtest b/none/tests/ppc64/ldst_multiple.vgtest
Mark Wielaard a37c73
index 87e668e09..22dd46c99 100644
Mark Wielaard a37c73
--- a/none/tests/ppc64/ldst_multiple.vgtest
Mark Wielaard a37c73
+++ b/none/tests/ppc64/ldst_multiple.vgtest
Mark Wielaard a37c73
@@ -1 +1,2 @@
Mark Wielaard a37c73
+prereq: ../../../tests/is_ppc64_BE
Mark Wielaard a37c73
 prog: ldst_multiple
Mark Wielaard a37c73
--- valgrind-3.16.1/none/tests/ppc64/Makefile.am.orig	2020-10-18 20:43:34.579699246 +0200
Mark Wielaard a37c73
+++ valgrind-3.16.1/none/tests/ppc64/Makefile.am	2020-10-18 20:44:52.950198040 +0200
Mark Wielaard a37c73
@@ -54,17 +54,22 @@
Mark Wielaard a37c73
 
Mark Wielaard a37c73
 check_PROGRAMS = \
Mark Wielaard a37c73
 	allexec \
Mark Wielaard a37c73
-	lsw jm-insns round \
Mark Wielaard a37c73
+	jm-insns round \
Mark Wielaard a37c73
 	test_isa_2_06_part1 test_isa_2_06_part2 test_isa_2_06_part3 \
Mark Wielaard a37c73
 	test_dfp1 test_dfp2 test_dfp3 test_dfp4 test_dfp5 \
Mark Wielaard a37c73
 	test_isa_2_07_part1 test_isa_2_07_part2 \
Mark Wielaard a37c73
 	test_isa_3_0 \
Mark Wielaard a37c73
 	subnormal_test \
Mark Wielaard a37c73
-	test_tm test_touch_tm ldst_multiple data-cache-instructions \
Mark Wielaard a37c73
+	test_tm test_touch_tm data-cache-instructions \
Mark Wielaard a37c73
 	power6_mf_gpr std_reg_imm \
Mark Wielaard a37c73
 	twi_tdi tw_td power6_bcmp
Mark Wielaard a37c73
 
Mark Wielaard a37c73
 
Mark Wielaard a37c73
+# lsw and ldst_multiple compile (and run) only on big endian.
Mark Wielaard a37c73
+if VGCONF_PLATFORMS_INCLUDE_PPC64BE_LINUX
Mark Wielaard a37c73
+check_PROGRAMS += lsw ldst_multiple
Mark Wielaard a37c73
+endif
Mark Wielaard a37c73
+
Mark Wielaard a37c73
 AM_CFLAGS    += @FLAG_M64@
Mark Wielaard a37c73
 AM_CXXFLAGS  += @FLAG_M64@
Mark Wielaard a37c73
 AM_CCASFLAGS += @FLAG_M64@