Skip to content

Conversation

Rot127
Copy link
Collaborator

@Rot127 Rot127 commented Oct 5, 2024

The immediate given to decodeImm8_sh8Operand has been already shifted. Checking if it is an 8bit value fails therefore.

decodeImm8_sh8Operand gets called from XtensaGenDisassemblerTables.inc like this:

...
    if (!Check(S, DecodeARRegisterClass(MI, tmp, Address, Decoder))) { return MCDisassembler::Fail; }
    tmp = fieldFromInstruction(insn, 16, 8) << 8;
    if (!Check(S, decodeImm8_sh8Operand(MI, tmp, Address, Decoder))) { return MCDisassembler::Fail; }
    return S;
...

The immediate given to decodeImm8_sh8Operand has been already shifted.
Checking if it is an 8bit value fails therefore.
@Rot127 Rot127 changed the base branch from auto-sync to auto-sync-18 October 5, 2024 10:03
@Rot127
Copy link
Collaborator Author

Rot127 commented Oct 5, 2024

@andreisfr You maintain the LLVM target?

@Rot127 Rot127 merged commit 290cd07 into capstone-engine:auto-sync-18 Nov 5, 2024
3 checks passed
@Rot127 Rot127 deleted the xtensa-assert branch November 5, 2024 17:03
@Rot127
Copy link
Collaborator Author

Rot127 commented Nov 5, 2024

@imbillow Didn't merge this one. Please check it in the Capstone code.

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