[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAKv+Gu-myRS5FWEVucdpS5zUXM+UjBdMGCiFbgu0=3=T8-9LFQ@mail.gmail.com>
Date: Wed, 4 Mar 2020 08:39:54 +0100
From: Ard Biesheuvel <ard.biesheuvel@...aro.org>
To: Stefan Agner <stefan@...er.ch>
Cc: Herbert Xu <herbert@...dor.apana.org.au>,
"David S. Miller" <davem@...emloft.net>,
Russell King <linux@...linux.org.uk>,
Manoj Gupta <manojgupta@...gle.com>,
Jian Cai <jiancai@...gle.com>,
"open list:HARDWARE RANDOM NUMBER GENERATOR CORE"
<linux-crypto@...r.kernel.org>,
linux-arm-kernel <linux-arm-kernel@...ts.infradead.org>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
clang-built-linux <clang-built-linux@...glegroups.com>
Subject: Re: [PATCH] crypto: arm/ghash-ce - define fpu before fpu registers
are referenced
On Mon, 2 Mar 2020 at 00:37, Stefan Agner <stefan@...er.ch> wrote:
>
> Building ARMv7 with Clang's integrated assembler leads to errors such
> as:
> arch/arm/crypto/ghash-ce-core.S:34:11: error: register name expected
> t3l .req d16
> ^
>
> Since no FPU has selected yet Clang considers d16 not a valid register.
> Moving the FPU directive on-top allows Clang to parse the registers and
> allows to successfully build this file with Clang's integrated assembler.
>
> Signed-off-by: Stefan Agner <stefan@...er.ch>
Acked-by: Ard Biesheuvel <ardb@...nel.org>
> ---
> arch/arm/crypto/ghash-ce-core.S | 5 +++--
> 1 file changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/arch/arm/crypto/ghash-ce-core.S b/arch/arm/crypto/ghash-ce-core.S
> index 534c9647726d..9f51e3fa4526 100644
> --- a/arch/arm/crypto/ghash-ce-core.S
> +++ b/arch/arm/crypto/ghash-ce-core.S
> @@ -8,6 +8,9 @@
> #include <linux/linkage.h>
> #include <asm/assembler.h>
>
> + .arch armv8-a
> + .fpu crypto-neon-fp-armv8
> +
> SHASH .req q0
> T1 .req q1
> XL .req q2
> @@ -88,8 +91,6 @@
> T3_H .req d17
>
> .text
> - .arch armv8-a
> - .fpu crypto-neon-fp-armv8
>
> .macro __pmull_p64, rd, rn, rm, b1, b2, b3, b4
> vmull.p64 \rd, \rn, \rm
> --
> 2.25.1
>
Powered by blists - more mailing lists