mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-23 17:15:33 +00:00
Merge branch 'YosysHQ:main' into main
This commit is contained in:
commit
33c72b0f25
3 changed files with 14 additions and 1 deletions
9
tests/opt/opt_expr_shr_int_max.ys
Normal file
9
tests/opt/opt_expr_shr_int_max.ys
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue