From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B7F21C0015E for ; Tue, 1 Aug 2023 15:09:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=ZD/T/EwSEKhKpUqwvecswp+jDEm8QZCjcXt0KbG4RoA=; b=v1j6qVteAI9yjU R4RHOO5l44vpOPp5uEl4FGy5tMur8oemFjxP0v401oeRmaLxsRkx1mjf6Zm5Mr3HakNbz8e8Ps/OX wJFJi2YfA30EOckt68rw3JWFj4mu6/nnmpDqxIbgUaEqhb0vDg3i/h1Q7+kx2mKI9iHQREL3Ep6Wa u3n6XpkHHoS5TVL+rgFzdOFaKPF7S+WbNVbyFw06fNEWXTdgyA3LSd7zirhhcqdSN4ScbZYV2ujik zKb109LgYohUzpMxKw0UdQY6CdpwKy3N/6kD6eRKPNPlfgMD8F7QIcI9LU3KYH92tc04F8qRkEH8+ Uorf9heHlW6LRmufTaeg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qQqzz-002gDM-2d; Tue, 01 Aug 2023 15:09:23 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qQqzw-002gCP-24 for linux-arm-kernel@lists.infradead.org; Tue, 01 Aug 2023 15:09:21 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 0F58B615E1; Tue, 1 Aug 2023 15:09:20 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 85F06C433C8; Tue, 1 Aug 2023 15:09:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1690902559; bh=lucbuSGSPDtyg7+i3HLsSscYZ1ld2AqdSOcpacJgf7w=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=HjfmW4j3lGmv0mLLdQ+Kz+98Jx4sahUeqwtmJF6c2QjQimI0mVR2U7zSr4DLguDbe 8D0eAa4UDiGWu3gB5Gr8/uN3fUoUpmdWcBfkRDovZ/Zpz8eHWeLZPTsOAICxFtD9Pb GJWX/+hxxVOn5U6g8qnkMsw73RMLh+JiQpiUfxR0gurtARjBQ5p7QAElgt7UzrjM97 ZE6UJLIF94CpP1xDyj/hKN9c8z1KuvFZBmZKyx07/H/HNOUHh/EW15f4uU3Hx2N2+4 ok0M8R1Z4xeWaKtLDeltyR3PPfbQW9o2vixnvKh1sS4nff0btllyYT5MRfK15PfZnO iQJ7L3NHawQZg== Date: Tue, 1 Aug 2023 16:09:14 +0100 From: Will Deacon To: Joey Gouly Cc: linux-arm-kernel@lists.infradead.org, nd@arm.com, catalin.marinas@arm.com Subject: Re: [PATCH v1 2/2] selftests/arm64: add HWCAP2_HBC test Message-ID: <20230801150914.GH26253@willie-the-truck> References: <20230801100008.3125054-1-joey.gouly@arm.com> <20230801100008.3125054-3-joey.gouly@arm.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20230801100008.3125054-3-joey.gouly@arm.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230801_080920_729045_34714086 X-CRM114-Status: GOOD ( 17.31 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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 > Cc: Catalin Marinas > Cc: Will Deacon > --- > 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 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel