From 76ccba445f00708137259943d78c1df64f07b061 Mon Sep 17 00:00:00 2001 From: David Guillen Fandos Date: Mon, 13 Dec 2021 18:49:42 +0100 Subject: [PATCH] [aarch64] Fix mov bug that got in in the last minute :D --- arm/arm64_emit.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arm/arm64_emit.h b/arm/arm64_emit.h index 4f372c8..106191e 100644 --- a/arm/arm64_emit.h +++ b/arm/arm64_emit.h @@ -176,7 +176,7 @@ u32 arm_to_a64_reg[] = aa64_emit_movne(ireg, (~(imm))); \ } else if (((imm) & 0xffff) == 0) { \ /* immediate like 0xxxxx0000 */ \ - aa64_emit_movhiz(ireg, (imm)); \ + aa64_emit_movhiz(ireg, ((imm) >> 16)); \ } else { \ aa64_emit_movlo(ireg, imm); \ if ((imm) >= (1 << 16)) { \