[PATCH v1 2/2] selftests/arm64: add HWCAP2_HBC test
Will Deacon
will at kernel.org
Tue Aug 1 08:09:14 PDT 2023
On Tue, Aug 01, 2023 at 11:00:08AM +0100, Joey Gouly wrote:
> Add a test for the newly added HWCAP2_HBC.
>
> Signed-off-by: Joey Gouly <joey.gouly at arm.com>
> Cc: Catalin Marinas <catalin.marinas at arm.com>
> Cc: Will Deacon <will at kernel.org>
> ---
> tools/testing/selftests/arm64/abi/hwcap.c | 15 +++++++++++++++
> 1 file changed, 15 insertions(+)
>
> diff --git a/tools/testing/selftests/arm64/abi/hwcap.c b/tools/testing/selftests/arm64/abi/hwcap.c
> index d4ad813fed10..296102cd9192 100644
> --- a/tools/testing/selftests/arm64/abi/hwcap.c
> +++ b/tools/testing/selftests/arm64/abi/hwcap.c
> @@ -208,6 +208,13 @@ static void svebf16_sigill(void)
> asm volatile(".inst 0x658aa000" : : : "z0");
> }
>
> +static void hbc_sigill(void)
> +{
> + /* BC.EQ +4 */
> + asm volatile("cmp xzr, xzr\n"
> + ".inst 0x54000030" : : :);
> +}
Do you need a "cc" clobber here, or is that implicit somehow?
Will
More information about the linux-arm-kernel
mailing list