On 26/10/2021 15.41, Claudio Imbrenda wrote:
On Tue, 26 Oct 2021 14:00:31 +0200
Janis Schoetterl-Glausch <scgl@xxxxxxxxxxxxxxxxxx> wrote:
[...]
since you're ignoring the return value, can't you hardcode r6, and mark
it (and r7) as clobbered? like:
"lpq 6, %[bad]"
: : [bad] "T"(words[1])
: "%r6", "%r7"
Ok, btw. is there a reason bare register numbers seem to be more common
compared to %%rN ?
I don't know, I guess laziness?
FWIW, older versions of Clang do not support bare register numbers on s390x,
so it's better to use %%rN, AFAIK...
OTOH, we cannot compile the kvm-unit-tests with older versions of Clang
anyway, so it likely doesn't matter here.
Thomas