Skip to content

Fix missing Zfbfmin transfer instructions - #446

Merged
Andrew Waterman (aswaterman) merged 1 commit into
riscv:masterfrom
vera-rubin:fix/zfbfmin-transfers
Nov 29, 2026
Merged

Andrew Waterman (aswaterman) merged 1 commit into
riscv:masterfrom
vera-rubin:fix/zfbfmin-transfers

Conversation

@vera-rubin

Copy link
Copy Markdown
Contributor

Selecting F and Zfbfmin for RV32 or RV64 generates the two BF16 conversions but omits FLH, FSH, FMV.X.H and FMV.H.X from JSON and C output. The ratified Zfbfmin specification includes all six instructions and depends on F, not on Zfhmin.

make encoding.out.h EXTENSIONS='rv_i rv32_i rv_zicsr rv_f rv_zfbfmin'

extensions/rv_zfbfmin now imports the four shared transfer instructions from rv_zfhmin, so they are generated without selecting Zfhmin.

The new test_zfbfmin_instructions checks the match and mask of all six instructions for RV32 and RV64 without Zfhmin. It fails before this change and passes after it, along with the rest of tests/test.py (18 tests). Default artifact generation still passes and encoding.out.h is unchanged.

@aswaterman

Copy link
Copy Markdown
Member

Nathan Chandrasekar (@vera-rubin) can you fix the required DCO check and ping me afterwards?

Signed-off-by: vera-rubin <322284620+vera-rubin@users.noreply.github.com>
@vera-rubin

Copy link
Copy Markdown
Contributor Author

Andrew Waterman (@aswaterman) the commit is signed off now, and I rebased it on master to resolve the conflict with #444: the two existing fcvt lines keep the new fd fs1 operands and the four $import rv_zfhmin::... lines are unchanged. The tests pass on the rebased branch.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks!

@aswaterman
Andrew Waterman (aswaterman) merged commit 86e2ea2 into riscv:master Nov 29, 2026
1 check 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.

2 participants