]> git.ipfire.org Git - thirdparty/valgrind.git/commit
s390x regtest: Fix memcheck tests for cu21 and cu42 with Clang
authorAndreas Arnez <arnez@linux.ibm.com>
Thu, 19 Oct 2023 12:17:35 +0000 (14:17 +0200)
committerAndreas Arnez <arnez@linux.ibm.com>
Thu, 19 Oct 2023 12:27:16 +0000 (14:27 +0200)
commit29d8cc5c6a718d1af89d0ad3241e445994b16add
treea28e7c81285a54da7173f45d36d2f98bffc6ec4c
parent7cf98163adb3f0d9dad28ad952325e91955811a4
s390x regtest: Fix memcheck tests for cu21 and cu42 with Clang

When compiled with Clang, the s390x memcheck tests for cu21 and cu42 yield
different line number information for the inline assemblies.  Using gcc,
the inline assemblies do not receive updated line number information
because they are phrased as if they were data, not code.  See also the
discussion in https://sourceware.org/bugzilla/show_bug.cgi?id=30206

Fix this by rephrasing the inline assemblies in cu21 and cu42 to normal
instructions, using the respective mnemonics.  Since this affects the line
number information, adjust the expected test output files as well.
memcheck/tests/s390x/cu21.c
memcheck/tests/s390x/cu21.stderr.exp
memcheck/tests/s390x/cu42.c
memcheck/tests/s390x/cu42.stderr.exp