Landing: 52330debcdf1

Project / Subsystem

gcc / aarch64

Date

2026-09-21

Author

Matt Turner

Commit

52330debcdf1fcbb858aa1a07d10c5c286828a97

Source

github

Perf win

Yes

Breaking

No

All attributes

project
gcc
subsystem
aarch64
patch_id
—
commit_hash
52330debcdf1fcbb858aa1a07d10c5c286828a97
source_type
github
headline
AArch64: Support HFmode and BFmode in isinf, isfinite and isnan [PR 66462]
tldr
AArch64 now correctly handles floating-point classification for 16-bit formats (_Float16 and __bf16) in isinf, isfinite, and isnan.
author
Matt Turner
outcome
committed
performance_win
true
breaking_change
false
series_id
gcc:aarch64: support hfmode and bfmode in isinf, isfinite and isnan [pr 66462]
series_parts
[]
tags
  • • aarch64
  • • floating-point
  • • builtins
discussion_id_link
github:gcc-mirror/gcc#66462
bugzilla_pr
—
date
2026-09-21T00:00:00.000Z

The AArch64 backend now supports __builtin_isinf, __builtin_isfinite, and __builtin_isnan for the 16-bit floating-point formats HFmode (_Float16) and BFmode (__bf16). Previously, these built-ins were limited to single (SFmode) and double (DFmode) precision, forcing classification through less accurate floating-point comparisons for smaller types. The new implementation uses integer arithmetic on a zero-extended representation of the floating-point values.