mirror of https://github.com/YosysHQ/yosys.git
Add test for shifting by INT_MAX
Currently resulting in CI failing on main during fsm checks which generate a circuit that simplifies to this.
This commit is contained in:
parent
df3c62a4ed
commit
db5b76edc1
|
@ -0,0 +1,9 @@
|
|||
read_verilog << EOF
|
||||
module uut_00034(b, y);
|
||||
input signed [30:0] b;
|
||||
output [11:0] y = b >> ~31'b0; // shift by INT_MAX
|
||||
endmodule
|
||||
EOF
|
||||
|
||||
# This should succeed, even with UBSAN halt_on_error
|
||||
opt_expr
|
Loading…
Reference in New Issue