]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
s390: Fix compilation of testcases with clang 20.1.8
authorFlorian Krohm <flo2030@eich-krohm.de>
Sat, 21 Mar 2026 18:04:25 +0000 (18:04 +0000)
committerFlorian Krohm <flo2030@eich-krohm.de>
Sat, 21 Mar 2026 18:04:25 +0000 (18:04 +0000)
bfp-fpc.c: The SRNMB insn requires the floating-point extension.
Add -march=arch9 to compile flags which corresponds to z196 which is
the minimum requires machine model.
The clang error is apparently triggered by the mnemonic. C.f. bfp-convert.c
which also uses insns requiring the floating-point extension. But those insns
are pieced together in a different way avoiding the mnemonic.

ex.c, exrl.c: The SGRK insn requires the distinct-operands facility.
Add -march=arch9.

vecdiv.c, vme.c: The insns require the vector facility.
Add -march=z13.

tmxx.c: The LOCGR insn requires the load/store-on-condition facility.
Add -march=arch9.

memcheck/tests/s390x/Makefile.am
none/tests/s390x/Makefile.am

index 19153bbb00e7671efb19de0888edddaaf9aefece..5994ebe362a236e138d400b0742616375469c6dc 100644 (file)
@@ -20,3 +20,5 @@ vstrc_CFLAGS  = $(AM_CFLAGS) -march=z13
 vfae_CFLAGS   = $(AM_CFLAGS) -march=z13
 vistr_CFLAGS  = $(AM_CFLAGS) -march=z13
 vstrs_CFLAGS  = $(AM_CFLAGS) -march=z13
+vme_CFLAGS    = $(AM_CFLAGS) -march=z13
+tmxx_CFLAGS   = $(AM_CFLAGS) -march=arch9
index ba127c85a2a7432404b7498a1e032f637106ae42..56aa9f697e5b361fd2f3b38dbdbb4bed8dc101d2 100644 (file)
@@ -81,8 +81,12 @@ vector_float_CFLAGS    = $(AM_CFLAGS) -march=z13 -DS390_TEST_COUNT=4
 vec2_CFLAGS      = $(AM_CFLAGS) -march=z13
 vec2_float_CFLAGS = $(AM_CFLAGS) -march=z13
 vec3_CFLAGS       = $(AM_CFLAGS) -march=z13
+vecdiv_CFLAGS     = $(AM_CFLAGS) -march=z13
 bfp_arith_CFLAGS   = $(AM_CFLAGS) @FLAG_MLONG_DOUBLE_128@
 bfp_compare_CFLAGS = $(AM_CFLAGS) @FLAG_MLONG_DOUBLE_128@
 bfp_convert_CFLAGS = $(AM_CFLAGS) @FLAG_MLONG_DOUBLE_128@
 bfp_load_CFLAGS    = $(AM_CFLAGS) @FLAG_MLONG_DOUBLE_128@
 bfp_tdc_CFLAGS     = $(AM_CFLAGS) @FLAG_MLONG_DOUBLE_128@
+bfp_fpc_CFLAGS     = $(AM_CFLAGS) -march=arch9
+ex_CFLAGS          = $(AM_CFLAGS) -march=arch9
+exrl_CFLAGS        = $(AM_CFLAGS) -march=arch9