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

negu not detected as alias of subu. #2628

Open
Rot127 opened this issue Feb 19, 2025 · 0 comments
Open

negu not detected as alias of subu. #2628

Rot127 opened this issue Feb 19, 2025 · 0 comments
Labels
bug Something is not working as it should Mips Arch

Comments

@Rot127
Copy link
Collaborator

Rot127 commented Feb 19, 2025

Work environment

Questions Answers
System Capstone runs on OS/arch/bits Fedora x86_64
Capstone module affected Mips
Source of Capstone git clone
Version/git commit 8ac2843 (HEAD, tag: 6.0.0-Alpha3)

Instruction bytes giving faulty results

cstool -d -r mips 00071823
 0  00 07 18 23  negu	$v1, $a3
	ID: 66 (subu)
	Is alias: 0 (invalid) with REAL operand set
	op_count: 3
		operands[0].type: REG = v1
		operands[0].is_reglist: false
		operands[1].type: REG = zero
		operands[1].is_reglist: false
		operands[2].type: REG = a3
		operands[2].is_reglist: false
	Groups: HasStdEnc NotInMicroMips NotNanoMips 

Expected results

It should be:

	ID: 66 (subu)
	Is alias: <ALIAS_ID> (negu) with REAL operand set
...

Steps to get the wrong result

With cstool:

cstool -d -r mips 00071823

Additional Logs, screenshots, source code, configuration dump, ...

...

@Rot127 Rot127 added bug Something is not working as it should Mips Arch labels Feb 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is not working as it should Mips Arch
Projects
None yet
Development

No branches or pull requests

1 participant