Skip to content

Add tests on transcendental values - #3

Merged
bfierz merged 1 commit into
mainfrom
add-transcendental-tests
Sep 12, 2026
Merged

bfierz merged 1 commit into
mainfrom
add-transcendental-tests

Conversation

@bfierz

@bfierz bfierz commented Sep 11, 2026 •

Copy link
Copy Markdown
Contributor
  • Added edge-case test coverage for sqrt/rsqrt/rcp/log across float4/float8/float16: NaN, negative input, ±Infinity, zero, denormals, the log polynomial's internal branch boundary, and rsqrt/rcp` accuracy across a wide magnitude range — closing the "only one epsilon check, no boundary values" gap the original tests had.
  • Fixed a real bug the new tests surfaced: NEON's sqrt(+Infinity) returned NaN instead of +Inf, because its sqrt is emulated as v * rsqrt(v) and rsqrt(+Inf) underflows to 0, hitting the classic Inf * 0 = NaN trap. Added an explicit +Inf special case in weaver_vsqrtq_f32.

@bfierz
bfierz force-pushed the add-transcendental-tests branch from cc1b7f2 to 8cfa398 Compare September 12, 2026 16:12
@bfierz
bfierz merged commit 1c7bf0e into main Sep 12, 2026
26 checks passed
@bfierz
bfierz deleted the add-transcendental-tests branch September 12, 2026 16:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant