GCC Newspaper
NOVEMBER 30, 2026
Date
/
Architectures
Components
Topics
News & Policy
Other
aarch64

Fix FP16 scalar comparison intrinsics return value

Corrects the return value of FP16 scalar comparison intrinsics in arm_fp16.h to -1 for true.

This change addresses an issue in aarch64’s arm_fp16.h where FP16 scalar comparison intrinsics incorrectly returned 1 for true instead of the expected -1. The fix ensures accurate comparison results for FP16 data types.

In Details

The aarch64 backend's arm_fp16.h defines scalar comparison intrinsics for FP16 data. A recent change replaced direct __builtin_* calls with C comparison operators. This commit corrects the return value of these intrinsics to align with the expected -1 for true, resolving a logical error in comparison outcomes.

Filed Under: aarch64fp16intrinsics