Skip to content

initial RISC-V support#2614

Merged
bashbaug merged 1 commit intoKhronosGroup:mainfrom
franz:riscv_cts
Mar 17, 2026
Merged

initial RISC-V support#2614
bashbaug merged 1 commit intoKhronosGroup:mainfrom
franz:riscv_cts

Conversation

@franz
Copy link
Contributor

@franz franz commented Feb 13, 2026

Unlike related PR #2344 that simply warns about unsupported FTZ, this PR attempts to correctly handle FTZ on RISC-V.
RISC-V 'f' extension does not support any way to enable/disable flushing subnormals to zero, implementations are required to always support subnormals. Therefore this PR re-uses FTZ handling code from PPC, where flushing also has to be explicitly performed.

Copy link
Contributor

@pjaaskel pjaaskel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

RISC-V 'f' extension does not support any way to enable/disable flushing
subnormalz to zero, implementations are required to handle subnormals.
Therefore this commit re-uses FTZ handling code from PPC, where FTZ also
has to be explicitly performed.
Copy link
Contributor

@bashbaug bashbaug left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Changes appear to be additive or obvious fixes (e.g. renames), so support for existing platforms should not be affected.

@bashbaug
Copy link
Contributor

Merging as discussed in the March 17th teleconference.

@bashbaug bashbaug merged commit 4e3f16b into KhronosGroup:main Mar 17, 2026
8 checks passed
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.

3 participants