You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit c0180d6
Browse filesBrowse the repository at this point in the historyBrowse files
JIT: Fix several range check correctness bugs (#134466)
Fixes a few range check / bounds check correctness bugs (one commit per
fix):
- #134455: `RangeOps::ShiftRight` computed an unsound upper limit for `x
>>> [0..N]` when `x` may be negative.
- #134452: range check propagated integral ranges through casts to/from
floating point types (rounding/saturation). Floating-point VNs now get
an unknown range.
- #134451: `DoesVarDefOverflow` skipped checking a local's def when
assertions bounded it within a range with a dependent limit, while
`Widen` later resolves that limit assuming no overflow (wrapping
induction variable).
- ARM64: `genLeaInstruction` dropped the sign/zero extension of a
contained `CAST`/`BFIZ` index (e.g. write-barrier store address for
`span[(int)longValue] = obj`), now emits `add xd, xn, wm, UXTW/SXTW
#scale`.
Regression tests are added for the first three.
SPMI (benchmarks.run, aspnet2, libraries.pmi): no diffs for the first
two, +123 bytes for the overflow fix; ARM64 diffs are size-neutral
(`LSL` -> `UXTW`).
---------
Co-authored-by: Copilot <[email protected]>
0 commit comments