From 7783d1a1d87a8d8ae9c251d3a0091ff7fc728dd7 Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Wed, 6 Jul 2022 08:07:29 +0200 Subject: testsuite/synth: add a test for #2129 --- testsuite/synth/issue2129/isx.vhdl | 23 +++++++++++++++++++++++ testsuite/synth/issue2129/testsuite.sh | 9 +++++++++ 2 files changed, 32 insertions(+) create mode 100644 testsuite/synth/issue2129/isx.vhdl create mode 100755 testsuite/synth/issue2129/testsuite.sh diff --git a/testsuite/synth/issue2129/isx.vhdl b/testsuite/synth/issue2129/isx.vhdl new file mode 100644 index 000000000..e72f2a8a9 --- /dev/null +++ b/testsuite/synth/issue2129/isx.vhdl @@ -0,0 +1,23 @@ +library ieee; +use ieee.std_logic_1164.all; +use ieee.numeric_std.all; + +entity isx is + port ( + s : in std_ulogic_vector(1 downto 0); + u : in signed(1 downto 0) + ); +end entity isx; + +architecture rtl of isx is +begin + test1 : process(all) + begin + if is_X(s) then + report "std_ulogic test" severity FAILURE; + end if; + if is_X(u) then + report "unsigned test" severity FAILURE; + end if; + end process; +end; diff --git a/testsuite/synth/issue2129/testsuite.sh b/testsuite/synth/issue2129/testsuite.sh new file mode 100755 index 000000000..a8c21100f --- /dev/null +++ b/testsuite/synth/issue2129/testsuite.sh @@ -0,0 +1,9 @@ +#! /bin/sh + +. ../../testenv.sh + +GHDL_STD_FLAGS=--std=08 + +synth_only isx + +echo "Test successful" -- cgit v1.2.3