File tree Expand file tree Collapse file tree 16 files changed +154
-0
lines changed
regression/verilog/expressions Expand file tree Collapse file tree 16 files changed +154
-0
lines changed Original file line number Diff line number Diff line change 1+ KNOWNBUG
2+ div1.sv
3+
4+ ^EXIT=0$
5+ ^SIGNAL=0$
6+ --
7+ ^warning: ignoring
8+ --
9+ The result is wrong.
Original file line number Diff line number Diff line change 1+ module main ;
2+
3+ // Any arithmetic with x or z returns x.
4+ initial assert ('bx / 1 === 'x );
5+ initial assert ('bz / 1 === 'x );
6+ initial assert (1 / 'bx === 'x );
7+ initial assert (1 / 'bz === 'x );
8+
9+ // Division by zero returns x
10+ initial assert (1 / 0 === 'x );
11+ initial assert (1 / 0 === 'x );
12+
13+ endmodule
Original file line number Diff line number Diff line change 1+ KNOWNBUG
2+ minus1.sv
3+
4+ ^EXIT=0$
5+ ^SIGNAL=0$
6+ --
7+ ^warning: ignoring
8+ --
9+ The result is wrong.
Original file line number Diff line number Diff line change 1+ module main ;
2+
3+ // Any arithmetic with x or z returns x.
4+ initial assert ('bx - 1 === 'x );
5+ initial assert ('bz - 1 === 'x );
6+ initial assert (1 - 'bx === 'x );
7+ initial assert (1 - 'bz === 'x );
8+
9+ endmodule
Original file line number Diff line number Diff line change 1+ KNOWNBUG
2+ mod1.sv
3+
4+ ^EXIT=0$
5+ ^SIGNAL=0$
6+ --
7+ ^warning: ignoring
8+ --
9+ The result is wrong.
Original file line number Diff line number Diff line change 1+ module main ;
2+
3+ // Any arithmetic with x or z returns x.
4+ initial assert ('bx % 1 === 'x );
5+ initial assert ('bz % 1 === 'x );
6+ initial assert (1 % 'bx === 'x );
7+ initial assert (1 % 'bz === 'x );
8+
9+ // mod-by-zero returns x
10+ initial assert (1 % 0 === 'x );
11+ initial assert (1 % 0 === 'x );
12+
13+ endmodule
Original file line number Diff line number Diff line change 1+ KNOWNBUG
2+ mult1.sv
3+
4+ ^EXIT=0$
5+ ^SIGNAL=0$
6+ --
7+ ^warning: ignoring
8+ --
9+ The result is wrong.
Original file line number Diff line number Diff line change 1+ module main ;
2+
3+ // Any arithmetic with x or z returns x.
4+ initial assert ('bx * 0 === 'x );
5+ initial assert ('bz * 0 === 'x );
6+ initial assert (0 * 'bx === 'x );
7+ initial assert (0 * 'bz === 'x );
8+
9+ endmodule
Original file line number Diff line number Diff line change 1+ KNOWNBUG
2+ plus1.sv
3+
4+ ^EXIT=0$
5+ ^SIGNAL=0$
6+ --
7+ ^warning: ignoring
8+ --
9+ The result is wrong.
Original file line number Diff line number Diff line change 1+ module main ;
2+
3+ // Any arithmetic with x or z returns x.
4+ initial assert ('bx + 1 === 'x );
5+ initial assert ('bz + 1 === 'x );
6+ initial assert (1 + 'bx === 'x );
7+ initial assert (1 + 'bz === 'x );
8+
9+ endmodule
You can’t perform that action at this time.
0 commit comments