]> git.ipfire.org Git - thirdparty/valgrind.git/commit
s390x: Fix inline assembly for STFLE
authorAndreas Arnez <arnez@linux.ibm.com>
Mon, 29 Sep 2025 14:11:04 +0000 (16:11 +0200)
committerAndreas Arnez <arnez@linux.ibm.com>
Mon, 29 Sep 2025 14:11:04 +0000 (16:11 +0200)
commit69e975e759c81a7790eb1f0e58881cef64c560c6
treebadd9072b9cacc77eea387a0653a58be51f186c6
parent78aa1064d8d7d46ebfb5ce488ff3355ce0db16cd
s390x: Fix inline assembly for STFLE

The inline assembly for emitting the STFLE instruction changes GPR 0, but
fails to mention it in the clobber list.  Depending on the compiler's
mood, this may result in wrong code.

A simple fix would be to just add "0" to the clobber list, but for
readability it also helps to move the inline assembly to a separate
function.  So do that.  In that function, use an "asm" variable for GPR 0
instead of moving the value back and forth between registers.
coregrind/m_extension/extension-s390x.c