Fix VPCMP byte and word instruction feature gating #848
All Vouch review confidence checks passed
Residual risk 0.20 = Change Risk (0.42) × (1 − Review Confidence (0.52)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.42 · 337 lines diff across 4 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 64% · 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.348
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #848"
general
weight: 0.35
stlintel
Problem
The EVEX forms of
VPCMPB,VPCMPUB,VPCMPW, andVPCMPUWrequire AVX512BW for their 512-bit forms. Their 128- and 256-bit forms
additionally require AVX512VL. The instructions are also available
through AVX10.1.
All four Bochs opcode declarations currently use
BX_ISA_AVX512, thebase AVX512F feature, as their guard. Decoder initialization therefore
retains their execution handlers on a processor configuration that
provides AVX512F but not AVX512BW.
For example:
Fix
Use
BX_ISA_AVX512_BWas the feature guard for theVPCMPB,VPCMPUB,VPCMPW, andVPCMPUWopcode declarations.This makes decoder availability agree with the architectural AVX512BW
requirement. The decoder's existing AVX10.1 fallback includes
BX_ISA_AVX512_BW, so the alternative AVX10.1 feature path remainsunchanged.
Architectural reference
The Intel® 64 and IA-32 Architectures Software Developer’s Manual,
Volume 2C, sections “VPCMPB/VPCMPUB—Compare Packed Byte Values Into
Mask” and “VPCMPW/VPCMPUW—Compare Packed Word Values Into Mask,” list
AVX512BW for the 512-bit forms and AVX512VL together with AVX512BW for
the 128- and 256-bit forms. AVX10.1 is listed as an alternative feature
path.
Validation
The affected 32- and 64-bit decoder objects were forcibly rebuilt,
followed by a successful full Bochs build:
A temporary long-mode probe selected
corei7_skylake_x, excludedavx512bwwhile retaining AVX512F, enabled opmask and ZMM state inXCR0, entered CPL3, and executed all four 512-bit instruction
encodings.
Before the fix:
After the fix: