Andrea Corallo <andrea.cora...@arm.com> writes: > Hi all, > > I'd like to submit this patch introducing the following 64bit builtins > variants as FPCR and FPSR registers getter/setter: > > unsigned long long __builtin_aarch64_get_fpcr64 () > void __builtin_aarch64_set_fpcr64 (unsigned long long) > unsigned long long __builtin_aarch64_get_fpsr64 () > void __builtin_aarch64_set_fpsr64 (unsigned long long) > > Regards > Andrea > > gcc/ChangeLog: > > 2020-??-?? Andrea Corallo <andrea.cora...@arm.com> > > * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add enums > for 64bits fpsr/fpcr getter setters builtin variants. > (aarch64_init_fpsr_fpcr_builtins): New function. > (aarch64_expand_fcr_fpsr_builtin): New function. > (aarch64_general_expand_builtin): Modify to make use of the later. > * config/aarch64/aarch64.md (UNSPECV_GET_FPCR64) > (UNSPECV_SET_FPCR64, UNSPECV_GET_FPSR64, UNSPECV_SET_FPSR64): Add > 4 new unpecv. > (set_fpcr64, get_fpcr64,set_fpsr64, get_fpsr64): New patterns. > * doc/extend.texi (__builtin_aarch64_get_fpcr64) > (__builtin_aarch64_set_fpcr64, __builtin_aarch64_get_fpsr64) > (__builtin_aarch64_set_fpsr64): Add into AArch64 Built-in > Functions. > > gcc/testsuite/ChangeLog: > > 2020-??-?? Andrea Corallo <andrea.cora...@arm.com> > > * gcc.target/aarch64/get_fpcr64.c: New test. > * gcc.target/aarch64/set_fpcr64.c: New test. > * gcc.target/aarch64/get_fpsr64.c: New test. > * gcc.target/aarch64/set_fpsr64.c: New test.
Hi all, Leaving aside 2/2, I've retested this one (1/2) on top of current master. Regtested and bootstrapped on aarch64-linux-gnu. Is it okay for trunk? Regards Andrea