diff options
author | Tristan Gingold <tgingold@free.fr> | 2020-08-06 07:58:34 +0200 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2020-08-06 07:58:34 +0200 |
commit | 98bf726697e42c26c271467380779d905c6a8008 (patch) | |
tree | fb86303cb7b0c3ca9df1acbdc59145f28c6ee83c /src | |
parent | 1abff57032357331bc5634419adf2f8f2aa2dd07 (diff) | |
download | ghdl-98bf726697e42c26c271467380779d905c6a8008.tar.gz ghdl-98bf726697e42c26c271467380779d905c6a8008.tar.bz2 ghdl-98bf726697e42c26c271467380779d905c6a8008.zip |
synth-oper: handle < for enums.
Diffstat (limited to 'src')
-rw-r--r-- | src/synth/synth-oper.adb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/synth/synth-oper.adb b/src/synth/synth-oper.adb index 8ace4725f..fde0f3123 100644 --- a/src/synth/synth-oper.adb +++ b/src/synth/synth-oper.adb @@ -770,6 +770,8 @@ package body Synth.Oper is -- TODO: Optimize ? return Synth_Compare (Id_Ne, Boolean_Type); when Iir_Predefined_Enum_Less_Equal => + return Synth_Compare (Id_Ule, Boolean_Type); + when Iir_Predefined_Enum_Less => return Synth_Compare (Id_Ult, Boolean_Type); when Iir_Predefined_Std_Ulogic_Match_Equality => |