AArch64 NEON comparison intrinsics ported to pragma framework.
AArch64 NEON comparison and test intrinsics are now handled by the pragma-based framework, simplifying their implementation and removing old built-ins.
This commit integrates several AArch64 NEON comparison intrinsics (e.g., vcage, vceqz, vcgtz) and the vtst intrinsic into GCC’s pragma-based framework. This modernization simplifies the intrinsic handling and allows for better code generation. Additionally, redundant __builtin_aarch64_cm* and __builtin_aarch64_fac* built-in functions have been removed, as they are no longer necessary and can be replaced by standard C comparison operators.
In Details
This patch ports a significant number of AArch64 NEON comparison intrinsics (e.g., vcage, vceqz, vcgtz, vcltz, vtst and their variants) from manual definition to the pragma-based intrinsic definition framework in aarch64-neon-builtins-base.def. This involves defining new function groups and updating the aarch64-simd.md machine description to accommodate the expanded pragma usage, particularly using VHSDF for mode iteration to include FP16 comparisons. It also removes now-unused __builtin_aarch64_cm* and __builtin_aarch64_fac* builtins, which were primarily used in `arm_fp1…
- NEON intrinsics
- Special functions provided by ARM's NEON architecture that allow programmers to directly access and control SIMD (Single Instruction, Multiple Data) operations for accelerated multimedia and signal processing tasks.
- pragma-based framework
- A compiler infrastructure that uses pragmas (compiler directives) to define and manage intrinsic functions, offering a more standardized and maintainable way to integrate them.
- SIMD
- Single Instruction, Multiple Data. A type of parallel processing where a single operation is performed on multiple data points simultaneously.
- FP16
- Half-precision floating-point format, using 16 bits to represent floating-point numbers. Offers reduced memory usage and potentially faster computation compared to single-precision (FP32).