Repository navigation
Add one-way Zfh format-conversion tests - #671
Merged
aswaterman merged 1 commit intoOct 14, 2026
Merged
Conversation
aswaterman
approved these changes
Oct 14, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Round-trip Zfh checks of final half-precision bits and flags let paired raw register copies pass.
We check FCVT.S.H, FCVT.H.S, FCVT.D.H and FCVT.H.D one way on exactly representable -1.5 inputs, destination bits and zero exception flags. The RV32 wrapper inherits single/half cases.
Version: riscv-tests
7b68f7b91f827f8d94cc1c57ff123752c5c8f704, riscv-test-env6de71edb142be36319e380ce782c3d1830c65d68, Spike17e8a69fb75546dea445cfc0fb78769d2510f339, RISC-V GCC 13.2.0, GNU assembler 2.42.66 selected RV32/RV64 F/D/Zfh scalar p-environment programs pass before and after, with RV32 Zfh selected explicitly because the Makefile omits its Makefrag. Synthetic raw-copy faults pass the old tests and fail the new ones.
Fixes #670
— ChipLab