[PATCH 1/2] selftests/arm64: Implement cmpbr_sigill() to hwcap test
Mark Brown
broonie at kernel.org
Sat Feb 28 05:23:31 PST 2026
On Fri, Feb 27, 2026 at 11:19:32AM +0800, Yifan Wu wrote:
> static void cmpbr_sigill(void)
> {
> - /* Not implemented, too complicated and unreliable anyway */
> + /* CBEQ x0, x0, +8 */
> + asm volatile(".inst 0x74C00040" : : : "x0");
> + /* UDF #0 */
> + asm volatile("udf #0" : : : );
> }
I don't expect it to make a difference but it'd be nice if these were a
single asm volatile statement, just to make it absolutely clear that no
instrumentation or anything is supposed to go between the two.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20260228/5b5532c1/attachment.sig>
More information about the linux-arm-kernel
mailing list