]> git.ipfire.org Git - thirdparty/valgrind.git/commit
s390x regtest: Add missing memory clobbers in mvc.c
authorAndreas Arnez <arnez@linux.ibm.com>
Fri, 8 Nov 2024 13:52:11 +0000 (14:52 +0100)
committerAndreas Arnez <arnez@linux.ibm.com>
Fri, 8 Nov 2024 13:52:11 +0000 (14:52 +0100)
commitb8e517e9acfec7dd6ec3b9bd46ec2b2eaecd83cc
tree26a4321c051626e6783390b320b492e727c1ebf8
parent1cc58e418952fa75d902bf0bc02efd410aaf58a4
s390x regtest: Add missing memory clobbers in mvc.c

The s390x test case `mvc' was seen to fail when using gcc -O3 with GCC
11.4.1 on Ubuntu:

   mvc: mvc.c:48: main: Assertion `full[i] == 'x'' failed.

In this case the compiler optimized the assertion check away, because it
doesn't consider `full' to be affected by the inline assembly.

Add memory clobbers to fix this.
none/tests/s390x/mvc.c