Skip to content

math bruteforce is not testing edge case behavior #2641

@bashbaug

Description

@bashbaug

Both the OpenCL C spec and the OpenCL SPIR-V environment spec describe required edge case behavior for certain math functions. These sections also reference the C99 specifications, which describe required edge case behavior for other math functions:

Note that these sections both say: "Those values shall produce exactly the prescribed answers, and no other."

As far as I can tell, though, these edge case behaviors are not tested for in the math bruteforce tests or elsewhere. Instead, for these inputs, the usual tests for math accuracy apply. Do we need dedicated tests for these edge case values?

Metadata

Metadata

Assignees

No one assigned

    Labels

    cognizant-backlogIssue approved by WG for Cognizant to work onin_developmentMobica is currently working on this

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions