From 9021ecbd3b9a457024d7cb4e6daa1322ecbbd611 Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Tue, 26 Nov 2019 19:23:59 +0100 Subject: synth: implement static physical integer div. Fix #1032. --- src/synth/synth-static_oper.adb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/synth/synth-static_oper.adb b/src/synth/synth-static_oper.adb index e7d06cfe8..75803c607 100644 --- a/src/synth/synth-static_oper.adb +++ b/src/synth/synth-static_oper.adb @@ -234,7 +234,8 @@ package body Synth.Static_Oper is return Create_Value_Discrete (Boolean'Pos (Get_Static_Discrete (Left) /= Get_Static_Discrete (Right)), Boolean_Type); - when Iir_Predefined_Physical_Physical_Div => + when Iir_Predefined_Physical_Physical_Div + | Iir_Predefined_Physical_Integer_Div => return Create_Value_Discrete (Left.Scal / Right.Scal, Res_Typ); -- cgit v1.2.3