wasm2c: fix SIMD_FORCE_READ constraint for V-incapable RISC-V targets #2880
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
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
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
CSharperMantle
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)`.