mirror of
https://github.com/YosysHQ/yosys.git
synced 2026-10-06 01:53:53 +02:00
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:
@@ -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
|
||||
Reference in New Issue
Block a user