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:
Krystine Sherwin
2025-02-14 14:01:27 +13:00
parent df3c62a4ed
commit db5b76edc1
+9
View File
@@ -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