From e0ef2489434aac58815cdef3e8ef94dcc26dbd36 Mon Sep 17 00:00:00 2001 From: ptitSeb Date: Sat, 20 Apr 2024 15:10:12 +0200 Subject: [PATCH] [ARM64_PRINTER] Fix some case of DecodeBit not working for 64bits values --- src/dynarec/arm64/arm64_printer.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/dynarec/arm64/arm64_printer.c b/src/dynarec/arm64/arm64_printer.c index 7401942b..f9866570 100644 --- a/src/dynarec/arm64/arm64_printer.c +++ b/src/dynarec/arm64/arm64_printer.c @@ -34,10 +34,12 @@ uint64_t DecodeBitMasks(int N, int imms, int immr) if(s==levels) return 0; uint64_t mask = (1LL<<(s+1))-1; if(r) { // rotate - mask=(mask>>r)|(mask<<(e-r)); - mask&=((1LL<>r)|(mask<<(e-r)); + if(e<64) { + mask&=((1LL<