2 // test cases found using vloghammer
3 // https://github.com/cliffordwolf/VlogHammer
13 output signed [4:0] y;
17 module test03(a, b, y);
21 assign y = ~(a >>> 1) == b;
27 assign y = ~(a - 1'b0);
30 // .. this test triggers a bug in xilinx isim.
31 // module test05(a, y);
34 // assign y = 12345 >> {a, 32'd0};
37 // .. this test triggers a bug in icarus verilog.
38 // module test06(a, b, c, y);
39 // input signed [3:0] a;
40 // input signed [1:0] b;
41 // input signed [1:0] c;
43 // assign y = (a >> b) >>> c;
46 module test07(a, b, y);
50 assign y = 2'b11 != a+b;
53 module test08(a, b, y);
57 assign y = a == ($signed(b) >>> 1);