From a5ca4eeefb13c24042bae36ea8f640b5529efd93 Mon Sep 17 00:00:00 2001 From: Kamil Rakoczy Date: Wed, 24 Jun 2020 11:45:38 +0200 Subject: Add or-assignment and plus-assignment tests Signed-off-by: Kamil Rakoczy --- tests/opt/opt_expr_or_assignment.ys | 15 +++++++++++++++ tests/opt/opt_expr_plus_assignment.ys | 15 +++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 tests/opt/opt_expr_or_assignment.ys create mode 100644 tests/opt/opt_expr_plus_assignment.ys (limited to 'tests') diff --git a/tests/opt/opt_expr_or_assignment.ys b/tests/opt/opt_expr_or_assignment.ys new file mode 100644 index 000000000..21e08550f --- /dev/null +++ b/tests/opt/opt_expr_or_assignment.ys @@ -0,0 +1,15 @@ +read_verilog -sv < Date: Wed, 24 Jun 2020 14:38:03 +0200 Subject: Add xor-assignment test Signed-off-by: Kamil Rakoczy --- tests/opt/opt_expr_xor_assignment.ys | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 tests/opt/opt_expr_xor_assignment.ys (limited to 'tests') diff --git a/tests/opt/opt_expr_xor_assignment.ys b/tests/opt/opt_expr_xor_assignment.ys new file mode 100644 index 000000000..924185e09 --- /dev/null +++ b/tests/opt/opt_expr_xor_assignment.ys @@ -0,0 +1,15 @@ +read_verilog -sv < Date: Thu, 25 Jun 2020 14:17:41 +0200 Subject: Move combined assign tests to single file Signed-off-by: Kamil Rakoczy --- tests/opt/opt_expr_combined_assign.ys | 49 +++++++++++++++++++++++++++++++++++ tests/opt/opt_expr_or_assignment.ys | 15 ----------- tests/opt/opt_expr_plus_assignment.ys | 15 ----------- tests/opt/opt_expr_xor_assignment.ys | 15 ----------- 4 files changed, 49 insertions(+), 45 deletions(-) create mode 100644 tests/opt/opt_expr_combined_assign.ys delete mode 100644 tests/opt/opt_expr_or_assignment.ys delete mode 100644 tests/opt/opt_expr_plus_assignment.ys delete mode 100644 tests/opt/opt_expr_xor_assignment.ys (limited to 'tests') diff --git a/tests/opt/opt_expr_combined_assign.ys b/tests/opt/opt_expr_combined_assign.ys new file mode 100644 index 000000000..56fbac9de --- /dev/null +++ b/tests/opt/opt_expr_combined_assign.ys @@ -0,0 +1,49 @@ +read_verilog -sv < Date: Thu, 25 Jun 2020 14:20:47 +0200 Subject: Add sub-assign and and-assign tests Signed-off-by: Kamil Rakoczy --- tests/opt/opt_expr_combined_assign.ys | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) (limited to 'tests') diff --git a/tests/opt/opt_expr_combined_assign.ys b/tests/opt/opt_expr_combined_assign.ys index 56fbac9de..b18923c7b 100644 --- a/tests/opt/opt_expr_combined_assign.ys +++ b/tests/opt/opt_expr_combined_assign.ys @@ -47,3 +47,37 @@ equiv_opt -assert opt_expr -fine design -load postopt select -assert-count 1 t:$xor r:A_WIDTH=4 r:B_WIDTH=4 r:Y_WIDTH=4 %i %i %i + +design -reset +read_verilog -sv <