Fix VPBROADCASTM instruction feature gating #847
All Vouch review confidence checks passed
Residual risk 0.22 = Change Risk (0.40) × (1 − Review Confidence (0.45)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.40 · 298 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 54% · 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.341
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #847"
general
weight: 0.35
stlintel
Problem
VPBROADCASTMB2QandVPBROADCASTMW2Drequire AVX512CD for their512-bit forms. Their 128- and 256-bit forms additionally require
AVX512VL. The instructions are also available through AVX10.1.
Both Bochs opcode declarations currently use
BX_ISA_AVX512, the baseAVX512F feature, as their guard. Consequently, decoder initialization
retains their execution handlers on a processor configuration that
provides AVX512F but not AVX512CD, even though the instructions should
raise #UD.
For example:
Fix
Use
BX_ISA_AVX512_CDas the feature guard for both VPBROADCASTMopcode declarations.
This makes decoder availability agree with the architectural AVX512CD
requirement. The decoder's existing AVX10.1 fallback remains applicable
to the corrected feature guard.
Architectural reference
The Intel® 64 and IA-32 Architectures Software Developer’s Manual,
Volume 2C, section “VPBROADCASTM—Broadcast Mask to Vector Register,”
lists AVX512CD for the 512-bit forms and AVX512VL together with
AVX512CD for the 128- and 256-bit forms. AVX10.1 is listed as the
alternative feature path.
Validation
The affected 32- and 64-bit decoder objects were forcibly rebuilt,
followed by a successful full Bochs relink:
A temporary long-mode probe selected
corei7_skylake_x, excludedavx512cdwhile retaining AVX512F, enabled opmask and ZMM state inXCR0, and executed both 512-bit instruction encodings.
After the fix:
AVX10.1 alternative remains functional: with AVX512CD disabled but avx10_1 added, both instructions execute after the patch.