diff options
author | Tristan Gingold <tgingold@free.fr> | 2015-01-12 05:04:08 +0100 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2015-01-12 05:04:08 +0100 |
commit | 552d366f8ca84768a729d7295c4e5e5177a0a3cd (patch) | |
tree | dc6d733aed35d8697f5cdd46997b6bf020668a79 /src/ortho/mcode/ortho_code-x86-insns.adb | |
parent | 4d24c422cc4a3f84bf0aa81fa26e777355b7265c (diff) | |
download | ghdl-552d366f8ca84768a729d7295c4e5e5177a0a3cd.tar.gz ghdl-552d366f8ca84768a729d7295c4e5e5177a0a3cd.tar.bz2 ghdl-552d366f8ca84768a729d7295c4e5e5177a0a3cd.zip |
ortho_mcode: handle u32->i64 conversion.
Diffstat (limited to 'src/ortho/mcode/ortho_code-x86-insns.adb')
-rw-r--r-- | src/ortho/mcode/ortho_code-x86-insns.adb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ortho/mcode/ortho_code-x86-insns.adb b/src/ortho/mcode/ortho_code-x86-insns.adb index c218a9ae0..e600f475d 100644 --- a/src/ortho/mcode/ortho_code-x86-insns.adb +++ b/src/ortho/mcode/ortho_code-x86-insns.adb @@ -1798,8 +1798,9 @@ package body Ortho_Code.X86.Insns is end case; when Mode_I64 => case O_Mode is - when Mode_I32 => - -- Sign extend. + when Mode_I32 + | Mode_U32 => + -- Zero or Sign extend. Num := Get_Insn_Num; Left := Gen_Insn (Left, R_Ax, Num); Set_Expr_Operand (Stmt, Left); |