From ddc54474ebef0959a66be0c9323ba34f8fff8e62 Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Wed, 25 Mar 2020 18:43:50 +0100 Subject: synth-static_oper: handle boolean xor. --- src/synth/synth-static_oper.adb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src') diff --git a/src/synth/synth-static_oper.adb b/src/synth/synth-static_oper.adb index 68b71b2b1..349117d87 100644 --- a/src/synth/synth-static_oper.adb +++ b/src/synth/synth-static_oper.adb @@ -399,6 +399,12 @@ package body Synth.Static_Oper is when Iir_Predefined_Error => return null; + when Iir_Predefined_Boolean_Xor => + return Create_Value_Discrete + (Boolean'Pos (Boolean'Val (Get_Static_Discrete (Left)) + xor Boolean'Val (Get_Static_Discrete (Right))), + Res_Typ); + when Iir_Predefined_Enum_Equality => return Create_Value_Discrete (Boolean'Pos -- cgit v1.2.3