From 62a8c4ba331132b2e0be886673d769e2f742834f Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Sat, 29 Feb 2020 11:27:55 +0100 Subject: synth-static_oper: handle enum inequality. --- src/synth/synth-static_oper.adb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/synth/synth-static_oper.adb b/src/synth/synth-static_oper.adb index e0d82a5b3..a76f9b5e0 100644 --- a/src/synth/synth-static_oper.adb +++ b/src/synth/synth-static_oper.adb @@ -322,6 +322,9 @@ package body Synth.Static_Oper is when Iir_Predefined_Enum_Equality => return Create_Value_Discrete (Boolean'Pos (Left.Scal = Right.Scal), Boolean_Type); + when Iir_Predefined_Enum_Inequality => + return Create_Value_Discrete + (Boolean'Pos (Left.Scal /= Right.Scal), Boolean_Type); when Iir_Predefined_Integer_Plus => return Create_Value_Discrete -- cgit v1.2.3