From d04a3a95da9d74d8130c20c2f6947fc64b8768a8 Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Wed, 14 Sep 2022 21:03:17 +0200 Subject: ortho/mcode: add reg move for ret. Fix #2189 --- src/ortho/mcode/ortho_code-x86-emits.adb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/ortho/mcode/ortho_code-x86-emits.adb') diff --git a/src/ortho/mcode/ortho_code-x86-emits.adb b/src/ortho/mcode/ortho_code-x86-emits.adb index 725dfd80b..b33a5d019 100644 --- a/src/ortho/mcode/ortho_code-x86-emits.adb +++ b/src/ortho/mcode/ortho_code-x86-emits.adb @@ -2739,6 +2739,8 @@ package body Ortho_Code.X86.Emits is and then Op_Reg in Regs_R64 then Emit_Tst (Op_Reg, Sz_8); + elsif Reg in Regs_R64 and then Op_Reg in Regs_R64 then + Emit_Move (Operand, Sz_Ptr, Reg); else Error_Emit ("emit_insn: move/b2", Stmt); end if; -- cgit v1.2.3