aboutsummaryrefslogtreecommitdiffstats
path: root/src/synth
diff options
context:
space:
mode:
authorXiretza <xiretza@xiretza.xyz>2020-12-02 20:45:57 +0100
committertgingold <tgingold@users.noreply.github.com>2020-12-04 04:11:09 +0100
commit92b4b6ec4280fcb69eaf0458a808dc117a94ec1e (patch)
tree3a5448086cc0e6381fee6522f9efd10dc390d79c /src/synth
parent4194af8f6a6d87f98d00a8fc82964d2b7c342871 (diff)
downloadghdl-92b4b6ec4280fcb69eaf0458a808dc117a94ec1e.tar.gz
ghdl-92b4b6ec4280fcb69eaf0458a808dc117a94ec1e.tar.bz2
ghdl-92b4b6ec4280fcb69eaf0458a808dc117a94ec1e.zip
synth-oper: Support Iir_Predefined_Enum_Greater{,_Equal}
Diffstat (limited to 'src/synth')
-rw-r--r--src/synth/synth-oper.adb4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/synth/synth-oper.adb b/src/synth/synth-oper.adb
index 4493db681..3a5c0edda 100644
--- a/src/synth/synth-oper.adb
+++ b/src/synth/synth-oper.adb
@@ -875,6 +875,10 @@ package body Synth.Oper is
return Synth_Compare (Id_Ule, Boolean_Type);
when Iir_Predefined_Enum_Less =>
return Synth_Compare (Id_Ult, Boolean_Type);
+ when Iir_Predefined_Enum_Greater_Equal =>
+ return Synth_Compare (Id_Uge, Boolean_Type);
+ when Iir_Predefined_Enum_Greater =>
+ return Synth_Compare (Id_Ugt, Boolean_Type);
when Iir_Predefined_Std_Ulogic_Match_Equality =>
return Synth_Compare (Id_Eq, Logic_Type);