KhronosGroup / KhronosGroup/OpenCL-CTS

Possible edge case issue with asinpi(half)

Open
#2,693 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
232
Forks
235
Avg merge
8d 7h
Merged PRs (30d)
18

Description

I am seeing this test_bruteforce failure on my implementation:

...
math_edge_cases...
float
half
FAIL: asinpi(0x4000) - expected NaN, got 0x0000
FAIL: asinpi(0xc000) - expected NaN, got 0x8000
double
math_edge_cases FAILED
...

But with a different test program I get:
0.00 ulp at (0x1.000p+1): *nan vs nan

I suspect an issue with this new bruteforce edge case test.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the test_bruteforce failure in math_edge_cases for the half-precision asinpi cases 0x4000 and 0xc000, then compare it with the separate test program's NaN result. Determine whether the edge-case test or the implementation produces the inconsistent expectation; done means the test and implementation agree for these cases.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
testing-qa
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.