Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Opcode entries of vmsge{,u}.vx #119

Merged
merged 1 commit into from
Aug 11, 2023
Merged

Conversation

a4lg
Copy link
Owner

@a4lg a4lg commented Aug 6, 2023

@a4lg a4lg added the bug Something isn't working label Aug 6, 2023
@a4lg a4lg force-pushed the riscv-opcode-fix-vmsge-vx branch 5 times, most recently from c520a3d to 430544e Compare August 11, 2023 01:54
Their check_func should be "match_never", not "match_opcode".  The reasons
this error did not cause any disassembler errors are:

1.  The problem will not reproduce if "no-aliases" is specified
    (because macro instructions are handled as aliases).
2.  If not, all affected compressed instructions or their aliases
    precede before "vmsge{,u}.vx" macro instructions.

However, it'll easily break if we reorder opcode entries.  This commit
fixes this issue before the *accident* occurs.

opcodes/ChangeLog:

	* riscv-opc.c (riscv_opcodes): Make sure that we never match to
	vmsge{,u}.vx instructions unless specified in the assembler.
@a4lg a4lg force-pushed the riscv-opcode-fix-vmsge-vx branch from 430544e to 934ee74 Compare August 11, 2023 03:56
@a4lg a4lg merged commit 934ee74 into master Aug 11, 2023
@a4lg a4lg deleted the riscv-opcode-fix-vmsge-vx branch August 11, 2023 03:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant