[PATCH 3/3] aarch64: add fpm register helper functions.

Claudio Bantaloukas claudio.bantaloukas@arm.com
Mon Jul 22 09:25:06 GMT 2024


The ACLE declares several helper types and functions to
facilitate construction of `fpm` arguments.

gcc/ChangeLog:

	* config/aarch64/arm_acle.h (fpm_t): New type representing fpmr values.
	(enum __ARM_FPM_FORMAT): New enum representing valid fp8 formats.
	(enum __ARM_FPM_OVERFLOW): New enum representing how some fp8
	calculations work.
	(arm_fpm_init): New.
	(arm_set_fpm_src1_format): Likewise.
	(arm_set_fpm_src2_format): Likewise.
	(arm_set_fpm_dst_format): Likewise.
	(arm_set_fpm_overflow_cvt): Likewise.
	(arm_set_fpm_overflow_mul): Likewise.
	(arm_set_fpm_lscale): Likewise.
	(arm_set_fpm_lscale2): Likewise.
	(arm_set_fpm_nscale): Likewise.

gcc/testsuite/ChangeLog:

	* gcc.target/aarch64/acle/fp8-helpers.c: New test of fpmr helper functions.
---
 gcc/config/aarch64/arm_acle.h                 | 37 +++++++++++++
 .../gcc.target/aarch64/acle/fp8-helpers.c     | 52 +++++++++++++++++++
 2 files changed, 89 insertions(+)
 create mode 100644 gcc/testsuite/gcc.target/aarch64/acle/fp8-helpers.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-aarch64-add-fpm-register-helper-functions.patch
Type: text/x-patch
Size: 3571 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20240722/34675d98/attachment.bin>


More information about the Binutils mailing list