Skip to content

Add frm operands to float/double instructions#2972

Open
moste00 wants to merge 1 commit into
capstone-engine:nextfrom
moste00:fix/frm_operand_in_float_instructions
Open

Add frm operands to float/double instructions#2972
moste00 wants to merge 1 commit into
capstone-engine:nextfrom
moste00:fix/frm_operand_in_float_instructions

Conversation

@moste00

@moste00 moste00 commented Jun 20, 2026

Copy link
Copy Markdown
Contributor

Your checklist for this pull request

  • I've documented or updated the documentation of every API function and struct this PR changes.
  • I've added tests that prove my fix is effective or that my feature works (if possible)

Detailed description

I previously ignored FRM operands in float/double instructions because I misjudged them as unnecessary.

However, FRM operands turned out to be important especially when stress-testing float/double instructions with different rounding modes.

Test plan

Added some fields to two existing details test.

Closing issues

@github-actions github-actions Bot added the RISCV Arch label Jun 20, 2026
@moste00

moste00 commented Jun 20, 2026

Copy link
Copy Markdown
Contributor Author

@Rot127 please review.

@moste00 moste00 force-pushed the fix/frm_operand_in_float_instructions branch 3 times, most recently from 51f5f99 to 2ea9114 Compare June 20, 2026 21:52
@github-actions github-actions Bot added the Python Bindings label Jun 20, 2026

@Rot127 Rot127 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Please document it in the v6 guide.

Comment thread include/capstone/riscv.h Outdated
Comment thread suite/cstest/src/test_detail_riscv.c Outdated
@moste00 moste00 force-pushed the fix/frm_operand_in_float_instructions branch from 2ea9114 to 5d4894a Compare June 20, 2026 22:22
@moste00 moste00 force-pushed the fix/frm_operand_in_float_instructions branch from 5d4894a to 6f02d7a Compare June 20, 2026 22:28
@moste00

moste00 commented Jun 20, 2026

Copy link
Copy Markdown
Contributor Author

@Rot127 done, sorry for the inconsistency of the test comparison, codex rolled up its own solution and I didn't catch it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants