From 160168fac2371af9a7dbed3d491e4ffc701e81b7 Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Wed, 11 Sep 2019 20:50:23 +0200 Subject: synth: handle unsigned shift right --- src/synth/synth-expr.adb | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/synth/synth-expr.adb b/src/synth/synth-expr.adb index ac9eeae6e..397289afe 100644 --- a/src/synth/synth-expr.adb +++ b/src/synth/synth-expr.adb @@ -2268,6 +2268,13 @@ package body Synth.Expr is begin return Synth_Shift (Id_Lsl, L, R, Expr); end; + when Iir_Predefined_Ieee_Numeric_Std_Shr_Uns_Nat => + declare + L : constant Value_Acc := Subprg_Inst.Objects (1); + R : constant Value_Acc := Subprg_Inst.Objects (2); + begin + return Synth_Shift (Id_Lsr, L, R, Expr); + end; when Iir_Predefined_Ieee_Math_Real_Log2 => declare V : constant Value_Acc := Subprg_Inst.Objects (1); -- cgit v1.2.3