]> git.ipfire.org Git - thirdparty/valgrind.git/commit
s390x regtest: Refactor mul test cases for Clang support
authorAndreas Arnez <arnez@linux.ibm.com>
Fri, 29 Sep 2023 14:11:31 +0000 (16:11 +0200)
committerAndreas Arnez <arnez@linux.ibm.com>
Fri, 29 Sep 2023 14:11:31 +0000 (16:11 +0200)
commit3f401afeeea0b928a79cfd2ea143bb49593e4a3f
tree50621a6ff37bb14cdd847a733b1a7594703fbacd
parent38dabf70b40a511a17decd36b68148a2f31c38dc
s390x regtest: Refactor mul test cases for Clang support

The mul test case crashes when compiled with clang because of register
clashes in some inline assemblies.  Obviously clang does not treat
register clobbers as "early clobbers", but sometimes uses the same
registers for inputs as well.

Rewrite the inline assemblies in mul.h to avoid this issue.  Also, reduce
the code duplication in the process.  Adjust mul_GE.c accordingly.  Keep
the expected output for all mul test cases the same as before.
none/tests/s390x/mul.c
none/tests/s390x/mul.h
none/tests/s390x/mul_GE.c