aboutsummaryrefslogtreecommitdiffstats
path: root/src/synth/synth-static_oper.adb
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2020-03-25 18:43:50 +0100
committerTristan Gingold <tgingold@free.fr>2020-03-25 18:43:50 +0100
commitddc54474ebef0959a66be0c9323ba34f8fff8e62 (patch)
tree80aab1f25548b0afffdc620a53d28d5b366b21eb /src/synth/synth-static_oper.adb
parentf3ecb96769ddd8e464ab63e6ba0821cc6062d372 (diff)
downloadghdl-ddc54474ebef0959a66be0c9323ba34f8fff8e62.tar.gz
ghdl-ddc54474ebef0959a66be0c9323ba34f8fff8e62.tar.bz2
ghdl-ddc54474ebef0959a66be0c9323ba34f8fff8e62.zip
synth-static_oper: handle boolean xor.
Diffstat (limited to 'src/synth/synth-static_oper.adb')
-rw-r--r--src/synth/synth-static_oper.adb6
1 files changed, 6 insertions, 0 deletions
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