We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
On next branch (f7efa08), there are too many IMM operands:
./cstool -d arm64 '\x20\x98\xe0\x5e' 0 20 98 e0 5e cmeq d0, d1, #0 ID: 97 (cmeq) op_count: 4 operands[0].type: REG = d0 operands[0].access: WRITE operands[1].type: REG = d1 operands[1].access: READ operands[2].type: IMM = 0x0 operands[3].type: IMM = 0x0 Registers read: d1 Registers modified: d0 Groups: neon
From v4.0.1
cstool -d arm64 '\x20\x98\xe0\x5e' 0 20 98 e0 5e cmeq d0, d1, #0 op_count: 3 operands[0].type: REG = d0 operands[0].access: WRITE operands[1].type: REG = d1 operands[1].access: READ operands[2].type: IMM = 0x0 Registers read: d1 Registers modified: d0 Groups: neon
The text was updated successfully, but these errors were encountered:
I think this is where the problem is https://github.com/aquynh/capstone/blob/1766485c0c32419e9a17d6ad31f9e218ef4f018f/arch/AArch64/AArch64GenAsmWriter.inc#L11036-L11039
That file says not to edit directly, but I'm not sure how op_addImm(MI, 0); got in there? It doesn't appear in the entry above it https://github.com/aquynh/capstone/blob/1766485c0c32419e9a17d6ad31f9e218ef4f018f/arch/AArch64/AArch64GenAsmWriter.inc#L11029-L11032 or any of the other entries close to it in the file.
op_addImm(MI, 0);
Removing op_addImm(MI, 0); works for me.
From LLVM-10 disassembler:
$ echo "0x20 0x98 0xe0 0x5e" | llvm-mc --disassemble --show-encoding --show-inst-operands --show-inst --arch=aarch64 .text cmeq d0, d1, #0 // encoding: [0x20,0x98,0xe0,0x5e] // <MCInst #556 CMEQv1i64rz // <MCOperand Reg:41> // <MCOperand Reg:42>>
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
On next branch (f7efa08), there are too many IMM operands:
From v4.0.1
The text was updated successfully, but these errors were encountered: