Re: [kvm-unit-tests PATCH v3 1/2] s390x: Add specification exception test

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Kernel Development]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Info]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Linux Media]     [Device Mapper]

  Powered by Linux