From 98bf726697e42c26c271467380779d905c6a8008 Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Thu, 6 Aug 2020 07:58:34 +0200 Subject: synth-oper: handle < for enums. --- src/synth/synth-oper.adb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') 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 => -- cgit v1.2.3