verilator/test_regress
spomatasmd a6f4dd031f
Fix DfgPeephole miscompile of nested shifts with overflowing shift amount (#7977)
The REPLACE_SHIFTL_SHIFTL and REPLACE_SHIFTR_SHIFTR peephole optimizations
fold '(a << b) << c' into 'a << (b + c)' (and likewise for '>>'), but computed
'b + c' in the width of the shift-amount operand. When 'b + c' overflows that
width it wraps around, producing a too-small shift amount and a wrong result.

Compute the sum one bit wider than the amounts so it cannot overflow.

Fixes #7955
2026-07-28 10:42:51 +01:00
..
t Fix DfgPeephole miscompile of nested shifts with overflowing shift amount (#7977) 2026-07-28 10:42:51 +01:00
.gdbinit
.gitignore
AGENTS.md CI: Autoformat markdown files 2026-06-15 17:44:50 -04:00
CMakeLists.txt Remove multi-threaded FST tracing (#7443) 2026-04-19 16:02:12 +01:00
Makefile Test: Remove old Makefile rules 2026-04-13 21:09:09 -04:00
Makefile_obj
driver.py Tests: Add TSan and failing multi-threaded data race test (#7913) 2026-07-10 14:34:51 +01:00
input.vc
input.xsim.vc
tsan.supp Tests: Add TSan and failing multi-threaded data race test (#7913) 2026-07-10 14:34:51 +01:00