LATX, fix: Warn when AVX translation support is disabled #574
All Vouch review confidence checks passed
Residual risk 0.21 = Change Risk (0.37) × (1 − Review Confidence (0.44)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.37 · 40 lines diff across 1 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 10%
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
Shallow Review Depth
shallow_review_depth
0.344
Diff Size
diff_size
0.222
No Reviewer Assigned
no_reviewer_assigned
0.120
Real PR Conversation Timeline
1 item
"Review active on #574"
general
weight: 0.35
rmjskhy
Summary / 变更说明
When LATX is built without AVX translation support and encounters a decoded VEX vector instruction with no registered translator, it now prints a warning once per process. The warning includes the guest instruction address, the
--enable-latx-avx-optconfigure option, and the appropriate rebuild command (./latxbuild/build32.sh -c -aor./latxbuild/build64.sh -c -a).This makes the missing build option visible when diagnosing programs such as UnixBench Whetstone. The change only adds a diagnostic to the existing translation failure path.
Validation / 验证
Built and tested on LoongArch Linux with AOT disabled for the runtime checks.
VZEROUPPERandVSTMXCSReach produced the expected warning. A BMI instruction using a VEX prefix completed without an AVX warning.UD2raisedSIGILLwithout an AVX warning.TIME|9.271, and exited with status 0.The squashed commit
c7a2969d7bhas the same source tree as the tested revision. The full regression suite was not rerun for this diagnostic-only change.Checklist / 检查项
CONTRIBUTING.md. / 我已阅读CONTRIBUTING.md。git commit -s). / 每个提交都包含 DCO 签署(git commit -s)。