← Back to Pull requests

wasm2c: fix SIMD_FORCE_READ constraint for V-incapable RISC-V targets #2880

Closed
unknown closed this pull request without merging on Oct 20, 2026 16:38 UTC
View on GitHub
unknown unknown commented on Oct 14, 2026 15:35 UTC
Author

When building Firefox 158, which uses vendored wasm2c to compile WASM code, on RISC-V RVA20U64, the following error occurs:

``plain-text
111:25.21 E /var/cache/acbs/build/acbs.05foslpj/firefox-158.0/obj-riscv64-unknown-linux-gnu/media/libsoundtouch/src/rlboxsoundtouch.wasm.c:962:1: error: couldn't allocate input reg for constraint 'vr'
111:25.22 E 962 | DEFINE_SIMD_LOAD_FUNC(v128_load64_zero, v128_impl_load64_zero, u64)
111:25.23 E | ^
111:25.24 E /var/cache/acbs/build/acbs.05foslpj/firefox-158.0/obj-riscv64-unknown-linux-gnu/media/libsoundtouch/src/rlboxsoundtouch.wasm.c:890:5: note: expanded from macro 'DEFINE_SIMD_LOAD_FUNC'
111:25.25 E 890 | SIMD_FORCE_READ(result); \
111:25.26 E | ^
111:25.26 E /var/cache/acbs/build/acbs.05foslpj/firefox-158.0/obj-riscv64-unknown-linux-gnu/media/libsoundtouch/src/rlboxsoundtouch.wasm.c:866:38: note: expanded from macro 'SIMD_FORCE_READ'
111:25.27 E 866 | #define SIMD_FORCE_READ(var) __asm__("" ::"vr"(var));
111:25.27 E | ^
`

Thus gating this arm by defined(__riscv_vector)`.

Diff: 157 lines (+117 / -40) across 1 files Reviewer: CSharperMantle Review duration: 8703m
All Vouch review confidence checks passed
Residual risk 0.13 = Change Risk (0.33) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.33 · 157 lines diff across 1 files
0.33
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
0.17
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
60%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size diff_size
0.303
Shallow Review Depth shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #2880"
general weight: 0.35
Assignees
Unassigned
Labels
risk: low confidence: 60.5% reviewed
Vouch Risk Breakdown
AI-powered review risk analysis
Change Risk
Change Risk · Model 1 (XGBoost)
Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
Score: 33.3% (LOW) · Higher = larger blast radius
33.3%
Review Confidence
Review Confidence · Models 2 & 3
Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
Score: 60.5% · Lower = rushed or shallow review
60.5%
Residual Risk
Residual Risk · Core Equation
Residual = Change × (1 − Confidence)
Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
Score: 13.2% · Safe to merge
13.2%