From nobody Tue Dec 16 10:50:47 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of groups.io designates 66.175.222.12 as permitted sender) client-ip=66.175.222.12; envelope-from=bounce+27952+41431+1787277+3901457@groups.io; helo=web01.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zoho.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+41431+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1558990319; cv=none; d=zoho.com; s=zohoarc; b=fhGHY6OkvvbQyhbJbC5xDGn7h7ZuW3NK1bKKopzwg6ErwTwNkv5YAbXeYWmLx+2PDhDEbjALhm3CHfv/9iBQN6G+0jzCzkYnxLfFAMMb/bSwOsqUg6oyPver3DXmv5XUp31VD1AhQMR94HBrnWyIh0Ek8h/TsP9DIUSlWsvHFj8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1558990319; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Id:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To:ARC-Authentication-Results; bh=7G09jBXB60CWr9KHu6j8TwwlerWR1Vx8PKIKR4Ktoeo=; b=PEUZVCV8kHO8yKVl+mhqvg8T9XtX/oCu/b8/fQd8I6Z5FjKTEBvNg3/pMxaS3SK+Qf33mXe0UCizD7rjxrXIR7o1w35mB671pre8yZjFOFB73IQ7mKJrDAXcWThu8CtecHwo/wjJiVRHbMfTJVIfTg32uijSJl89vdNz9sKNVHg= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=pass; spf=pass (zoho.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+41431+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) header.from= Received: from web01.groups.io (web01.groups.io [66.175.222.12]) by mx.zohomail.com with SMTPS id 1558990319496384.0650869427068; Mon, 27 May 2019 13:51:59 -0700 (PDT) Return-Path: X-Received: from mail-wr1-f65.google.com (mail-wr1-f65.google.com [209.85.221.65]) by groups.io with SMTP; Mon, 27 May 2019 13:51:58 -0700 X-Received: by mail-wr1-f65.google.com with SMTP id r7so17928410wrr.13 for ; Mon, 27 May 2019 13:51:58 -0700 (PDT) X-Gm-Message-State: APjAAAWXQQKsgf5ywZBnFhuQZQC4Bkmg8tleu0msWDczBHsylNLuW9Ty 5yQhPSBXB8yc3PlOtAajC2PDDMDS3lppjQ== X-Google-Smtp-Source: APXvYqxx6PLOJ1YDtNN5qI/s/pUulwSBbzNa1eI1AlxblFXINuD7feGrBtIIUq4Enss/h94b5QyT5w== X-Received: by 2002:adf:f38a:: with SMTP id m10mr28949332wro.81.1558990315747; Mon, 27 May 2019 13:51:55 -0700 (PDT) X-Received: from sudo.home ([2a01:cb1d:112:6f00:ccdd:dadc:1517:f416]) by smtp.gmail.com with ESMTPSA id n1sm894808wrx.39.2019.05.27.13.51.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 27 May 2019 13:51:55 -0700 (PDT) From: "Ard Biesheuvel" To: devel@edk2.groups.io Cc: Ard Biesheuvel , Laszlo Ersek , "Gao, Liming" , "Wang, Jian J" , Leif Lindholm , Michael D Kinney Subject: [edk2-devel] [PATCH v2 7/7] ArmPkg/ArmLib ARM: set .fpu to let Clang 7 assemble ArmV7Support.S Date: Mon, 27 May 2019 22:51:41 +0200 Message-Id: <20190527205141.12344-8-ard.biesheuvel@linaro.org> In-Reply-To: <20190527205141.12344-1-ard.biesheuvel@linaro.org> References: <20190527205141.12344-1-ard.biesheuvel@linaro.org> MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,ard.biesheuvel@linaro.org Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1558990319; bh=6262kYOLj8LzvgIL4jpOX7I2+yPuQT6DChWfPOlQfHU=; h=Cc:Date:From:Reply-To:Subject:To; b=CcJibjWXyLzLxNUdWrkElz7w+vHc1jPx2YJdYkljx5k6da4PP8YNAtXuENdeQUNvcc5 eJQDCnzE7IScFWkyoyMCQ3nMZEL0qA8qMS8Jv4ejgUAA/xg6gn/RN8CN7k/Dp6Kjfq5hq YbU3tvBrIOvQ/JVPdMQKBR94iC62Tqer6+c= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Type: text/plain; charset="utf-8" Clang 7 complains about the vmsr instruction in ArmV7Support.S, which is only available on cores that implement some flavour of VFP. So set the .fpu to NEON like we do in some other places. Signed-off-by: Ard Biesheuvel Reviewed-by: Philippe Mathieu-Daude --- Note that the !clang alternative does not assembler for Clang-7 either so this is probably the most straightforward approach. ArmPkg/Library/ArmLib/Arm/ArmV7Support.S | 1 + 1 file changed, 1 insertion(+) diff --git a/ArmPkg/Library/ArmLib/Arm/ArmV7Support.S b/ArmPkg/Library/ArmL= ib/Arm/ArmV7Support.S index 16c56f72e973..b5a6b9ea487d 100644 --- a/ArmPkg/Library/ArmLib/Arm/ArmV7Support.S +++ b/ArmPkg/Library/ArmLib/Arm/ArmV7Support.S @@ -262,6 +262,7 @@ ASM_FUNC(ArmEnableVFP) #ifndef __clang__ mcr p10,#0x7,r0,c8,c0,#0 #else + .fpu neon vmsr fpexc, r0 #endif bx lr --=20 2.20.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#41431): https://edk2.groups.io/g/devel/message/41431 Mute This Topic: https://groups.io/mt/31813773/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-