The 2026-11-04 continuation adds exact whole-vector comparisons. Ordinary single/double comparisons retain the short floating-point path. Exceptional lanes use integer classification and ordering, including signaling NaNs, flushed denormals and signed zero. Half comparisons use integer vectors for all lanes. The directed test covers 80 instruction forms, destination aliases and every half encoding across modes, loaders and optimization levels.
A tested extension that batched conversion and rounding fallbacks was rejected. It reduced outer calls but made portable conversion kernels about 15% slower, and hid repeated values from LLVM's common-call elimination. A later integer-vector conversion replaces the vector half-to-single and single-to-half paths, including exceptional lanes and all FPCR modes. The sequence test checks ordinary, DUP and constant-zero producers before conversion, including full register state, and requires zero conversion helper calls. Other conversion and rounding paths retain their pure scalar helpers. Existing arithmetic batches keep their descriptor and exact fallback behavior.
The half-conversion tests compare full CPU state across every half encoding, rounding and alternate-half modes, source/destination aliases, both loaders and O0/O2. Random single encodings cover narrowing boundaries and special values. A reversed-byte model checks lane packing separately from native big-endian ABI execution. An independent Python rational-arithmetic check proves exact widening for all 129,024 finite IEEE and alternate-half encodings. The first 24-kernel narrowing timing search was inconclusive for two ordinary-input regression bounds. A fresh 25-round paired check of all four native ordinary-input forms cleared the unchanged regression gate, with speedups of 1.058 to 1.207. The exceptional and portable-emitter forms in the original search improved by about 5.6 to 7.3 times. Widening passed its original gate, with a 9.48-times geometric kernel ratio and a 95-percent bootstrap interval of 9.17 to 9.63. These figures describe the supplied synthetic kernels on x86-64, not game FPS.
The retained candidate also passed the full half-conversion and estimate tests under qemu-x86_64 -cpu qemu64:
71,303,168 conversion cases and 40,225,792 estimate cases. This verifies correctness under the emulator's baseline
x86 feature set. It does not measure performance on a physical older CPU. Selected optimized half-conversion
objects for baseline x86-64, Cortex-A57 and generic RISC-V contain no conversion-helper calls. The entry's
FP-environment normalization remains where needed.
The estimate continuation rejected tables for every reciprocal input without AVX2: ordinary reciprocal kernels regressed to about 0.29 times baseline speed. A hybrid keeps the original ordinary reciprocal calculation, uses integer fixups for exceptional lanes, and uses the table path for reciprocal-square-root estimates. The revised 16-kernel search passed the unchanged gate with a 2.65-times geometric ratio and a 95-percent interval of 2.62 to 2.73. The emitter lacked AVX2, but the target machine still used the test host's native ISA. Physical old-x86 performance and native AArch64 performance remain separate checks.
A mixed-lane arithmetic experiment kept ordinary lanes in vectors when IXC was sticky. Its first mask encoded lane weights incorrectly, which full-state tests caught through missing exception flags. A sign-extended mask corrected the defect, and the directed tests passed. Both timing searches still failed the fixed regression gate: the revised candidate improved mixed sticky-IXC kernels by about 29 to 35 percent, but several IXC-clear paths regressed by about 2 to 3 percent. The experiment was removed, including its helper descriptor extension. The original batched arithmetic fallback remains. That masked arithmetic replacement is not a completed optimization.
Half FRECPE/FRSQRTE use bounded integer-vector tables, and half FRECPX uses exponent operations on little-endian targets. FZ16 flushes input denormals without IDC. Reciprocal estimate output denormals remain unflushed, as the exact helper requires. Register shifts also use a constant-stage barrel sequence when the x86 emitter lacks AVX2. AArch64 uses generic vector shifts, and other targets retain the previous exact helper. Native tests ran on x86-64.
Two independent Python searches used two warmups, nine measured paired rounds and 20,000 bootstrap resamples. The selected comparison sequence had a 5.18-times geometric speedup across its supplied synthetic workloads. Half-estimate kernels improved by about 2.5 to 8.8 times. Portable-emitter shift kernels improved by about 2 to 9.8 times on the native test machine. That machine's LLVM target still used its native ISA, so portable-emitter results are not timings from an SSE2-only processor. These figures do not establish whole-game FPS gains.
The small-helper experiment imports only the audited FP-environment leaf from the embedded runtime bitcode.
Only functions with host FP operations use its inline copy. The checked integer-shift object remains byte-identical.
An initial broad import did not pass the regression gate. The selective version passed 19 paired rounds across six
FP-focused workloads, with about a 13-percent geometric gain. SNX_IR_OBJECT_VERSION increases to five to invalidate
objects made by the old pipeline. SNX_ABI remains 17, and old modules remain compatible. Recompile to use the new
emitter paths. Large arithmetic helpers remain out of line.
The initial min/max continuation replaced helper calls in vector and pairwise min/max paths on little-endian targets. Integer ordering handles NaNs, numeric variants, input flushes and signed zero, with one FPSR reduction. A new 30,112,768-case test covers all half encodings, mixed exceptional lanes and aliases. An independent rational model proves the ordering of all 63,488 finite half encodings, which establishes the order of 4,030,726,144 finite pairs with signed-zero ties handled explicitly. The original 60-kernel search measured a 4.53-times geometric ratio. A fresh 35-round ordinary-input check passed the fixed regression bounds. O0 single/double paths retain the original fallback after their separate regression gate failed. All twelve checked O0 min/max objects remain byte-identical. O0 half min/max retains its measured vector improvement.
Rounding uses integer masks for half vectors and sanitized host rounding plus exact NaN/flush fixups for supported single/double hosts. The expanded test checks 19,970,048 full states, including aliases. An independent rational model checks all 634,880 finite-half/mode/flush combinations. The first 144-kernel search measured a 3.94-times geometric ratio but rejected two O0 dynamic-rounding regressions. Those paths retain their original fallback. Eight checked O0 single/double rounding objects remain byte-identical. The revised candidate passed the fixed bounds in a fresh 35-round ordinary-input check. These ratios are synthetic kernels, not game-FPS multipliers.
The combined 681-test local suite passed all CPU tests, including the full QEMU sweep. The known platform_posix
page-tracking assertion still fails. Both ASTC Vulkan tests fail on the Intel device and pass with lavapipe.
Their 61 tracked build inputs match upstream, and their link includes no CPU backend. This GPU test discrepancy
is separate from the CPU emitter changes. The retained O0 decisions also passed the focused eleven-check run.
Native Linux x86-64, Linux AArch64 and Windows CI passed at efb12311, including the native CPU tests.
The final game rebuild exposed a compiler bottleneck before its scene comparison could run.
LLVM's tail-call analysis followed each temporary pointer through the helper's returned FPSR and later control-flow joins. On one private unit, the isolated pass finished in 3.63 seconds with accurate non-capture attributes. The original declaration exceeded the 35-second limit. This is an isolated pass comparison, not a complete rebuild ratio. The helper consumes its buffers synchronously and never retains their addresses. Its pointer parameters now declare that fact without adding a no-alias claim.
At O1 and above, batched FP calls also reuse one function-local scratch allocation. The helper reads an input lane before it writes that lane, so output can reuse the first input's space. The allocation grows only when a larger input set is emitted, to at most three 16-byte inputs, or 48 bytes. O0 keeps its existing allocation sequence. The alias test compares all helper kinds and modes against their exact results and FPSR. A guarded-loop fixture checks buffer growth, function boundaries and full CPU state with and without the pointer attributes. The initial 48-workload runtime search had inconclusive per-workload bounds. A fresh 35-round comparison checks the 16 distinct O1 kernels, each with 20,000 bootstrap resamples. Every workload clears the unchanged 2-percent regression bound. The aggregate ratio is 1.004 with a 95-percent interval of 0.999 to 1.011, so runtime improvement is inconclusive. This is a compiler-cost and stack-space change, not a demonstrated runtime speedup. All four O0 arithmetic objects remain byte-identical. Each O1/O2 arithmetic object is 16 bytes smaller, and the corresponding O1 and O2 objects are byte-identical for both candidates. Subsequent game validation is recorded above.
That rebuild exposed a separate scan in register promotion: each dirty register at a join searched every block for incoming edges. Some private functions contain about 40,000 blocks. The replacement indexes incoming edges once, retaining source and successor order, including duplicate switch edges. One allocation owns its arrays. The fixture checks ordinary joins, critical edges and duplicate switch edges. Full emitted IR is byte-identical to the original pass at 21 graph sizes. All 52 local CPU/tool/document checks pass, including the full QEMU sweep, promotion's independent callback-state models and the seed matrix. A nine-round Python comparison with 20,000 bootstrap resamples passes the fixed regression limits. Promotion alone improves 1.026 times at eight joins and 14.02 times at 2,048 joins, with a 95-percent interval of 12.77 to 15.68 for the latter. These are compiler-fixture results, not game FPS or complete recompile ratios. Native CI and the final game rebuild are reported below.
The indexed promotion change passed native Linux x86-64, AArch64 and Windows CI at 1a851232.
The macOS job was canceled before its first step. The fresh game rebuild completed all 155 units, reusing
149 of 154 unit objects. Its module grew from 695.4 to 734.1 MiB, about 5.6 percent.
Two warmups and five alternating pairs of 100-second game runs completed without crashes. All twelve screenshots rendered the same scene correctly. The sampler recorded no ring drops or incomplete exit records. The paired median ratio of final gameplay FPS-window means was 0.959, with a 95-percent bootstrap interval of 0.783 to 1.120. A second, unsampled series captured process-wide CPU counters at FPS-report boundaries. All five pairs completed. Its CPU-time-per-frame geometric speed ratio was 0.989, with interval 0.970 to 1.008. Its paired median FPS ratio was 1.012, with interval 0.783 to 1.044. Neither series establishes the fixed 2-percent non-regression bound. These are report-window measurements, not individual-frame p95 values. The expanded inline fixups therefore remain unapproved for the final SIMD signoff.
A follow-up shares wide exceptional min/max and rounding fixups within an IR unit. Value arguments and a
{vector, flags} result keep unrelated guest registers in SSA. The internal functions reuse the same exact
emitters and have no external runtime ABI. Short x86 vectors retain the original fallback after shared fixups
regressed ordinary short-vector kernels. The lowering census counts these calls explicitly. A repeated sequence
of 256 wide min/max and rounding pairs shrank from 390,040 to 173,312 object bytes. One pair grew from 2,824 to
3,672 bytes, so sharing is not universally smaller. The retained 45-workload rounding search passed 35 measured rounds with 20,000 bootstrap resamples per comparison.
Its geometric speed ratio was 1.595, with interval 1.593 to 1.599. Every workload passed the unchanged 2-percent
regression bound. The separate 35-round ordinary/infinity min/max check also passed every bound. These are
synthetic kernels on the x86-64 host, not game-FPS gains. All 53 local CPU, tooling and documentation checks pass, including the full QEMU differential sweep.
Under qemu64, the sharing fixture, 30,112,768 min/max cases and 19,970,048 rounding cases also pass.
Forty-eight object checks confirm unchanged O0 code and matching O1/O2 objects for the selected forms.
The changed C files pass additional warnings as errors. Native CI and the final game comparison are recorded
in the six-item completion above. The earlier inconclusive series remain here as rejected evidence.
The earlier half-conversion and estimate continuation was recompiled and checked against its preceding module with the same current runtime and restored private save. Both 100-second scene runs completed without crashes, and both screenshots rendered correctly. The final four five-second gameplay windows averaged 32.95 FPS for the preceding module and 33.00 FPS for the candidate. This single pair does not establish a game-FPS gain. The captures recorded 56,707 and 59,154 CPU samples with zero ring drops. Timer coalescing remains separate from ring drops. Game-derived files and saves remain local.
Made from docs/history/cpu-translator-progress.md at 69237645142c. GPL-3.0-or-later.