diff options
author | Tristan Gingold <tgingold@free.fr> | 2022-09-14 21:03:17 +0200 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2022-09-15 01:48:27 +0200 |
commit | d04a3a95da9d74d8130c20c2f6947fc64b8768a8 (patch) | |
tree | bfa6d99e0ce10cd10890b7a477a47befc9caa177 /src/ortho/mcode/ortho_code-x86-emits.adb | |
parent | 020e7d55e49116f5bed02a7913823cd09770a1f2 (diff) | |
download | ghdl-d04a3a95da9d74d8130c20c2f6947fc64b8768a8.tar.gz ghdl-d04a3a95da9d74d8130c20c2f6947fc64b8768a8.tar.bz2 ghdl-d04a3a95da9d74d8130c20c2f6947fc64b8768a8.zip |
ortho/mcode: add reg move for ret. Fix #2189
Diffstat (limited to 'src/ortho/mcode/ortho_code-x86-emits.adb')
-rw-r--r-- | src/ortho/mcode/ortho_code-x86-emits.adb | 2 |
1 files changed, 2 insertions, 0 deletions
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; |