aboutsummaryrefslogtreecommitdiffstats
path: root/tests/opt
diff options
context:
space:
mode:
authorEddie Hung <eddie@fpgeh.com>2019-11-27 10:17:10 -0800
committerEddie Hung <eddie@fpgeh.com>2019-11-27 10:17:10 -0800
commit4bac6b13bef7e5a97271726c6cf445c02a818903 (patch)
tree02ecf2aa31aea9f447688b7c72df4f4492511121 /tests/opt
parentdf8dc6d1fb1f9fc47a8356b5f0bf572a1ea140d2 (diff)
parent6464dc35ec0c57b55aa19345b17eb34f47c15986 (diff)
downloadyosys-4bac6b13bef7e5a97271726c6cf445c02a818903.tar.gz
yosys-4bac6b13bef7e5a97271726c6cf445c02a818903.tar.bz2
yosys-4bac6b13bef7e5a97271726c6cf445c02a818903.zip
Merge remote-tracking branch 'origin/master' into xaig_dff
Diffstat (limited to 'tests/opt')
-rw-r--r--tests/opt/bug1525.ys13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/opt/bug1525.ys b/tests/opt/bug1525.ys
new file mode 100644
index 000000000..972bc0ac7
--- /dev/null
+++ b/tests/opt/bug1525.ys
@@ -0,0 +1,13 @@
+read_verilog << EOF
+module top(...);
+input A1, A2, B, S;
+output O;
+
+assign O = S ? (A1 & B) : (A2 & B);
+
+endmodule
+EOF
+
+simplemap
+opt_share
+dump