]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
lmw, lswi and related PowerPC insns aren't allowed on ppc64le
authorMark Wielaard <mark@klomp.org>
Tue, 1 Dec 2020 13:57:39 +0000 (14:57 +0100)
committerMark Wielaard <mark@klomp.org>
Tue, 1 Dec 2020 13:57:39 +0000 (14:57 +0100)
Newer binutils produce an error when the assembly contains lmw, stmw,
lswi, lswx, stswi, or stswx instructions in little-endian mode.

Only build and run the lsw and ldst_multiple testcases on ppc64[be].

https://bugs.kde.org/show_bug.cgi?id=427870

NEWS
none/tests/ppc64/Makefile.am
none/tests/ppc64/ldst_multiple.vgtest

diff --git a/NEWS b/NEWS
index c26449a3e24e239001ca730f5ae7bd90e506dfff..c9dfd7315528d9eb113cfc2cb8329e51728b42d4 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -58,6 +58,7 @@ n-i-bz  helgrind: If hg_cli__realloc fails, return NULL.
 427400  PPC ISA 3.1 support is missing, part 4
 427401  PPC ISA 3.1 support is missing, part 5
 384729  __libc_freeres inhibits cross-platform valgrind
+427870  lmw, lswi and related PowerPC insns aren't allowed on ppc64le 
 427404  PPC ISA 3.1 support is missing, part 6
 429692  unhandled ppc64le-linux syscall: 147 (getsid)
 
index a267b727a810a98297a19bc06ce9986493a71fa8..cd5dc91a46b03429245103a0ffea0b8064f44136 100644 (file)
@@ -59,7 +59,7 @@ EXTRA_DIST = \
 
 check_PROGRAMS = \
        allexec \
-       lsw jm-insns round \
+       jm-insns round \
        test_isa_2_06_part1 test_isa_2_06_part2 test_isa_2_06_part3 \
        test_dfp1 test_dfp2 test_dfp3 test_dfp4 test_dfp5 \
        test_isa_2_07_part1 test_isa_2_07_part2 \
@@ -67,10 +67,15 @@ check_PROGRAMS = \
        test_isa_3_1_RT test_isa_3_1_XT test_isa_3_1_VRT \
        test_isa_3_1_Misc test_isa_3_1_AT \
        subnormal_test \
-       test_tm test_touch_tm ldst_multiple data-cache-instructions \
+       test_tm test_touch_tm data-cache-instructions \
        power6_mf_gpr std_reg_imm \
        twi_tdi tw_td power6_bcmp
 
+# lmw, stmw, lswi, lswx, stswi, stswx compile (and run) only on big endian.
+if VGCONF_PLATFORMS_INCLUDE_PPC64BE_LINUX
+check_PROGRAMS += lsw ldst_multiple
+endif
+
 AM_CFLAGS    += @FLAG_M64@
 AM_CXXFLAGS  += @FLAG_M64@
 AM_CCASFLAGS += @FLAG_M64@
index 87e668e09f668245129e9302e1d9b382c05e10ac..22dd46c9935c1bc44abca96986fe61d96dc50b78 100644 (file)
@@ -1 +1,2 @@
+prereq: ../../../tests/is_ppc64_BE
 prog: ldst_multiple