capstone icon indicating copy to clipboard operation
capstone copied to clipboard

ARM64: Unable to decode `luti2` and `luti4` instructions

Open TIHan opened this issue 1 year ago • 3 comments

When using cstool, I'm not able to decode ARM64 luti2 and luti4 instructions.

Here are some examples:

Hexcode: 00B02045 Should output: luti2 z0.b, { z0.b }, z0[0] But cstool fails and stops decoding altogether.

Hexcode: 55B17545 Should output: luti2 z21.b, { z10.b }, z21[1] But again, cstool fails and stops decoding.

TIHan avatar Feb 10 '24 01:02 TIHan

So after investigating it a little, I couldn't spot the problem immediately. Which means it is likely somewhere in the generated files. Because we will update to LLVM 18 soon anyway, it is better to fix it there IMHO (if it doesn't solve itself anyways). Same for https://github.com/capstone-engine/capstone/issues/2268

Rot127 avatar Feb 15 '24 03:02 Rot127

That makes sense. Thank you for looking at it. Will be looking forward to the LLVM 18 update.

TIHan avatar Feb 15 '24 03:02 TIHan

It was indeed added in LLVM-18. So this will be closed once https://github.com/capstone-engine/capstone/pull/2298 is merged.

Rot127 avatar May 11 '24 11:05 Rot127