[PATCH] aarch64: Enable +cssc for armv8.9-a

Richard Earnshaw (lists) Richard.Earnshaw@arm.com
Mon May 20 14:03:46 GMT 2024


On 13/05/2024 15:01, Andrew Carlotti wrote:
> FEAT_CSSC is mandatory in the architecture from Armv8.9.
> 
> ---
> 
> OK for master and backport to 2.42 branch?

The Arm ARM says that CSSC is only mandatory if AdvSIMD is present.  So I think we need a test that this is
removed if we have -march=armv8.9-a+nosimd.

R.

> 
> 
> diff --git a/gas/testsuite/gas/aarch64/cssc.d b/gas/testsuite/gas/aarch64/cssc.d
> index d41df24b916d26b0c71ad0435f3e83090268e4e7..f6ff9d207a2fd876793ac3769e87b524201d8cbb 100644
> --- a/gas/testsuite/gas/aarch64/cssc.d
> +++ b/gas/testsuite/gas/aarch64/cssc.d
> @@ -1,5 +1,6 @@
>  #name: CSSC extension
>  #as: -march=armv8-a+cssc
> +#as: -march=armv8.9-a
>  #objdump: -dr
>  
>  .*:     file format .*
> diff --git a/include/opcode/aarch64.h b/include/opcode/aarch64.h
> index 2fca9528c2012be983c2414a30fa5930e57e5c92..2d327e830497945cd691754176e4130e30ede492 100644
> --- a/include/opcode/aarch64.h
> +++ b/include/opcode/aarch64.h
> @@ -291,6 +291,7 @@ enum aarch64_feature_bit {
>  					 | AARCH64_FEATBIT (X, MOPS)	\
>  					 | AARCH64_FEATBIT (X, HBC))
>  #define AARCH64_ARCH_V8_9A_FEATURES(X)	(AARCH64_FEATBIT (X, V8_9A)	\
> +					 | AARCH64_FEATBIT (X, CSSC) \
>  					 | AARCH64_FEATBIT (X, SPEv1p4) \
>  					 | AARCH64_FEATBIT (X, SPE_CRR)	\
>  					 | AARCH64_FEATBIT (X, SPE_FDS) \



More information about the Binutils mailing list