Add regression test for disabling binary NAND and NOR operators.

This commit is contained in:
Martin Whitaker 2024-01-28 22:47:46 +00:00
parent 2a2fa059e2
commit 39753da458
4 changed files with 21 additions and 0 deletions

View File

@ -0,0 +1,2 @@
ivltests/br_gh552.v:8: error: The binary NAND operator is an Icarus Verilog extension. Use -gicarus-misc to enable it.
ivltests/br_gh552.v:9: error: The binary NOR operator is an Icarus Verilog extension. Use -gicarus-misc to enable it.

View File

@ -0,0 +1,12 @@
module test;
reg [7:0] a;
reg [7:0] b;
reg [7:0] c;
initial begin
c = a ~& b;
c = a ~| b;
end
endmodule

View File

@ -25,6 +25,7 @@ br_gh383b vvp_tests/br_gh383b.json
br_gh383c vvp_tests/br_gh383c.json
br_gh383d vvp_tests/br_gh383d.json
br_gh440 vvp_tests/br_gh440.json
br_gh552 vvp_tests/br_gh552.json
br_gh687 vvp_tests/br_gh687.json
br_gh710a vvp_tests/br_gh710a.json
br_gh710b vvp_tests/br_gh710b.json

View File

@ -0,0 +1,6 @@
{
"type" : "CE",
"source" : "br_gh552.v",
"gold" : "br_gh552",
"iverilog-args" : [ "-gno-icarus-misc" ]
}