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 3740CD2C54E for ; Tue, 22 Oct 2024 13:12:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=L819H4TgTpR7m/nNd75LAwuiLs++CdEcR+lmxCWgMZI=; b=kkDHj70PklNbGdROfgt5vBKN7h Y2UHypZ1hoSzhZFkg6u5rcOlpzOPOzwBgbyj3uu7OqsI6B+X868InUBf8adtejmj0GBGmjOFSJs3Z mtvDbchsUVKz3oi1ynHA7kWtSdHqHn6F9dyWqTRXo1IRrxldwStQPESvl/CwwcVJu4MgtEM6MlSa5 vFKNAyWh/uQZs4hKLFWBWBWKWwzdlTcjt6pTCsaUnCZeoWEKWWrBwi3YrPF26Bv1g/TTkRU0D92jc RcMDZ05PnNAxu+kGIvsBJbeO1wS56OFgXxr0POC1ENfSqWTAN8KhN7zehZfFyu83VoX4rf0jvoU7M o3+AhlIw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t3EgN-0000000Auog-14Ej; Tue, 22 Oct 2024 13:12:19 +0000 Received: from out-187.mta1.migadu.com ([2001:41d0:203:375::bb]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t3Eeq-0000000Aufq-2n34 for linux-arm-kernel@lists.infradead.org; Tue, 22 Oct 2024 13:10:46 +0000 Date: Tue, 22 Oct 2024 15:10:31 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1729602637; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=L819H4TgTpR7m/nNd75LAwuiLs++CdEcR+lmxCWgMZI=; b=Oa3jcEppLsYfNnHi1uKat6MfBfJXbqsxyXPAxQRICu+j36vjI5PNP8UF4XGv39oez+vJbE 0I6kM/2WPBi0WvkoqIy4sruOybnk3TzEWGN1CUDrHGdQpys59oYTsryTC0AqwZkWrhDVgQ uoYlB81fDSXflTVwWCDRx/GEbDXzqic= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Andrew Jones To: Raghavendra Rao Ananta Cc: Subhasish Ghosh , Joey Gouly , Oliver Upton , Marc Zyngier , linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, linux-kernel@vger.kernel.org, kvm@vger.kernel.org Subject: Re: [kvm-unit-tests PATCH 0/3] Fix arm64 clang errors on fpu tests Message-ID: <20241022-2c60a0bcbb908435aa91d1ff@orel> References: <20241022004710.1888067-1-rananta@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20241022004710.1888067-1-rananta@google.com> X-Migadu-Flow: FLOW_OUT X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241022_061045_318790_98458220 X-CRM114-Status: GOOD ( 11.27 ) 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Tue, Oct 22, 2024 at 12:47:07AM +0000, Raghavendra Rao Ananta wrote: > When compiled with clang for arm64, some build errors were observed > along the fpu code. Moreover, data aborts were seen while running > the arm/fpu test due to misconfigured input/output args in the inline > assembly. > > The series tries to addresses these issues. > > - Raghavendra > > Raghavendra Rao Ananta (3): > arm: Fix clang error in sve_vl() > arm: fpu: Convert 'q' registers to 'v' to satisfy clang > arm: fpu: Fix the input/output args for inline asm in fpu.c > > arm/fpu.c | 46 +++++++++++++++++++-------------------- > lib/arm64/asm/processor.h | 2 +- > 2 files changed, 24 insertions(+), 24 deletions(-) > > > base-commit: f246b16099478a916eab37b9bd1eb07c743a67d5 > -- > 2.47.0.105.g07ac214952-goog > Hi Raghavendra, With clang 18.1.8 (Fedora 18.1.8-1.fc40) I get a bunch of errors like these arm/fpu.c:281:3: error: instruction requires: fp-armv8 I used my cross-clang series[1] and configured with ./configure --arch=arm64 --cc=clang --cflags='--target=aarch64' --cross-prefix=aarch64-linux-gnu- [1] https://lore.kernel.org/all/20240911091406.134240-7-andrew.jones@linux.dev/ Thanks, drew