• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

moonbitlang / core / 4727
91%

Build:
DEFAULT BRANCH: main
Ran 25 Jun 2026 06:32AM UTC
Jobs 1
Files 379
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

25 Jun 2026 06:30AM UTC coverage: 90.955% (-3.3%) from 94.249%
4727

push

github

bobzhang
Fix replace_lane corrupting a high lane on negative indices

i8x16/i16x8/i32x4_replace_lane guarded the low-half branch with
`lane >= 0 && lane < N/2` but the high-half branch with only `lane < N`.
A negative lane therefore skipped the first branch and still satisfied the
second, splicing `replacement` into a high-word lane instead of leaving the
value unchanged (e.g. i8x16_replace_lane(v, x, -1) rewrote lane 15, since
(-1 & 7) = 7). v128_load{8,16,32}_lane inherit this via delegation. The
positive out-of-range case was already a correct no-op; only negatives
leaked. (i64x2_replace_lane was unaffected -- it uses exact == checks.)

Lower-bound the high-half branch (e.g. `lane >= 8 && lane < 16`) so any
out-of-range index falls through to the unchanged `else value`, matching
the documented contract. Add a regression test over negative and
too-large runtime lane indices (runtime lane forces the fallback path on
every backend).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

3 of 3 new or added lines in 1 file covered. (100.0%)

1 existing line in 1 file now uncovered.

15154 of 16661 relevant lines covered (90.95%)

197378.29 hits per line

Coverage Regressions

Lines Coverage ∆ File
1
96.3
0.0% builtin/traits.mbt
Jobs
ID Job ID Ran Files Coverage
1 4727.1 25 Jun 2026 06:32AM UTC 380
90.97
GitHub Action Run
Source Files on build 4727
  • Tree
  • List 379
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 501274a1 on github
  • Prev Build on main (#4717)
  • Next Build on main (#4732)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc