pixel_aot_comparisons_hardware is red on RDNA over one subnormal compare (CI excludes hardware tests) #951
Open
opened 2026-11-23 18:46:11 +00:00 by thepatrickworld
·
43 comments
No Branch/Tag specified
main
codex/indirect-large-backed-views
codex/word3-preflight-check
codex/vertex-table-two-records
codex/live-index-alias
codex/copied-vertex-buffer-srv
codex/windows-stage-test-output
codex/preserve-live-srv-retirement
codex/share-render-target-tracking
codex/sgd5-negative-offset-fixture
coverage-dashboard
codex/mesh-loose-root
codex/mesh86-cache-padding
codex/xmem-scatter-preflight
codex/mesh-depth-ps
codex/indirect-dispatch-refresh
codex/compute-container-index
codex/startup-compute-formatted-load
codex/compute-indirect-producer
codex/compute-atomic-soffset
codex/mesh-dual-handoff
codex/startup-run-sh-watcher-control
codex/queue31-page-alias
codex/indexed-indirect-compute-root
codex/typed-buffer-view-metadata
codex/translated-indexed-address-alias
codex/fixed-mesh-create-result
codex/xmem-section-lease
codex/startup-slot86-mesh-cache
codex/restore-mesh-barrier-iteration
codex/translated-indirect-upload-index
codex/xapu-completion-opt-in
codex/translated-indexed-rect
codex/translated-indexed-indirect
codex/startup-mesh-lds-integration
codex/startup-console-ms24
codex/startup-slot57-mesh-request
codex/indirect-copy-provenance
codex/present-color-producer-trace
codex/compute-dispatch-binding-trace
codex/translated-indirect-table-buffers
codex/indirect-copy-provenance-base
codex/mix-half-literal-source
codex/translated-indirect-draw
codex/xmem-scatter-diagnostics
codex/slot148-recording-upload
codex/slot70-loading-art-verified
codex/command-list-upload-arena
codex/recover-failed-command-list
codex/startup-heap-timing-notes
codex/align-audio-input-timeline
codex/synthetic-depth-export-control
codex/startup-texture1d-on-windows
codex/1629-packed-position-fixture
codex/cpu-srv-refresh
codex/stream-root-srv-draw
codex/audio-mixer-timer
codex/startup-reload-published-shader
codex/priority-integrate-1284
codex/guest-sixteen-page-record
codex/aot-placed-dxr-batch
codex/guest-directory-selection
codex/gamesave-enumerate-read
codex/readme-archive-to-pixels
codex/pe-placed-view-draw
codex/archive-directory-gpu
codex/slot133-dxr-build
codex/materialize-placed-vertex-view
codex/dstorage-directory-offsets
codex/xg-nine-bc-copy
codex/xg-slot10-bc64-arrays
codex/dxr-guest-address-readback
codex/gpu-va-high-bits
codex/clarify-diagnostic-startup-scope
codex/xg-six-levels
codex/typed-derived-blend
codex/english-legal-text-progress
codex/address-bc-4ks
codex/dstorage-bounded-file-read
codex/wide-srv-offsets-menu
codex/startup-memory-srv
codex/bound-view-tail
codex/language-selector-readback
codex/setup-menu-progress
codex/cpu-plane-refresh
codex/startup-ubyte-vertex
codex/presenter-window-selection
codex/startup-uniform-buffer-lane
codex/intro-loop-timing
codex/static-clzero-loops
codex/document-rtx-intro
codex/startup-insertq
codex/nv12-startup-texture
codex/stream-stage-draw
codex/startup-null-uav-format
codex/startup-draw-capture
codex/shorten-windows-checks
codex/dstorage-rfc1950
codex/startup-dump-fence
codex/pr1135-review-base
codex/startup-stream-requests
codex/startup-chroma-view
codex/readme-graphics-pipeline-streams
codex/static-crt-free-tls
codex/arc-140t-rtx-5080-laptop-gpu-reports
codex/main-startup-progress-entry
codex/signed-dxil-catalogue
codex/reloc-free-preferred-base
codex/quad-dpp-bit-mask
codex/raw-srv-bounds
codex/rx9070-31044-hardware-report
codex/gpu-page-source-provenance
codex/runtime-placeholder-interior
codex/gpu-copy-queue-tile-order
codex/pe-pin-external-providers
codex/xmem-placeholder-reservations
codex/xmem-shared-physical-pages
codex/pe-package-startup
codex/xmem-tools-memory-query
codex/cpu-stack-output-import
codex/pe-load-security-cookie
codex/record-three-bvh-retests
codex/cpu-rbp-frame-anchor
codex/xmem-default-startup
codex/record-rtx-3050-ti-9597
codex/docs-readme-start-here
codex/check-compute-mad24-truncation
codex/docs-discord-community
codex/bound-rcx-branch-mutants
codex/rtx5060ti-bvh-62114
codex/837-neutral-readme-disclaimer
codex/record-rtx-3070-ti
codex/title-neutral-public-wording
codex/exe-shadow-frame-submissions
codex/exe-shadow-runtime-chain
codex/readme-polish
codex/gpu-coverage-nov23
codex/spirv-minlod
codex/shadow-shim-device
codex/exe-two-shadow-frames
codex/shim-dispatch-cleanup
codex/fix-spirv-cache-probe
codex/sampler-use
codex/ballot-bit-extract
codex/packed-fma-release
codex/cpu-packed-fma-o2
codex/publish-coverage-dashboard
codex/mesh-cbv-binding-order
codex/spirv-window-fixture
codex/ps-e32-float-uint
codex/ps-cbuffer-reads
codex/fixed-profile-rescan
codex/shim-compute-integration
codex/readme-visible-coverage
codex/readme-research-navigation
codex/integrate-pr-256
codex/indexed-mesh
codex/sampled-coverage
codex/first-ms
codex/dual-ps
codex/ps-attribute
codex/compute-first
codex/ps-export
codex/readme-research-status
codex/ps-layout
codex/blast-window
codex/chart-caption
codex/reviewer-roles
codex/blast-aot
codex/archive-program
codex/crc-stream-program
codex/exe-image-data-chain
codex/local-cpu-fixture-coverage
codex/exe-bound-frame-chain
codex/exe-mapped-comparison
codex/contribution-dependencies
codex/exe-entry-aot
codex/bink-frame-heap-integration
docs/hardware-seven-reports
codex/bink-custom-heap
codex/bink-heap-callers
codex/discussions-entry-points
codex/gpu-community-batch-64
codex/ffx-scratch-writers
codex/generic-project-documentation
codex/ffx-dispatch-rcas
codex/four-windows-gpu-reports
codex/title-neutral-project-wording
codex/community-coverage-provenance
codex/rcas-packed-texels
codex/community-gpu-retests
codex/community-build-and-gpu-reports
codex/ffx-provider-loop
codex/ffx-recurrent-views
codex/ffx-recurrent-resource
codex/amd-wave64-reports
codex/ffx-backend-slots
codex/upscaler-device-init
codex/ffx-context-lifecycle
codex/ffx-version-query
codex/ffx-provider-contract
codex/typed-object-callback
codex/cpu-ordinal-import
codex/chained-cpu-ranges
codex/cpu-import-call
codex/cpu-direct-call
codex/cpu-leaf-aot
codex/community-project-status
codex/script-state-path-replay
codex/script-state-evidence
codex/bc7-resident-tail
codex/bcpack-mip-tail
codex/bc7-texture-draw
codex/asset-ranges
codex/pixel-constants
codex/pixel-aot
codex/pre-exe-workloads
codex/root-signature-device-coverage
engineering/packed-bvh-leaves
engineering/bvh-build-and-update
engineering/intake-root-roundtrip
community/gpu-check-release
community/english-contributor-entry
gpu-check-v0.1.0
Labels
Clear labels
No items
No labels
Milestone
Clear milestone
No items
No milestone
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".
No due date set.
Reference
R0Y00/Xbox2Windows#951
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from R0Y00/Xbox2Windows. Originally posted by thepatrickworld on 2026-11-23T18:46:11Z.
pixel_aot_comparisons_hardwarefails onmainon real hardware and never in CI, since both Windows jobs runctest -E '_hardware$'. It is one bit in one case. The interesting part is not the bit: it is that the harness recordspreserveas its binary32 denormal assumption, this adapter does not honour that assumption forfcmp, and there is no established answer for what the fixture should do about it.Reproduction on
mainLatest
mainat the time of writing is0f0c3eb. Same clone, same build tree, same machine (RX 9070 XT, RDNA4, native wave64, Windows 11 25H2), one file changed between the two runs:pixel_aot_comparisons_hardwareFailed 2.43 s,_warpPassed 6.03 scomparisons_hardwarePassed 9.14 s,_warpPassed 5.93 s, and the wholepixel_aot_set 100/100 in 326 s where the unchanged tree is 99/100One real case fails,
f32-cmp-1(the signed-zero set), one bit:Bit 18 is
v_cmp_eq_f32_e32 vcc_lo, 1, v16(tests/pixel_aot_check.py:14483): the integer immediate1is the subnormal0x00000001(1.401298e-45), compared againstrhs = -0.0. The reference (cmp_pred("eq", word_to_float(1), rhs),:14544) says false. The adapter says true, andx == -0.0can only be true if the compare saw+0.0where the shader holds a subnormal.What is actually measured, and what is not
Same compiled shader, same constant buffer, two adapters: WARP returns false (the subnormal is not treated as zero) and the RDNA adapter returns true. The harness compiles with
-Gis, the emitted HLSL keeps the operand asasfloat(1u), and the DXIL carriesfp32-denorm-mode = "preserve"with the constant folded to2^-149. So the module explicitly asks for preservation and this adapter does not deliver it for thisfcmp.What I cannot settle from a single card: whether that is the ISA or the driver. I am not claiming "binary32 compares flush" as an ISA fact — I have one adapter, one instruction, and a DXIL that says the opposite of what the hardware did.
Two measurements that bound it, though:
v_mul_f32preserves subnormals whilemad/mad32flush them, which is the splittools/pixel_aot.py:323-331already models withftz32;check_denorm_mode_draw,tests/pixel_aot_check.py:11683, withF32_DENORM_MODE = "preserve"at:73-77). So preservation works elsewhere; it is the compare that disagrees.Why this is a question for you rather than a patch
The harness's stated position is in
docs/experiments.md:3335: everything is compiled with-denorm preserve, and "preserve is the harness's recorded assumption".docs/experiments.md:3215goes further and describes this very fixture as evaluating the 16 IEEE-754 relations "including subnormals". By the project's own policy, an adapter disagreeing with a recorded assumption is "recorded as a mismatch rather than chosen" — which is exactly what is happening: the entry is doing its job and reporting that this card breaks the harness contract.So there are three ways out, and they are not equivalent:
mainred for anyone with this card.ftz32on the operands, asmad/macalready do). Deterministic on every backend, and it retires the ambiguity — but it decides, unmeasured, that the console flushes compares too. It also touches the compare lowering plus the four text assertions incheck_controls(:10467-10471) that pinsample16.x == sample16.yand theisnanforms.mainimmediately and hides the signal. I would not call that a fix.There is also a smaller point about the bit itself: with
rhs = -0.0it cannot fail for the reason it exists.1.4e-45 == -0.0is false, and so is1.0 == -0.0if the emitter had wrongly taken the immediate as a float — so the bit never proved that an integer immediate is read as bits. Its defect and its red are unrelated.What I am asking
Tell me which of the three you want, and I will send it. If the answer is (1), I will write the documentation patch with the measurement and leave the fixture alone. If it is (2), I will send the lowering change with the text assertions updated. I am not sending the third as a change, since it would remove the only runtime case in the suite where a subnormal reaches an f32 comparison.
AI-assisted; runs executed locally on the adapter above.
Imported from R0Y00/Xbox2Windows. Originally posted by roansystemlabs on 2026-11-23T19:04:26Z.
I'm on the NVIDIA side of this: running
pixel_aot_comparisons_hardwareand_warpat currentmainon an RTX 3070 (Ampere) and WARP with the debug layer, plus a standalone f32 compare probe (2^-149 against ±0, all 16 relations,-denorm any/ftz/preserve). Data only, no fixture change. Results here.AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by lantiumBot on 2026-11-23T19:07:53Z.
Second RDNA 4 adapter, same result. Data only, no fixture change.
0f0c3eb1f50f227ddc154ab7e081839628ff89b3, clean tree,devpreset (Debug)pixel_aot_comparisons_warppassed.pixel_aot_comparisons_hardwarefailed, identically in 6 of 6 runs, on the same single case and bit as the report above:Channels 1 to 3 of that case match. The four expected-mismatch controls still mismatch and the other six positive cases pass.
This only confirms the observation on a second device ID with one driver. It does not separate ISA from driver behaviour.
AI-assisted; runs executed locally on the adapter above.
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-23T19:13:59Z.
Keep the preserve-mode expectation and record the mismatch. The two RDNA 4 reports now reproduce the same bit with WARP passing. That gives us an adapter/driver result under a preserve request. It does not establish native gfx1013 compare behavior.
A small source-built comparison would help isolate it. Please compare ±min-subnormal against ±0 with explicitly separate preserve and FTZ builds, use an integer readback with unaffected normal/NaN controls, and report the DXIL denormal mode and raw predicate bits. Keep the existing failing row and report a capability skip separately. We can consider a lowering change once independent evidence establishes the guest behavior.
Imported from R0Y00/Xbox2Windows. Originally posted by roansystemlabs on 2026-11-23T19:30:53Z.
NVIDIA and WARP data, as promised, and the source-built comparison you asked for above. Data only, no fixture change.
Short version: on an RTX 3070 (Ampere, driver 621.01) and on WARP, both with the debug layer,
pixel_aot_comparisons_hardwareand_warppass on currentmain. A source-built probe of ±2^-149 against ±0 keeps the subnormal under-denorm preserve, across all 16 binary32 relations and every shape we tried. That includes the translator'sordered && ordered && (a == b)form and the five-bit probe from #312. It flushes underftzandany, and the normal and NaN controls are identical in both modes. Built withftzorany, the fixture fails on both of our adapters with exactly the case list and bit reported here for RDNA 4.Environment
10de:2484), driver 621.01 (UMD32.0.16.2101), D3D12 debug layer enabled10.0.26100.9818(1414:008c), debug layer enableddebug_errors=0 debug_warnings=0on every draw of the fixture-mode and probe runs below1.9.2602.17(Windows SDK 10.0.26100.0 path). The probe was repeated with DXC releasev1.8.2502(dxcompiler.dllreports1.8.2502.8), with identical words.mainat185ffbe(#929 merge), clean tree,devpreset (Debug).tests/pixel_aot_check.py,tools/pixel_aot.py,tests/offscreen_check.cppandtests/pixel_aot_render.cppare unchanged from0f0c3eb.1. The two CTest entries, three serial runs
pixel_aot_comparisons_hardware(RTX 3070)pixel_aot_comparisons_warpAll 11 batch cases give their expected status on both adapters.
f32-cmp-1returns0x0008cccc(bit 18 clear), and the four expected-mismatch controls and both mutation checks fire.2. Negative control: the same fixture under
ftzandanyWe ran
check_f32_compare_drawsagain with only the-denormvalue changed. The mode is swapped in memory and no file is edited. The DXIL listing confirms the attribute each time.-denormpreserve(harness default)ftzgot ['pass','mismatch','mismatch','mismatch',…],expected_bits=0008cccc actual_bits=000cccccanySo on these two adapters the fixture does see a flush when the pipeline really flushes, and the RDNA 4 result is exactly what a flushed operand produces in bit 18. The fixture's DXIL under
preservecarries"fp32-denorm-mode"="preserve"andfcmp oeq float %55, 0x36A0000000000000(2^-149), as in the original report.3. Source-built comparison: ±2^-149 against ±0
One synthetic pixel shader is compiled with
-Gis -T ps_6_2, once each with-denorm preserve,ftz,anyand with no flag. It is drawn throughoffscreen_check <backend> --check-pixel-caseinto the losslessR32G32B32A32_UINTtarget, and all operands come from the constant buffer. Each 32-bit word packs 16 relations,f lt eq le gt lg ge o u nge nlg ngt nle neq nlt tru, asrel(a, b)in bits 0–15 andrel(b, a)in bits 16–31. Each relation appears in three shapes: a plain HLSL expression (lgandnlgasa < b || a > band its negation, so NaN stays unordered), the exact formtools/pixel_aot.pyemits forv_cmp_*_f32, and the same form withaas an immediateasfloat(…u)(the operand form of bit 18). The fourth word holds the five #312 bits in bits 0–4 and an arithmetic check in bits 8–9.Raw predicate words, RTX 3070 and WARP identical, z = +0 and −0 identical:
fp32-denorm-mode)+2^-149(0x00000001), three shapes−2^-149(0x80000001), three shapespreserve("preserve")aaaaf0f0×3: keptf0f0aaaa×3: kept0 0 0 0 0ftz("ftz")cccccccc×3: flushedcccccccc×3: flushed1 1 1 1 1any("any")cccccccc×3: flushedcccccccc×3: flushed1 1 1 1 1cccccccc×3: flushedcccccccc×3: flushed1 1 1 1 1"Kept" and "flushed" are judged on every relation bit that differs between the two IEEE references (subnormal kept, or replaced by zero). Every word in this section is a raw readback, pass or fail: each case is drawn twice, once against the kept reference, which the renderer compares bit for bit (a match under
preserve, a mismatch under the other builds), and once against the bitwise complement of that reference, so that the renderer prints all four raw words. The two draws agreed in every case. Every probe listing carries the attribute of its build, the unflagged build carries none, and the immediates stay in the DXIL, e.g.fcmp olt float %6, 0xB6A0000000000000(−2^-149) underpreserve.Mode-independent controls, same draw and same three shapes: FLT_MIN (
0x00800000) against ±0,1.0against-1.0, and a quiet NaN (0x7fc00000) against 0 and against 2^-149. Words:aaaaf0f0×3 for FLT_MIN against +0 and −0 and for1.0against-1.0,ff00ff00×3 for NaN against 0 and against 2^-149, and the five #312 bits all clear. Identical underpreserve,ftz,anyand no flag, and equal to the IEEE reference on both adapters. As an arithmetic check in the same draw (bits 8–9 of the fourth word, the only bits that change between builds),0x00800001 + 0x80800000returns0x00000001underpreserveand0under the other three builds.Three runs per adapter with the SDK DXC and one with DXC 1.8 gave the same words (36 cases per adapter and run, each drawn twice).
What this shows, and what it does not
preservebuild keeps ±2^-149 in every binary32 compare we probed. That includes a compare feeding&&and||, the shape that fails on the RX 9070 XT in #312. The bit-18 failure is not reproduced here: on these two adapters the translated shader and the fixture's reference agree.anyand an unflagged build behave likeftzfor these compares, as they do for arithmetic in #312.The probe below should run unchanged on an RDNA 4 adapter. Usage:
python -I f32_compare_probe.py <dxc.exe> <offscreen_check.exe> <hardware|warp> <out_dir>. It needs only the standard library and the repository'soffscreen_check. It writes the generated HLSL, the DXIL listings, the raw renderer output and aresult.jsonto<out_dir>, and prints a per-subject summary at the end. SHA-256:cedc06cd5d64c7444b0bdb6c421b06700ad84c84081dbdca4e4c3a98c5be3953.f32_compare_probe.pyAI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by lantiumBot on 2026-11-23T19:34:07Z.
Source-built isolation on the RX 9060 XT, as asked above. Short version: on this adapter the compare itself honours
preserve. The fixture row fails only when a subnormal literal is compared in the same expression as the not-NaN guard on the other operand. Data only, no fixture change.1. Plain compares: preserve is honoured
One pixel shader (ps_6_2,
-Gis), built twice with-denorm preserveand-denorm ftz, drawn into the renderer's R32G32B32A32_UINT target. 14 operand pairs, six predicates each (==,!=,<,<=,>,>=), plusasuint(sub * 1.0)in word 3. Pairs:+/-0x00000001against+/-0in both orders,sub,sub,+sub,-sub,0x007fffff,+0; controls0x00800000,+0,1.0,2.0,1.0,1.0,+0,-0,qNaN,1.0. Two operand variants: both read from the constant buffer, or the left one written as anasfloat(<bits>u)literal."fp32-denorm-mode"="preserve"0e38ecb2,32cb2a72,000a9a4e,00000001"fp32-denorm-mode"="preserve"0e38ecb2,32cb2a72,000a9a4e,00000001"fp32-denorm-mode"="ftz"29a69a69,32a69a69,000a9a4e,00000000"fp32-denorm-mode"="ftz"29a69a69,32a69a69,000a9a4e,00000000References computed on the CPU: IEEE
0e38ecb2,32cb2a72,000a9a4e,00000001; both operands flushed to signed zero first29a69a69,32a69a69,000a9a4e,00000000. Word 2 holds the normal, signed-zero and NaN controls and is000a9a4ein every build. A second draw with the observed words as the expectation passed on all 64 pixels in every row. So+sub == -0is false on the Radeon under preserve here, for a runtime and for a literal subnormal.2. Reduction of the fixture row
The fixture emits
(lhs not NaN) && (rhs not NaN) && (asfloat(1u) == alu24). One compare per shader,r = asfloat(params[1].x)=0x80000000, fixture set 1 constants, bit 0 of word 0 at pixel (0, 0).RGis((asuint(r) & 0x7fffffffu) <= 0x7f800000u).asfloat(1u) == rRG && asfloat(1u) == r&& asfloat(1u) == rRG && r == asfloat(1u)RG && asfloat(1u) > rRG && asfloat(1u) != r!isnan(r) && asfloat(1u) == r(r == r) && asfloat(1u) == rRG & (asfloat(1u) == r)RG && asfloat(0x007fffffu) == rRG && asfloat(0x80000001u) == rRG && asfloat(1u) == p,p=+0RG && s == r,s=0x00000001from the constant bufferRG && asfloat(0x00800000u) == r(control)RG && 0.0f == r(control)RGalone (control)Under preserve the Radeon gives the flushed answer exactly when a subnormal literal is compared against an operand that also has a not-NaN test in the same expression. It gives the IEEE answer when the guard is absent, when the subnormal comes from the constant buffer, and for the smallest normal literal. WARP gives the IEEE answer in every preserve row. Under ftz both adapters agree on every row.
DXIL for the two smallest shaders (DXC 1.9.2602.17,
-Gis -denorm preserve -T ps_6_2). Both carryattributes #0 = { "fp32-denorm-mode"="preserve" }and the same compare against 2^-149; they differ only in the integer test and theand:What this does and does not show
fcmp oeq x, 2^-149depends on whether the result is and-ed with a not-NaN test ofx. A runtime subnormal in the same guarded expression compares correctly.Environment
0f0c3eb1f50f227ddc154ab7e081839628ff89b3, clean tree; renderer isoffscreen_checkfrom thedevpreset,--check-pixel-batchSection 1 script (uncommitted)
Section 2 script (uncommitted)
AI-assisted (Claude Code - Fable 5.2); runs executed locally on the adapter above.
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-23T19:45:22Z.
Thanks for the reductions from both adapters. On the RX 9060 XT the plain literal compare and the guarded constant-buffer compare honor preserve; the guarded subnormal literal alone flips to the FTZ answer. The RTX 3070 and WARP preserve results and the FTZ controls give us a second way to tell those paths apart. Please keep the strict fixture and its failing expectation. For a driver report or an independent RDNA 4 rerun, the smallest useful pair is the two preserve shaders that differ only by the guard, plus the same pair in FTZ and the guarded runtime-value control. Record DXC version and raw bits. The measurements identify the expression that triggers the discrepancy; the driver transformation and native gfx1013 behavior are still open.
Imported from R0Y00/Xbox2Windows. Originally posted by lantiumBot on 2026-11-23T19:49:27Z.
The smallest pair, as described above: five pixel shaders, one command. For an independent RDNA 4 rerun or a driver report. Data only, no fixture change.
r=0x80000000ands=0x00000001, both read from the constant buffer. Word 0 of the R32G32B32A32_UINT target is the compare result; IEEE says 0 for every row, operands flushed to zero say 1.-denormasfloat(1u) == r00000000,00000000,00000000,0000000000000000,00000000,00000000,00000000G && asfloat(1u) == r00000001,00000000,00000000,0000000000000000,00000000,00000000,00000000asfloat(1u) == r00000001,00000000,00000000,0000000000000001,00000000,00000000,00000000G && asfloat(1u) == r00000001,00000000,00000000,0000000000000001,00000000,00000000,00000000G && s == r00000000,00000000,00000000,0000000000000000,00000000,00000000,00000000Gis((asuint(r) & 0x7fffffffu) <= 0x7f800000u). Three runs per backend gave the same words every time. For each shader a second draw with the observed words as the expectation passed on all 64 pixels. The DXIL attribute was"fp32-denorm-mode"="preserve"or"ftz"as requested in every build.The two preserve shaders differ only in this line, and only the second disagrees with WARP:
Environment
0f0c3eb1f50f227ddc154ab7e081839628ff89b3, clean tree; renderer isoffscreen_checkfrom thedevpreset,--check-pixel-batchdxcompiler.dll: 1.9(5184-21d28f72)(1.9.2602.17) - 1.9.2602.17 (21d28f727), Windows SDK 10.0.26100.0, flags-Gis -denorm <mode> -T ps_6_2 -E mainSame limits as before: one adapter, one driver. The driver transformation and native gfx1013 behaviour are not addressed by this.
f32_guard_pair.py (uncommitted)
AI-assisted (Claude Code - Fable 5.2); runs executed locally on the adapter above.
Imported from R0Y00/Xbox2Windows. Originally posted by thepatrickworld on 2026-11-23T19:56:23Z.
Reproduced your section 2 on a second RDNA4 adapter, and your characterization holds exactly. Adding one thing you did not test — hoisting the literal — which closes the workaround question, and what I changed here as a result.
Your table on RX 9070 XT (preserve)
Same shader shape, same fixture constants (
r = asfloat(params[1].x) = 0x80000000), bit 0 of word 0:asfloat(1u) == rRG && asfloat(1u) == rRG && r == asfloat(1u)RG && asfloat(1u) > rRG && asfloat(1u) != r!isnan(r) && asfloat(1u) == rRG && asfloat(0x007fffffu) == rRG && s == r,sfrom the constant bufferRG && asfloat(0x00800000u) == r(control)RG && 0.0f == r(control)Under
-denorm ftzboth adapters agree on every row of your list, here too. So: plain compare preserves, the guard plus a compile-time subnormal does not, a runtime subnormal does, and 2^-126 is unaffected.Hoisting does not rescue it
I tried to materialize the literal in a way the compiler would not fold, nine variants, all under
preserve:precise float s = asfloat(1u);thenRG && s == rfloat s = asfloat(1u);uint u = 1u; precise float s = asfloat(u);asfloat(1u << 0)asfloat(uint(0x00000001))r, guard on the copyisfinite(r)?:instead of&&So the boundary is compile-time constant versus data, not literal versus register: no HLSL spelling of the value survives, only a load from memory does. That is consistent with your folding hypothesis and narrows it usefully — the translation unit cannot work around it, only the fixture can.
Which also means my earlier note was wrong on both counts, and I withdraw it: it is not the binary16 pack (integer, cannot flush) and it is not "binary32 compares flush" (a plain compare preserves, as you show and as I now reproduce). Your reading of the red row is the correct one.
What I changed in the fixture
Bit 18 compared the integer immediate
1against a runtime operand, so it took the folded path by construction. The row still has value — a subnormal reaching an f32 comparison — so instead of retiring it, it now gets the subnormal from data:The reference follows the same rule,
cmp_pred("gt", word_to_float((words[1] >> 31) & 1), 0.0). Two sets put a subnormal into the compare (rhs = -0.0 and rhs = -inf), and the bit is now observable: it is set exactly on those sets, where before it was clear on every set and could not fail for the reason it existed — withrhs = -0.0,1.4e-45 == -0.0and1.0 == -0.0are both false, so the bit never tested the immediate typing it was there for.Measured at
d7c4d6e, RX 9070 XT:pixel_aot_comparisons_hardwarePassed 9.94 s (it isFailed 2.43 son0f0c3ebwithout the change)pixel_aot_comparisons_warpPassed 5.84 sgt→geon that instruction: Failed 2.24 s, bit 18 flipping on every set (0038cccc→003ccccc,001af0f0→001ef0f0), so the row has teethThe immediate-as-bits property no longer has a runtime case here, and under
preserveon this hardware it cannot have one — it stays pinned on the generated source (asfloat(1u)in the emitted text), where no fold can hide it.The part that is yours to decide
If a future lowering ever wants to compare against a subnormal immediate under the not-NaN guard, it will hit the same fold, and the translator cannot route a literal through memory. Real shaders rarely do this, but the limitation is worth one line in the docs rather than another red entry. I have no view into the driver's output either, so I am only recording the behaviour, not explaining it.
AI-assisted; runs executed locally on the adapter above.
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-23T20:01:40Z.
The second RDNA 4 result and the nine hoisting attempts pin down a useful boundary. Please keep the original guarded-immediate preserve case with its strict expectation as a separately selectable diagnostic. A runtime-source comparison is welcome as additional coverage, with the
gttogemutation. Include the generated-source immediate typing assertion and the plain-immediate / guarded-runtime / FTZ controls so the reduced case stays reproducible. Keep known-mismatch reporting visible. A change that removes the original case would lose the verified driver signal.Imported from R0Y00/Xbox2Windows. Originally posted by MasterDomino on 2026-11-23T20:48:16Z.
Another RX 9070 XT, on two AMD drivers that are not in this thread yet, with the D3D12 debug layer enabled. Same case, same bit. Data only, no fixture change.
1002:7550)32.0.31035.1003(two runs atd7c52d2) and32.0.31044.16(four runs atdae1ca2; Windows Update replaced the driver between the two)devpreset, MSVC 19.44.35221 (toolset 14.44.35207), Windows SDK 10.0.26100.0, DXC1.8.2502.11 (239921522)debug_errors=0 debug_warnings=0on every drawFailed identically in all 6 runs (2 on
32.0.31035.1003, 4 on32.0.31044.16):Channels 1 to 3 of that case match, the expected-mismatch controls still mismatch, and the other positive cases pass.
pixel_aot_comparisons_warppassed in the same build.Independent RDNA 4 rerun of the smallest pair
The
f32_guard_pair.pyscript from the comment above, taken verbatim (SHA-256c3f247f8bc7594514016e67e2f4365d34fa42bb484bbf528a663fbb42d14b68c), with the renderer built atdae1ca2and the DXC above (-Gis -denorm <mode> -T ps_6_2). Three runs per backend, identical every time, and in every row a second draw with the observed words as the expectation matched all 64 pixels:-denorm32.0.31044.1610.0.26100.8875asfloat(1u) == r"preserve"00000000,00000000,00000000,0000000000000000,00000000,00000000,00000000G && asfloat(1u) == r"preserve"00000001,00000000,00000000,0000000000000000,00000000,00000000,00000000"ftz"00000001,00000000,00000000,0000000000000001,00000000,00000000,00000000"ftz"00000001,00000000,00000000,0000000000000001,00000000,00000000,00000000G && s == r(control)"preserve"00000000,00000000,00000000,0000000000000000,00000000,00000000,00000000Both backends ran with the debug layer enabled. This is the same pattern as the RX 9060 XT table: only the guarded compare against a subnormal literal under
preservegives the flushed answer, on a second RDNA 4 device ID and a third driver. It does not say where the transformation happens or what native gfx1013 does.AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by MasterDomino on 2026-11-23T21:11:21Z.
RDNA 4 ISA for the guard pair. The driver inserts a denormal-mode switch around the guarded compare, and that accounts for the flipped bit. Measurement only, no fixture change.
Setup
precisecbuffer operands,r = params[1].x), each built withdxc -Gis -denorm <preserve|ftz> -T ps_6_2 -E main, DXC1.8.2502.11.rga-windows-x64-2.15.zip, SHA-256 matched the release digest), DX12 mode, which compiles through the installed driver: AMD Radeon RX 9070 XT (1002:7550), driver32.0.31044.16, Windows 11 26H2 build 26300.9974.vs_6_2, oneR32G32B32A32_UINTrender target and the root signatureRootFlags(ALLOW_INPUT_ASSEMBLER_INPUT_LAYOUT), CBV(b0).ISA,
-denorm preserve, scheduling waits removed.1as an f32 operand is the inline integer constant, i.e.0x00000001:In
s_denorm_mode, bits 1:0 are the fp32 mode and bits 3:2 the fp16/fp64 mode (3 = keep input and output denormals, 2 = flush input denormals, keep output).15is the preserve mode the DXIL asks for ("fp32-denorm-mode"="preserve"). Only the guarded shader switches to14for the compare, so fp32 input denormals are flushed there:0x00000001is read as+0,+0 == -0is true, and the shader writes 1. That is the00000001the guard pair returns on this adapter underpreserve(my rerun above) and bit 18 off32-cmp-1. The plain compare and the guarded compare against a constant-buffer subnormal run with no mode change and keep the subnormal, which matches their measured0.The DXIL of the guarded shader is the plain pair
icmp ult i32 %4, 2139095041/fcmp oeq float %6, 0x36A0000000000000/and i1, so the mode switch comes from the driver's compiler, not from DXC.Under
-denorm ftzthe plain and guarded shaders contain nos_denorm_mode, and the plain shader's instruction stream is identical to the preserve build, so the flush there comes from pipeline state. That matches the point in #312 that the mode is not visible in the instruction bytes alone.Limits: RGA builds its own pipeline around the blob (my VS, render target format and root signature), so this is the driver's code for these shaders rather than a capture of the pipeline
offscreen_checkcreates. One driver and one device. It shows what the RDNA 4 driver emits; it says nothing about native gfx1013 or the console. Why the compiler selects mode 14 for this compare is not established.AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-23T21:18:34Z.
The same-blob comparison is useful here. On the reported RX 9070 XT, the guarded-immediate preserve variant alone changes the scalar denormal mode around its compare, while the guarded runtime-source variant preserves the result. Please retain those as separate cases in a focused experimental note. Include the raw pixel words, RGA/DXC versions and the fact that RGA compiles its own pipeline. Keep the strict guarded-immediate case and both the plain-immediate and FTZ controls in the test suite.
Imported from R0Y00/Xbox2Windows. Originally posted by lantiumBot on 2026-11-23T21:21:51Z.
RDNA 4 ISA on the second device (RX 9060 XT, gfx1200), plus one thing the ISA predicted and a draw then confirmed: the flush follows the shape of the DXIL, not the constant. Data only, no fixture change.
1. Same mode switch on gfx1200
The shaders of the guard pair, same text and flags (
dxc -Gis -denorm <mode> -T ps_6_2 -E main), compiled by Radeon GPU Analyzer in DX12 mode. The pipeline is the onedraw_verified()creates:tests/pixel_aot_vs.hlslasvs_6_0, its embedded root signature, no input layout, oneR32G32B32A32_UINTtarget.-denorm preserve,s_wait_*,s_delay_aluand the buffer descriptor setup removed:This matches the gfx1201 listing above:
s_denorm_mode 14/15around the compare in the guarded shader only. Under-denorm ftzno shader containss_denorm_mode; the plain and guarded-runtime ISA files are byte-identical betweenpreserveandftz, and the guarded one differs only by the two mode instructions, one operand order and the scheduling hints.2. What the switch follows
The three shaders above differ in their DXIL in one way. DXC flattens the
&&when the right-hand side is a constant compare and keeps a branch when it has to loads:So I built five more
preserveshaders to separate the constant from the shape:s_denorm_mode 14/15G & (s == r)and i1s_cmp_eq_f32 s4, s0G && (1.0f == r)and i1s_cmp_eq_f32 s0, 1.0G && (asfloat(0x00800000u) == r)and i1s_cmp_eq_f32 s0, 0x800000G && (asfloat(0x007fffffu) == r)and i1s_cmp_eq_f32 s0, 0x7fffff(params[2].x != 0u) && (asfloat(1u) == r)and i1s_cmp_eq_f32 s4, 1The switch is there with two runtime operands, with a normal constant, and with a guard that does not involve
r. In these eight shaders it appears exactly when thefcmpresult feeds anand i1, and never for the bare compare or the branch.3. Drawn, not only disassembled
That predicts a flushed result for a compare with no literal in it.
r=0x80000000,s=0x00000001, both from the constant buffer, drawn withoffscreen_check --check-pixel-batchby the guard-pair method (word 0 is the compare result; IEEE says 0, flushed operands say 1). Three runs per backend, identical every time, all 64 pixels equal in every row:-denormasfloat(1u) == r00000000,00000000,00000000,0000000000000000,00000000,00000000,00000000G && asfloat(1u) == r00000001,00000000,00000000,0000000000000000,00000000,00000000,00000000G && s == r00000000,00000000,00000000,0000000000000000,00000000,00000000,00000000G & (s == r)00000001,00000000,00000000,0000000000000000,00000000,00000000,00000000s == r00000000,00000000,00000000,0000000000000000,00000000,00000000,00000000G && asfloat(0x007fffffu) == r00000001,00000000,00000000,0000000000000000,00000000,00000000,00000000(params[2].x != 0u) && asfloat(1u) == r00000001,00000000,00000000,0000000000000000,00000000,00000000,00000000G & (s == r)00000001,00000000,00000000,0000000000000001,00000000,00000000,00000000The first three rows repeat the earlier table. The fourth is the new one: both operands are data, and the adapter still returns the flushed answer under
preserve. On this adapter the boundary is therefore not constant versus data. Loading the subnormal from memory only helped in the earlier control because DXC kept the short-circuit branch for it.For the experimental note
The request above keeps guarded-immediate and guarded runtime-source as separate cases. On this adapter the runtime-source case preserves the result because its DXIL is a branch, not because the operand is data:
G & (s == r)is runtime-source too and returns the flushed word. If the note records the runtime-source case, it may be worth naming its DXIL shape next to it, or adding theand i1runtime row as a third case. This is one device and one driver; an RX 9070 XT run ofguard_shape_draw.pywould say whether it holds there. The strict guarded-immediate case and the plain-immediate and FTZ controls are untouched by this.Environment
35a24907d17bc253fa33c0b3be171691debe0468, clean tree;offscreen_checkfrom thedevpresetdxcompiler.dll: 1.9(5184-21d28f72)(1.9.2602.17) - 1.9.2602.17 (21d28f727), Windows SDK 10.0.26100.0rga-windows-x64-2.15.zip, SHA-2561dd6fc63baa3ea00f0c4daf208b6139ca924566dd4305a77da0b6c5e52df2377(equal to the release asset digest)amdxc64.dll8.18.10.0514Limits
amdxc64.dllbundled with RGA has the same file version (8.18.10.0514) and a different hash; with--offlineit emits the same twos_denorm_modeinstructions for the guarded shader. I did not otherwise check which DLL the default mode loaded.and i1" describes these eight shaders. I did not tryor,select, or other consumers, and why the compiler picks mode 14 there is not established.guard_pair_isa.py and guard_shape_draw.py (uncommitted)
guard_shape_draw.pyimportsf32_guard_pair.pyfrom the comment linked above (SHA-256c3f247f8bc7594514016e67e2f4365d34fa42bb484bbf528a663fbb42d14b68c) from its parent directory and replaces only the shader list.AI-assisted (Claude Code - Fable 5.2); runs executed locally on the adapter above.
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-23T21:56:14Z.
Please put the two-adapter shape table and the DXIL/RGA qualification in a focused docs patch. For the test change, the runtime-subnormal comparison and its gt→ge control are useful. Keep the original preserve case separately runnable with its exact failure status, alongside the observational report and strict FTZ control. The proposed
divergences()currently returns an empty dict on an unsupported adapter, loader error, shader failure, or crash without channel lines. It also reads only the first mismatching pixel. Please propagate 77, fail on unexpected return or missing readback, and compare every returned word to the strict reference. The observational report can identify the known bit where the preserve and FTZ references differ. Keep that report separate from whether strict preserve passed.Imported from R0Y00/Xbox2Windows. Originally posted by lantiumBot on 2026-11-23T22:01:49Z.
I can take the focused docs patch: the two-adapter shape table (RX 9060 XT and RX 9070 XT), the DXIL shapes, and the RGA qualification with its pipeline caveat, in
docs/experiments.md. Docs only, no test change. @thepatrickworld, tell me if you already have it in progress and I will leave it to you.AI-assisted (Claude Code - Fable 5.2).
Imported from R0Y00/Xbox2Windows. Originally posted by thepatrickworld on 2026-11-23T21:46:31Z.
Two things: the RX 9070 XT run of
guard_shape_draw.pythat @lantiumBot asked for, and the test-suite arrangement that keeps the strict case while the main entry stops being red. The arrangement below was reworked after an external audit of the first version found three holes in it — the fix list is in the last paragraph.1. The shape table on a second RDNA 4 device
guard_shape_draw.pyandf32_guard_pair.pytaken verbatim from the comments above, renderer from25e9451(maindae1ca2), DXC1.9.2602.17, RX 9070 XT (1002:7550) driver32.0.32029.2010, WARP10.0.26100.9711:-denormplain00000000,…00000000,…00000000,…guarded&&00000001,…00000001,…00000000,…guarded-runtime&&00000000,…00000000,…00000000,…guarded-runtime&00000001,…00000001,…00000000,…plain-runtime00000000,…00000000,…00000000,…guarded-max-subnormal00000001,…00000001,…00000000,…unrelated-guard00000001,…00000001,…00000000,…guarded-runtime-and00000001,…00000001,…One run per backend, and in every row the script's second draw — with the words just observed as the expectation — matched all 64 pixels. The table matches the 9060 XT row for row, so the shape reading holds on a second device and a different driver build: the flush follows the
and i1, not the constant and not where the value came from.guarded-runtime-andis the row that settles it — both operands are data and the answer is still flushed — and it also retires an observation I posted earlier: a subnormal read from the same 16-byte vector asrlooked special to me, but that was a proxy for the compiler choosing this shape, not a property of the load.WARP returns the IEEE word under
preservein all seven rows, which is why the fixture can stay strict there.2. The test-suite arrangement
Against
d7c4d6e,git am-able:1; it derives the subnormal from the operand at run time and compares it against zero, so a subnormal still reaches an f32 compare on every adapter. It is also observable now: it is set exactly on the sets whoserhshas its sign bit, and agt→gemutation fails the entry (added to the existing mutation list).asuint(asfloat(1u)) & 0x7fffffffumust appear exactly once (the not-NaN guard of the bit 18 comparison). A bare"asfloat(1u)"would have been vacuous — the legacy source contains 75 of them, becausev_cndmask_b32emits? asfloat(1u) : asfloat(0u)— and would have passed even if the subnormal immediate were emitted as1.0f. Theasfloat(1065353216u)check in the main entry pins the same property for the1.0fimmediate of bit 21.pixel_aot_cmp_guard_diagnostic_<adapter>drawsf32_compares(legacy_immediate=True)— the original shader with bit 18 as the literal — against its strict expectation. It prints which of the seven sets reproduce the divergence and which do not. The one tolerated divergence is bit 18 of channel 0: bit 18 also exists on channel 1 (v_cmp_gt_f32_e64 s52, s44, -1.0), and an unscoped bit mask would swallow a regression there and even count it as a reproduction. Each draw's exit status is checked too, so a renderer that fails before printing cannot read as "no divergence". On this card it prints1 of 7 sets reproducedand passes; on WARP it prints seven times that it did not reproduce and passes.-denorm ftzis compared against a flushed reference and must match bit for bit on all seven sets. To be exact about what that shows: the hardware word does not change between the two modes — only the expectation moves — so this half verifies the flushed reference and that the divergence stays confined to that one bit. It does not, by itself, demonstrate that the divergence depends on the denormal mode.The diagnostic deliberately runs the case in the shader it was found in. I first tried a four-channel probe — normal immediate, subnormal immediate, runtime subnormal, swapped — and two shaders that differed only in whether the literal was bound to a local before the compare returned opposite answers on this adapter and this driver. That now has an explanation: the reduction changes the DXIL shape, and the shape is what the compiler acts on. A reduced probe is not a canary; the original shader is.
Measured at
d7c4d6e, RX 9070 XT, on the version below:pixel_aot_comparisons_hardware10.48 s,_warp6.51 s,cmp_guard_diagnostic_hardware1.84 s (1 of 7),_warp1.16 s (0 of 7). Fullctest -R "^pixel_aot_": 102 of 102, exit 0.Patch (112 insertions, 6 deletions, 2 files)
What the first version of this arrangement got wrong
An external review of the version I posted earlier found four things, all fixed above:
"asfloat(1u)" in source, which is vacuous — 75 occurrences.Two smaller corrections, in the same spirit: bit 18 only carries a real subnormal on 2 of the 7 sets (the ones whose
rhshas its sign bit — on the others the emitted comparison is0.0 > 0.0), and thegt→gemutation is caught through the equality set, not through the subnormal ones.I have not written the experimental note with the raw words and the RGA caveat — say the word and I will draft it against these numbers, including the fact that RGA compiles its own pipeline so the ISA listing and the draw are separate evidence.
AI-assisted; runs on the adapter above, ISA shape from the RGA listings posted in this thread.
Imported from R0Y00/Xbox2Windows. Originally posted by thepatrickworld on 2026-11-23T22:54:17Z.
Go ahead — I don't have it in progress. You have the gfx1200 listing and MasterDomino has the gfx1201 one; I did not run RGA at all, so I have no ISA measurement of my own to contribute.
What my run adds is the RX 9070 XT column, and the eight hardware rows are below complete, with all four channel words and the per-row fields (the log prints them per row; my earlier table elided them).
My WARP capture is a summary, not eight lines:
00000000on all seven preserve rows, and00000001onguarded-runtime-andunderftz.Four things to carry so the note stays inside its evidence.
1. The divergence is four rows, not one. The preserve rows that differ between backends are
guarded,guarded-runtime-and,guarded-max-subnormalandunrelated-guard—00000001on hardware,00000000on WARP.plain,guarded-runtimeandplain-runtimeagree at00000000, and theftzrow agrees at00000001on both. So the split is not "hardware reads subnormals, WARP flushes": it is exactly the set of shapes that carry anand i1, and it has to be stated that way or the table is just a list of lines.2.
words=andall_64_pixels_equalmean less than they look.words=is the four channel words of the first pixel the renderer reports; the script's docstring calls that(0, 0)but the code does not assert the coordinate.all_64_pixels_equal=truecomes from a second draw that uses those four words as the expectation for all 64 pixels: it establishes that the 64 pixels (256 words) are uniform, not that they are IEEE-correct. Andieee=/flushed=are literal expectations in the shader list, not a computed reference.3. My renderer is the same code as yours, not a different one.
d35a24907is not a commit — yours is35a24907d17bc253fa33c0b3be171691debe0468. The renderer sources are byte-identical at that commit and at mine (tests/offscreen_check.cpp,tests/pixel_aot_render.cppandtests/pixel_aot_vs.hlslshare the same blob hashes), so the eight words being identical to your 9060 XT rows is expected. The independent variable is the device,1002:7550on driver32.0.32029.2010, i.e. gfx1201 against your gfx1200 — not the commit.4. Provenance. DXC
1.9.2602.17(21d28f727), flags-Gis -denorm <preserve|ftz> -T ps_6_2 -E main; rendererout/build/dev/offscreen_check.exe, dev preset, built at2d8a0cc, SHA-25644bee69a4afcd0d83e2e22f33fa14947a582fa94e7b31ce6131076a02f73f2b1, 2 310 144 bytes; Windows10.0.26200.9711;debug_layer=unavailableon both backends. Scripts unchanged from your published blocks:f32_guard_pair.pyc3f247f8…d14b68c,guard_shape_draw.py3532e2a3…f0080bd. One run on the 9070 XT, against your three on the 9060 XT — the second draw inside a run is uniformity, not repeatability, so write the asymmetry rather than implying three on both.On the RGA paragraph I would be a blocker rather than a reviewer of style: it needs gfx1200 attributed to your run and gfx1201 to MasterDomino's, the two drivers kept distinct (
32.0.32029.2010vs32.0.31044.16), and the caveat stated in its own sentence — RGA compiles its own pipeline, with its own blend, rasterizer and sample state, so the ISA listing and the draw are two separate pieces of evidence, not a capture of the same pipeline.Ping me when the patch is up and I will check the table and the DXIL lines against these rows.
AI-assisted; one machine, one adapter.
Imported from R0Y00/Xbox2Windows. Originally posted by trick-ye on 2026-11-23T23:41:16Z.
pixel_aot_comparisons_hardwarepassed on an RX 7800 XT (RDNA 3) with driver32.0.32029.2010, at45ad903(mainwhen the checkout was cloned at 23:16 UTC on 2026-11-23; upstreammainadvanced before the runs) and atdae1ca2. This is a related RDNA 3 result for the registered test only. The request in https://github.com/R0Y00/Xbox2Windows/issues/312#issuecomment-7108577394 asked for the five-bit source-built probe and this test on an RX 7900 XTX; this is a different RDNA 3 card, and I did not run the five-bit probe.Environment
1002:747e), driver32.0.32029.2010(AMD Software 26.11.2). It is the only display adapter in this PC.1.9.2602.17, Python 3.13.0,devpresetoffscreen_hardwarerun from the45ad903build reportedbackend=hardware debug_layer=enabled,adapter=AMD Radeon RX 7800 XT vendor=1002 device=747e,driver=32.0.32029.2010anddebug_errors=0 debug_warnings=0.Command
Run from each checkout's root, three times at each commit:
Result
Expected: both backends pass the strict fixture. Observed: hardware and WARP each passed all three runs at each commit. Capability skips: none in these six CTest invocations. The earlier RDNA 4 reports in this thread failed at
f32-cmp-1.casewithexpected_bits=0008cccc actual_bits=000ccccc(excerpt).pixel_aot_comparisons_hardwarepixel_aot_comparisons_warp45ad903(mainat clone time, clean tree)dae1ca2(clean worktree)Each run reports
100% tests passed, 0 tests failed out of 2.The RX 7800 XT pass at
dae1ca2does not require a later source commit. At that same commit, the RX 9070 XT report in https://github.com/R0Y00/Xbox2Windows/issues/958#issuecomment-7113578912 failed in four of four runs on driver32.0.31044.16with DXC1.8.2502.11; this run used DXC1.9.2602.17. The RX 9060 XT in https://github.com/R0Y00/Xbox2Windows/issues/958#issuecomment-7111135937 failed on the same driver version as this RX 7800 XT (32.0.32029.2010), but at0f0c3eb. These are comparisons, not controls that isolate the GPU, driver or compiler.Limits
45ad903build linkedoffscreen_check.exe. Two CPU fixture targets,cpu_exe_tlsandcpu_exe_tls_early, failed to link (LNK2019/LNK2001: unresolved__dyn_tls_on_demand_init,__chkstk,__tls_guard,__dyn_tls_init; LNK1120). Neither executable is invoked by the logged pixel tests.AI-assisted (Claude Code).
Imported from R0Y00/Xbox2Windows. Originally posted by thepatrickworld on 2026-11-23T23:49:58Z.
This bounds the phenomenon usefully: the strict entry passes on your RX 7800 XT (gfx1101, RDNA 3) at both
45ad903anddae1ca2, while the same entry fails on the two RDNA 4 adapters we have (RX 9060 XT7590/gfx1200 and RX 9070 XT7550/gfx1201, both on driver32.0.32029.2010). So it is not "RDNA flushes subnormals in comparisons"; as far as the evidence goes it is RDNA 4 only, and your run is the first data point that separates the generations.Two things worth having straight, since your report is otherwise complete:
10.0.26100.9711). Your run does not state the WARP build; if you add it, the note can cite a third host.Nothing needed from you unless you want the gfx1101 row in the note; it is @lantiumBot's patch (#1044) and the table there is deliberately RDNA 4 only.
AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by lantiumBot on 2026-11-24T00:25:10Z.
One open point from the note merged in #1044, measured on the RX 9060 XT: which consumers of the
fcmpresult go with the flush. That note lists "whether consumers other thanand i1(or,select) trigger it" as not established. Data only, no fixture change.Short version, for this adapter and driver:
and i1is not the only consumer that goes with the flushed word. Withor i1,xor i1,zextfollowed by anadd, and (with a literal operand)zextfeeding the value operand of aselect, the word is the flushed one too. With azextthat is stored directly, aselectthat uses the compare as its condition, or a compare that reaches aphi, it is the IEEE one. In each of the 32 shaders the following three are either all present or all absent: the drawn word is the flushed one, thegfx1200ISA hass_denorm_mode 14/15around the compare, and the ISA turns the compare result into a lane mask.Setup
Sixteen pixel shaders, each with one compare against the subnormal (
and-two-fcmphas a second, unrelated compare), each built with the subnormal as a literal (L=asfloat(1u)) and as data (L=s=params[2].x=0x00000001): 32 in all,ps_6_2,-Gis -denorm preserve.r=params[1].x=0x80000000.Gis((asuint(r) & 0x7fffffffu) <= 0x7f800000u);yesandnoareparams[3].z != 0uandparams[3].w != 0u, true and false at run time;a,b=0x11,0x22;one,two= 1.0, 2.0 from the constant buffer. Every non-literal operand is read from the constant buffer, so every compare is wave-uniform; the float ones (r,s,one,two) are declaredprecise."DXIL use" is what DXC 1.9.2602.17 does with the result of the subnormal
fcmp, read from the listings; the predicate isoequnless noted. "Lane-mask selects" countss_cselect_b64 <reg>, exec, 0in the ISA. The RX 9060 XT cell names which of the two computed expectations the word equals: IEEE, or flushed (the subnormal read as zero).Lfcmps_denorm_mode(L == r) ? 1u : 0uzext, stored00000000IEEE00000000(G && (L == r)) ? 1u : 0uand i100000001flushed14,1500000000(G && (L > r)) ? 1u : 0uand i1(fcmp olt)00000000flushed14,1500000001(G && (L != r)) ? 1u : 0uand i1(fcmp une)00000000flushed14,1500000001(G & (L == r)) ? 1u : 0uand i100000001flushed14,1500000000(yes && (L == r)) ? 1u : 0uand i100000001flushed14,1500000000((one < two) && (L == r)) ? 1u : 0uand i100000001flushed14,1500000000(!G || (L == r)) ? 1u : 0uor i100000001flushed14,1500000000(no || (L == r)) ? 1u : 0uor i100000001flushed14,1500000000(no | (L == r)) ? 1u : 0uor i100000001flushed14,1500000000(yes != (L == r)) ? 1u : 0uxor i100000000flushed14,1500000001(L == r) ? a : bselectcondition00000022IEEE00000022G ? ((L == r) ? 1u : 0u) : 0uzext, thenselectvalue operand00000001flushed14,1500000000(G ? (L == r) : false) ? 1u : 0uand i100000001flushed14,1500000000uint(L == r) + azext, thenadd00000012flushed14,1500000011(!(L == r)) ? 1u : 0uzext, stored (fcmp une)00000001IEEE00000001(L == r) ? 1u : 0uzext, stored00000000IEEE00000000(G && (L == r)) ? 1u : 0uphi(afterbr)00000000IEEE00000000(G && (L > r)) ? 1u : 0uphi(afterbr) (fcmp ogt)00000001IEEE00000001(G && (L != r)) ? 1u : 0uphi(afterbr) (fcmp une)00000001IEEE00000001(G & (L == r)) ? 1u : 0uand i100000001flushed14,1500000000(yes && (L == r)) ? 1u : 0uphi(afterbr)00000000IEEE00000000((one < two) && (L == r)) ? 1u : 0uphi(afterbr)00000000IEEE00000000(!G || (L == r)) ? 1u : 0uphi(afterbr)00000000IEEE00000000(no || (L == r)) ? 1u : 0uphi(afterbr)00000000IEEE00000000(no | (L == r)) ? 1u : 0uor i100000001flushed14,1500000000(yes != (L == r)) ? 1u : 0uxor i100000000flushed14,1500000001(L == r) ? a : bselectcondition00000022IEEE00000022G ? ((L == r) ? 1u : 0u) : 0uzext, thenphi(afterbr)00000000IEEE00000000(G ? (L == r) : false) ? 1u : 0uphi(afterbr)00000000IEEE00000000uint(L == r) + azext, thenadd00000012flushed14,1500000011(!(L == r)) ? 1u : 0uzext, stored (fcmp une)00000001IEEE00000001The whole probe was run three times on each backend with the script quoted below. Each run draws every shader three times, and the three log files of each backend are byte-identical, so all nine draws per shader and backend gave the same four words. Words 1 to 3 were zero. A further draw with the observed words as the expectation passed over the whole 64x64 target (a uniformity check, not a repeat). WARP returned the IEEE word in all 32. The 32 pixel ISA files are byte-identical across the three runs.
Control: the same 32 shaders built with
-denorm ftz(DXIL attribute"fp32-denorm-mode"="ftz"in all 32) gave the flushed word in all 32 on both backends, and none of the 32ftzlistings containss_denorm_mode. Theftzlistings have the same lane-mask select counts as thepreserveones, shader for shader.Five literal rows are two DXIL programs: DXC emits byte-identical DXIL for
and-guard,and-bitwiseandternary-bool, and foror-unrelatedandor-bitwise. No other two of the 32 DXIL listings are identical. With a data operand,and-guardandternary-boolhave different DXIL (the order of thephioperands) and byte-identical ISA.What the table shows
and i1(withoeq,oltandune),or i1,xor i1,zextthenadd, andzextthen the value operand of aselect. Where a data operand gives the same DXIL shape (and-bitwise,or-bitwise,xor-unrelated,zext-add), the data row is flushed too.zextstored directly (plain,not),selecton the compare, and every shader where DXC emitted a branch and the compare reaches aphi.&&,||and a?:whose arm contains the compare (select-as-value,ternary-bool) into a branch; those 9 rows are IEEE.plainandzext-adddiffer only by the+ aafter thezext, and onlyzext-addis flushed.select-data(compare as the condition) is IEEE andselect-as-value(compare as a value operand) is flushed. That pair is not minimal:select-as-valuealso carries the guardG, and the driver compiles it to the same instruction sequence asand-guard, except for the source order of ones_and_b64.What the ISA shows
Every one of the 32 listings uses a scalar float compare on SGPRs (
s_cmp_eq_f32,s_cmp_lt_f32,s_cmp_gt_f32ors_cmp_neq_f32); no listing has av_cmp_*_f32. In the 16 literal listings the subnormal is the inline constant1, in the 16 data listings it is a second SGPR. Within each shape the compare is the same instruction with a literal and with data, exceptand-guard-gt, where DXC writesfcmp olt r, Lfor the literal andfcmp ogt s, rfor data, givings_cmp_lt_f32ands_cmp_gt_f32for the same relation. What differs between the IEEE and the flushed rows is how the result is consumed. Below,s_wait_*ands_delay_alulines are removed, the prologue before the first cbuffer load is cut, and each listing ends at itsexport.In the IEEE rows the flag set by the compare goes straight into a scalar
s_cselect_b32. In the flushed rows it is first widened to a 64-bit lane mask withs_cselect_b64 ..., exec, 0, then combined with mask logic or used by a vector instruction, and the mode switch brackets that sequence.On the operand of
s_denorm_mode: the LLVM AMDGPU backend builds it asSPDenormMode | (DPDenormModeDefault << 2)(getSPDenormModeValueinllvm/lib/Target/AMDGPU/SIISelLowering.cpp), withFP_DENORM_FLUSH_IN= 2 andFP_DENORM_FLUSH_NONE= 3 (SIDefines.h), the second field covering binary64 and binary16 (SIModeRegisterDefaults.h). Read that way, 15 is no flush for either field and 14 is flush-input for binary32 only, which is the reading given earlier in this issue. It agrees with the drawn words, which are what the compare that reads the subnormal gives if that operand is read as zero. Each of the 17 brackets holds that one compare; inand-two-fcmpwith a literal it also holds theone < twocompare, which has no subnormal operand. This is LLVM's encoding of the hardware MODE field (LLVMmain, read on 2026-11-24); I did not find it in an AMD RDNA 4 reference.Hypothesis, not established
On this adapter and driver the switch goes with the driver compiler materializing a scalar float compare as a lane mask, rather than with any particular DXIL opcode. That is a pattern over these 32
preservelistings on one device: underftzthe same lane-mask selects are present with no switch, so the mask path alone does not bring the switch. It does not say why mode 14 is selected there, and it may not be the cause: the mask path and the mode switch could both follow from something else in the compiler.Environment
offscreen_checkfrom thedevpreset (Debug), rebuilt at commit7baa8543348bcd4bee1456723799fe02bede32a7on a clean tree, SHA-256085e34b79ca50d5030a017444f7c8b895459da150d2c6bc176d6fd557fe099f4. That commit was the localmaincheckout; upstreammainhad already advanced, including the docs-only merge of #1044.3017324841cf9180206c6eafaba5942db56c8797cb206a4af8280e9d522a9252. Every log records the commit, the clean tree, the renderer hash and the script hash, and all runs reported here carry these values.gfx1200, wave64 listings, pipeline inputs taken fromdraw_verified():tests/pixel_aot_vs.hlslasvs_6_0, its root signature, oneR32G32B32A32_UINTtarget; other state is RGA's ownLimits
--offline --amdxcpointing at theamdxc64.dllof the active driver package (u0206168, version string 8.18.10.0514, binary file version 32.0.32029.2010, SHA-25667b564e684796142371af3bf5ba04055fd9301fd3501f508113fa9ef0034b779), and--offline --amdxcpointing at the copy bundled with RGA (version string 8.18.10.0514, binary file version 32.0.32015.2008, SHA-25649fa70e3a73a3c6f9af56f27172532803c665971d7e6a98f9f68004081182841). So two builds of the library give the same listings for these 32 shaders. I did not trace which library the default mode loads.s_cmp_*_f32. Per-lane operands were not tested; I would expect them to compile tov_cmp_*_f32, and did not check.0x00000001) against one other operand (-0.0), with three relations (==,>,!=).gfx1201run and no other vendor, so this narrows the open point for the RX 9060 XT; it does not settle it for the RX 9070 XT or other drivers. No RDNA 3 or earlier adapter was run with these shapes; the RX 7800 XT report above covers the registered fixture only.If useful, I can open a follow-up docs PR that narrows the "not established" clause merged in #1044 to what is measured here for the RX 9060 XT, or leave the note as it stands and keep this in the issue.
guard_consumers.py (uncommitted)
AI-assisted (Claude Code - Fable 5.2); runs executed locally on the adapter above.
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-24T00:44:14Z.
Thanks for the 32-shader matrix. On this RX 9060 XT and driver, OR, XOR and arithmetic consumers can reproduce the flushed readback too. Direct storage, use as the condition of a select, and the tested phi kept the IEEE word. That resolves the earlier question about OR for this adapter while keeping the observed ISA correlation separate from cause. #1063 now points to the original strict check. An independent RX 9070 XT run of the same source-built matrix would help test how far the result transfers; keep the strict comparison in place.
Imported from R0Y00/Xbox2Windows. Originally posted by thepatrickworld on 2026-11-24T00:51:12Z.
Ran the same script on an RX 9070 XT. The copy I used is byte-identical to yours —
guard_consumers.pySHA-2563017324841cf9180206c6eafaba5942db56c8797cb206a4af8280e9d522a9252, extracted from your comment rather than retyped.The 32 drawn words match your RX 9060 XT column: same 17 rows flushed, same 15 rows IEEE, same word in every cell, including
00000022forselect-data,00000012forzext-addand00000000forxor-unrelated.preserve, hardware, flushed rowspreserve, hardware, IEEE rowspreserve, WARP, flushed rowsftz, hardwareftz, WARPPer shader, the three draws gave the same four words and the whole 64×64 target matched the observed words, in all 32 shaders on both backends. Words 1–3 were zero everywhere, as in yours, and every
preservelisting carries"fp32-denorm-mode"="preserve"in the DXIL.So the consumer rule you derived is not specific to one die: the same rows flush on the second one (device 7550 vs 7590, gfx1201 vs gfx1200 per the datasheet). What this does not widen is the driver —
32.0.32029.2010on both sides — so another driver version is still untested. And I ran no RGA, so thes_denorm_modeand lane-mask columns are yours only: I am confirming the drawn words, not the ISA correlation.The four invocations, with no RGA argument:
Provenance:
Two notes on provenance, since both differ from yours. The renderer is built from
ed983c1, not7baa854: a different binary, though the same driver and DXC, so this is a re-run of your script under a different build rather than a different compiler. Andtree_clean=falseis my own doing: the script runsgit status --porcelainat start-up and counts untracked files, while my batch redirects stdout intom_hw_preserve.logand the other three logs in the worktree root, next to the two cmake logs. Those six??entries are the whole difference —--untracked-files=noandgit diff --statare both empty, and the renderer was built fromed983c1with no tracked change.On the strict check: agreed, and nothing here argues for relaxing it. My patch leaves the existing
f32_comparesentry and its expectation as they are, and adds a separate entry for the #958 case: it prints which of that fixture's seven comparison sets still fold bit 18 under-denorm preserve, fails on any difference other than that bit, and requires the flush underftz. It does not cover the 32 consumer shapes — those stay in this issue.AI-assisted; the script is yours, unmodified, and the four logs are on the machine that ran them.
Imported from R0Y00/Xbox2Windows. Originally posted by trick-ye on 2026-11-24T00:55:42Z.
Re https://github.com/R0Y00/Xbox2Windows/issues/958#issuecomment-7117411799: the WARP build on this host is
10.0.26100.9818.The
pixel_aot_comparisons_warpruns themselves print no renderer header, so that value comes from other WARP tests on the same PC and the same45ad903build:dxr_opacity_warpprintsbackend=warp debug_layer=enabled,adapter=Microsoft Basic Render Driver vendor=1414 device=008canddriver=10.0.26100.9818. It is in-box WARP:OFFSCREEN_WARP_DIRis empty in the CMake cache, and the product version of the systemd3d10warp.dllis10.0.26100.9818.Agreed on the scope in your first point. My run covers the registered strict fixture only; it says nothing about the diagnostics half of this issue or about the reduced shapes on this adapter, and it should not be read as agreement or disagreement with any patch.
AI-assisted (Claude Code).
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-24T00:57:21Z.
Thanks for rerunning the identical source-built script on the RX 9070 XT. The two RDNA 4 adapters gave the same 17 flushed and 15 IEEE preserve-mode results on driver 32.0.32029.2010, and preserve-mode WARP stayed IEEE in all 32. This is independent readback on a second adapter. The ISA observations still come from the RX 9060 XT run. Keep the strict result and use a different driver version, if available, to test whether the same pattern persists.
Imported from R0Y00/Xbox2Windows. Originally posted by thepatrickworld on 2026-11-24T01:31:44Z.
Second run done, on a different driver build, same host and the same renderer binary.
What I changed. Only the display driver package. I installed the driver packaged in Adrenalin 26.9.1 (
u0203731.inf,DriverVer=09/02/2026= 2026-09-02, version32.0.31041.3013) withpnputil, from the extracted INF; the Adrenalin application itself was not installed. That package carries its own user-mode driver as well (amdxc64.dll8.18.10.0504, against 8.18.10.0514 in the installed one), so this was a kernel and user-mode driver swap, not a panel-only change. The run whose strict result you asked me to keep used32.0.32029.2010(DriverVer=11/18/2026= 2026-11-18).What stayed identical. Same repo head
ed983c1, samerenderer_sha256=df250885fbd1ea7a429dcf1e583adabb8305bb602fb21095adae032e4e628398, samescript_sha256=3017324841cf9180206c6eafaba5942db56c8797cb206a4af8280e9d522a9252(the guard script, same hash as the copy @lantiumBot published), same DXC1.9.2602.17, same adapter1002:7550, same Windows build 26200 — the machine last booted on 2026-11-23 12:16, before both runs, so no update came in between.Result. The same divergence persists. The four passes (
hardware/warpxpreserve/ftz) match the first run line for line —diffover the full logs with thedriver=line set aside — and that is the only line that differs in any of the four: 32/32 comparison rows, sameword0, sameieee=/flushed=counts (the same 17 flushed and 15 IEEE, same values),three_draws_identical=trueandwhole_target_equal=trueeverywhere. The renderer, the guard script, DXC and the repo head are hash-identical, so the only variable between the two runs is the driver package.Then I put the original back.
pnputil /delete-driver oem27.inf /uninstall /forceon the 26.9.1 package, thenpnputil /add-driver <backup>\u0206168.inf /installfrom the copy I exported withpnputil /export-driverbefore touching anything. Device back at32.0.32029.2010,Get-PnpDevicestatusOK, problem codeCM_PROB_NONE. A re-run of thehardware preservepass is identical to the first run including thedriver=line. That re-run is a reproducibility control, not a sensitivity control: what pins the difference to the driver is the hash-identical renderer, guard script, DXC and repo head listed above.How far this goes. Both builds are 2026 Adrenalin releases ten weeks apart, within the same
32.0.3xline (sub-branches 31041 / 32029), same vendor, same GPU, same OS. So this rules out that the pattern belongs to that one build and its immediate predecessor. It does not rule out the pattern belonging to this driver family: a distant branch, another driver generation, a second GPU family or a non-Windows driver would still be needed for that. Limits unchanged from the earlier note: one host, one physical GPU (RX 9070 XT, 1002:7550), Windows only, no RGA, no second GPU family, WARP is the software adapter.AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-24T01:45:26Z.
The same RX 9070 XT, renderer, source and DXC gave the same 17 flushed and 15 IEEE preserve-mode rows on both 32.0.31041.3013 and 32.0.32029.2010, with unchanged WARP controls. That rules out a change between those two driver packages on this host and leaves the implementation cause open. Keep the strict preserve-mode failure. A different adapter or an independent native shader/ISA comparison would add evidence.
Imported from R0Y00/Xbox2Windows. Originally posted by thepatrickworld on 2026-11-24T02:04:41Z.
The ISA side, now compiled on this host rather than taken from the numbers in @lantiumBot's table.
I unpacked RGA 2.15 (
2.15.0.30 (10/02/2026)) from its portable Windows package; no installer was run. I ran the same script with its RGA argument set: the verdicts come from the hardware run (backend=hardware), and the ISA columns were produced on this host by RGA'sdx12mode, which uses the installed driver's compiler offline (rga_driver=default, driver32.0.32029.2010). RGA compiles offline and does not execute the shader. Same script (script_sha256=3017324…a9252, byte-identical), same renderer (renderer_sha256=df25088…8398), repo headed983c1,tree_clean=false, targetgfx1200,denorm=preserve. The run is 32 rows: 16 shapes x 2 operand forms.Result: the three properties are present on the same 17 of 32 rows and absent on the other 15. 17 rows have the flushed verdict, 17 carry
s_denorm_mode=[14,15], and 17 havelane_mask_selects>0(2 in 15 rows, 1 in eachzext-addrow). The three row sets are equal — the symmetric difference is empty in both directions — and the flushed set is the same 17 words as the run without RGA, so that set did not move.Where the split falls. With the subnormal as a literal, 13 of the 16 literal rows flush (
and-guard,and-guard-gt,and-guard-ne,and-bitwise,and-unrelated,and-two-fcmp,or-guard,or-unrelated,or-bitwise,xor-unrelated,select-as-value,ternary-bool,zext-add); the three that do not areplain,select-dataandnot. With the subnormal in a register, only four flush:and-bitwise,or-bitwise,xor-unrelatedandzext-add. Those four also flush with a literal, so no shape flushes with data only. The nine shapes that lose flushing with a data operand are exactly the nine whose data form hasbranches=2.What this does not add. This is the same driver compiler, offline, not an independent one. A different backend (LLVM/ACO, or a Mesa path) would be a separate compiler; I have no such path wired into this DX12 harness. And there is no second GPU with
Status=OKon this host: besides the RX 9070 XT (Status=OK), Windows lists an RTX 3060 withStatus=Unknownand a Meta Virtual Monitor (a virtual display), so the "different adapter" half of your request stays open.AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by trick-ye on 2026-11-24T03:44:54Z.
RX 7800 XT (RDNA 3): raw words from
f32_compare_probe.py, the probe published in https://github.com/R0Y00/Xbox2Windows/issues/958#issuecomment-7111713224 (its ch3 carries the five #312 bits). Two results: the subnormal subjects read the kept (IEEE) words underpreservein all three shapes, including the translator's guarded shape, and the plain-HLSL channel readsa500a500where the IEEE reference isff00ff00for both NaN subjects.Environment
devbuild log fore5bfa0crecords linkingoffscreen_check.exebefore these runs. Upstreammainhas since advanced.cedc06cd5d64c7444b0bdb6c421b06700ad84c84081dbdca4e4c3a98c5be3953, the value given in that comment.1002:747e), driver32.0.32029.2010; WARP10.0.26100.9818(in-box)1.9.2602.17; Python 3.13.0backend=hardware debug_layer=enabled,backend=warp debug_layer=enabled); every draw recordeddebug_errors=0 debug_warnings=0Command
Run once per backend, hardware first:
Each run recorded 36 results (9 subjects × 4 builds, each drawn as a verify and a readback pass) and 0 errors. The DXIL listings carry
"fp32-denorm-mode"="any","ftz"and"preserve"for the three flagged builds and no such attribute for the build without-denorm. No capability skip was reported.Result
Words are ch0 ch1 ch2 ch3 as the probe prints them (ch0 plain HLSL compares, ch1 the translator shape, ch2 the translator shape with an immediate, ch3 the #312 bits and the arithmetic control). "IEEE kept" and "flushed" are the probe's two computed references.
+min_subvs+0, and vs-0preserveaaaaf0f0 aaaaf0f0 aaaaf0f0 00000100+min_subvs+0, and vs-0any,ftzcccccccc cccccccc cccccccc 0000021f-min_subvs+0, and vs-0preservef0f0aaaa f0f0aaaa f0f0aaaa 00000100-min_subvs+0, and vs-0any,ftzcccccccc cccccccc cccccccc 0000021fFLT_MINvs+0, and vs-0;1.0vs-1.0preserveaaaaf0f0 aaaaf0f0 aaaaf0f0 00000100FLT_MINvs+0, and vs-0;1.0vs-1.0any,ftzaaaaf0f0 aaaaf0f0 aaaaf0f0 00000200+0, and vs+min_subpreservea500a500 ff00ff00 ff00ff00 00000100ff00ff00 ff00ff00 ff00ff00 00000100MATCHES NEITHER+0, and vs+min_subany,ftza500a500 ff00ff00 ff00ff00 00000200ff00ff00 ff00ff00 ff00ff00 00000200MATCHES NEITHERThe probe's summary for the RX 7800 XT:
On WARP the last two lines read
identical in all builds, IEEE; the other seven are the same.What the words say for this adapter and driver:
preserve, ch1 and ch2 (the guarded translator shapes) equal the kept reference, the same as ch0, for all four subnormal subjects. The #312 bits 0-4 read[0, 0, 0, 0, 0]underpreserve, which is the kept reference for those subjects. Withoutpreserveall three channels equal the flushed reference.ff00ff00in all four builds. ch0 readsa500a500in all four builds.ff00ff00 ^ a500a500 = 5a005a00, so in each 16-bit half the bits fornge,ngt,nleandnltare clear where the reference has them set. In the probe those four are the plain expressions!(a >= b),!(a > b),!(a <= b)and!(a < b); the upper half is the same expressions with the operands swapped.NaN vs +0in the build without-denorm(21st of the 36 results in run order): expectedff00ff00, actuala500a500. The earlier verify mismatches (rc=1) are the subnormal subjects and the arithmetic bits 8-9 in the builds withoutpreserve, which equal the flushed reference by design.preservelisting containsfcmp ulttwice andfcmp uletwice (the unordered predicates), next tofcmp uneandfcmp uno. The four.csofiles for that shader have the same SHA-256 in the hardware and WARP output folders, mode for mode, so the two backends were given the same DXIL and returned different ch0 words. The linked comment reportsff00ff00×3 for the NaN subjects on an RTX 3070 and on WARP.Limits
|| isnan(a) || isnan(b)(for examplengeasa < b || isnan(a) || isnan(b)), not as a negated compare. I did not trace individualfcmpinstructions to probe bits or capture native ISA, so these results do not identify the cause of the backend difference.AI-assisted (Claude Code).
Imported from R0Y00/Xbox2Windows. Originally posted by trick-ye on 2026-11-24T04:01:09Z.
RX 7800 XT with DXC 1.8.2502:
pixel_aot_comparisons_hardwarestill passes, 3 of 3. This addresses the limit I left in https://github.com/R0Y00/Xbox2Windows/issues/958#issuecomment-7117243670, where my runs used DXC1.9.2602.17and the failing RX 9070 XT report used1.8.2502.11. The build used here is the officialv1.8.2502release (1.8.2502.8), not that exact build.Environment
59eb78126c2f31dc936c002b8cdb2d5629021383(mainwhen pulled at about 03:40 UTC on 2026-11-24; upstreammainhas since advanced), clean treedxc_2025_02_20.zipfrom thev1.8.2502release ofmicrosoft/DirectXShaderCompiler(26,346,851 bytes, SHA-25670B1913A1BFCE4A3E1A5311D16246F4ECDF3A3E613ABEC8AA529E57668426F85).dxc.exe --versionprintsdxcompiler.dll: 1.8 - 1.8.2502.8 (b4711839e); dxil.dll: 1.8(1.8.2502.8).dxc.exe,dxcompiler.dllanddxil.dllcarry valid Microsoft Corporation signatures.-DDXC_EXECUTABLE=<that dxc.exe>, so the renderer's embedded vertex shader and the test's pixel shaders are both compiled by 1.8.2502. Onlyoffscreen_checkwas built there.1002:747e), driver32.0.32029.2010; WARP10.0.26100.9818(in-box)Command
From the checkout root; configure and build once, then the
ctestline three times:The CTest log echoes the test command with the 1.8.2502
dxc.exeand theout/build/dxc18renderer as its arguments.Result
Expected: both backends pass the strict fixture. Observed: both passed in all three runs. Capability skips: none.
pixel_aot_comparisons_hardwarepixel_aot_comparisons_warpEach run reports
100% tests passed, 0 tests failed out of 2.At this commit
tests/pixel_aot_check.pystill hasF32_DENORM_MODE = "preserve"and the row(18, "v_cmp_eq_f32_e32 vcc_lo, 1, v16").Limits
1.8.2502.8 (b4711839e); the RX 9070 XT report states1.8.2502.11 (239921522), a different build of the 1.8.2502 line, so that exact compiler build is not tested here.59eb781, not atdae1ca2. I did not rebuilddae1ca2with DXC 1.8.2502.AI-assisted (Claude Code).
Imported from R0Y00/Xbox2Windows. Originally posted by trick-ye on 2026-11-24T04:05:48Z.
RX 7800 XT (RDNA 3): the 32-shader consumer matrix from https://github.com/R0Y00/Xbox2Windows/issues/958#issuecomment-7118048180 reads the IEEE word in all 32 shaders under
preserve, in three of three runs. That comment notes that no RDNA 3 adapter had been run with these shapes, and https://github.com/R0Y00/Xbox2Windows/issues/958#issuecomment-7119416596 says a different adapter would add evidence. For the two RDNA 4 adapters, https://github.com/R0Y00/Xbox2Windows/issues/958#issuecomment-7118606945 records 17 flushed and 15 IEEE preserve-mode results.Environment
repo_head=59eb78126c2f31dc936c002b8cdb2d5629021383 tree_clean=true(mainwhen pulled at about 03:40 UTC on 2026-11-24; upstreammainhas since advanced),devpreset (Debug)renderer_sha256=35e32cb27b15c89673ae22e6b96a59c43864ee55aca03aa18593cca9fc289b17script_sha256=3017324841cf9180206c6eafaba5942db56c8797cb206a4af8280e9d522a9252, the value given in the linked comment; the script is that comment's code block, unmodifieddxc=dxcompiler.dll: 1.9(5184-21d28f72)(1.9.2602.17) - 1.9.2602.17 (21d28f727)adapter=AMD Radeon RX 7800 XT vendor=1002 device=747e,driver=32.0.32029.2010,backend=hardware debug_layer=enabledadapter=Microsoft Basic Render Driver vendor=1414 device=008c,driver=10.0.26100.9818,backend=warp debug_layer=enabled(in-box)debug_errorsline, so debug-layer message counts are not in these logs.Command
Commands as I launched them (paths abbreviated), one process at a time, hardware first. The logs hold the script's stdout only, so they confirm the backend, mode and run counts but not the launcher flags;
-Iis my addition to the linked comment's form:Result
preserve-> ieeein 32 of 32 shaders, each runpreserve-> ieeein 32 of 32 shaders, each runftz-> flushedin 32 of 32 shadersftz-> flushedin 32 of 32 shaderspreservelogs are byte-identical, and so are the three WARPpreservelogs.shape=lines of the hardwarepreservelog are identical to those of the WARPpreservelog, includingword0.three_draws_identical=true whole_target_equal=true.ftzhardware log has"fp32-denorm-mode"="ftz"on all 32 lines.preserve: theieee=value of each line. Observed: that value in all 32, so there is no mismatch to report for this adapter. No capability skip was reported.The 32 lines of the hardware
preservelogLimits
s_denorm_modeor lane-mask selects on RDNA 3.AI-assisted (Claude Code).
Imported from R0Y00/Xbox2Windows. Originally posted by Asimmimx on 2026-11-24T11:24:33Z.
RDNA 2:
pixel_aot_comparisons_hardwarepasses on an RX 6600 in 3 of 3 runs, with the same DXC build (1.8.2502.11) as the failing RX 9070 XT report. This thread has RDNA 4 failures and RDNA 3 passes (RX 7800 XT, on DXC 1.9.2602.17 and 1.8.2502). I found no RDNA 2 result here before posting. Data only, no fixture change.Environment
153bb5f6(main), clean tree,devpreset (Debug)1002:73ff, RDNA 2), driver32.0.21045.29003; WARP10.0.26100.98181.8.2502.11debug_errors=0 debug_warnings=0on every runResult
This includes the
f32-cmp-1bit 18 case (v_cmp_eq_f32of0x00000001against-0.0). Under the harness'spreserveassumption it reads false, as on WARP. I did not runf32_compare_probe.pyorguard_consumers.pyfrom this thread, and I did not capture the ISA. So this result shows only that the full test passes, not which consumer shapes keep the subnormal on RDNA 2.AI-assisted (Claude Code).
Imported from R0Y00/Xbox2Windows. Originally posted by thepatrickworld on 2026-11-24T11:28:33Z.
On the compiler axis, on the failing family. Same 32-shape matrix, same renderer binary (
sha256 df250885…8398, tracked tree clean), same adapter (RX 9070 XT, RDNA 4), only the DXC build changed:1.8.2502.8— the same1.8.2502release line as @Asimmimx's1.8.2502.11— instead of1.9.2602.17.Result: the ISA is identical shape by shape. 0 differences in
isa_sha256, 0 ins_denorm_mode, 0 in the ieee/flushed verdict, across all 32. Still 17 shapes carryings_denorm_mode [14,15], 15 lane masks, 15 IEEE / 17 flushed.So on RDNA 4 the compiler build is not the variable: both emit the same guarded sequence for the same DXIL. @Asimmimx's RDNA 2 run (
1.8.2502.11) and @trick-ye's RDNA 3 run each pass a single run, not both builds. Driver and OS differ across the three reports, so they are uncontrolled — with that caveat, the GPU family is the leading remaining variable.Run: RGA 2.15.0.30 /
gfx1200, driver 32.0.32029.2010, Windows 11 25H2 26200.9974,guard_consumers.pysha2563017324…a9252, renderer ated983c1c.Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-24T11:51:05Z.
The DXC A/B is a useful control: these two compiler builds produce identical 32-shape ISA and readback verdicts on the same RDNA 4 setup. The RDNA 2 and RDNA 3 results are separate driver/OS combinations. A source-built documentation update may record the matrix and controls; please preserve the strict compare and the existing denormal profile while the cross-device cause is still open.
Imported from R0Y00/Xbox2Windows. Originally posted by linusbrunotte-arch on 2026-11-24T13:13:12Z.
Polaris passes the strict pixel comparison fixture
Source:
ca4a98302544117caa71d85cd8c7e89f3749457f(main at test start). Windows 11 x64 build 26300.9974,offscreen_checkRelease built with Clang 23.1.6 in MSVC mode, Windows SDK 10.0.26100, DXC 1.9.2609.5. D3D12 debug layer unavailable. Radeon RX 590 Series (1002:67df) driver31.0.21923.1000where used; in-box WARP10.0.26100.9818.pixel_aot_comparisons_hardwarepassed on the Radeon in 13.07 s.pixel_aot_comparisons_warppassed in 7.31 s. Both executed, 0 skips. The strict fixture, includingf32-cmp-1, ran with no expectation or profile changes. This adds an older AMD adapter/driver combination to the existing matrix.Codex (GPT-6) assisted with test execution and reporting.
Imported from R0Y00/Xbox2Windows. Originally posted by thepatrickworld on 2026-11-24T15:44:55Z.
On the doc: do you want this as a PR, or are you recording it yourself? We have the paragraph written against
7c5dac78— adapter, driver, both controls, the 17/15 split and thegfx1200s_denorm_modewindow, no fixture change. Happy to open it, or to paste it here if you would rather fold it in.Imported from R0Y00/Xbox2Windows. Originally posted by lantiumBot on 2026-11-24T17:33:05Z.
@thepatrickworld on the doc question: my report offered a follow-up docs PR, and I withdraw that offer in favour of yours. The two controls that are new since then, the second driver package and the DXC A/B, are your measurements, and your paragraph is already written, so one patch from you avoids a duplicate. Whether it lands as a PR or is folded in is the maintainer's call.
When it is up I will check the RX 9060 XT cells against my logs: the 17 / 15 split, the
s_denorm_modeand lane-mask columns forgfx1200, and the provenance (commit7baa8543348bcd4bee1456723799fe02bede32a7, renderer and script hashes). The source for those is the 32-shader report.AI-assisted (Claude Code - Fable 5.2).
Imported from R0Y00/Xbox2Windows. Originally posted by thepatrickworld on 2026-11-24T17:44:06Z.
@lantiumBot thanks — opening it as #1719, one file,
+26/-0,docs/experiments.mdonly. No fixture, reference or denormal-profile change.The paragraph records the 17 / 15 split, the
gfx1200s_denorm_mode 14/15window around thefcmpthat feeds anand i1, both controls (two Adrenalin packages, DXC1.8.2502.8vs1.9.2602.17), and the adapters that report the case passing, attributed to their reporters.For your RX 9060 XT check: the cells in that paragraph come from the RX 9070 XT runs against commit
7c5dac78, so they are thegfx1201numbers, not the 9060 XT ones. If you have separate 9060 XT cells to add, say so on the PR and I will fold them in rather than have the two of us edit the same paragraph.Imported from R0Y00/Xbox2Windows. Originally posted by FAJIFBEFJHA on 2026-11-24T20:40:04Z.
I ran the same 32-shader consumer matrix on an AMD Radeon RX 7600 (
1002:7480,gfx1102, driver32.0.32029.2010). It matched the IEEE reference in all 32preserverows in each of three runs. In-box WARP (1414:008c,10.0.26100.9818) did the same. Both backends read the expected FTZ word in all 32 rows in each of three explicitftzruns.The
devbuild came from cleanmainatb80058f0478f71bd610dc8f83ea1229535a09f93. Windows 11 Pro 26H2 build26300.9974, MSVC19.52.37029.0, Windows SDK10.0.26100.0, DXC1.8.2502.11(239921522), Python3.13.5. Both adapters reporteddebug_layer=enabled. Renderer SHA-25659e93d7a59312fd881baa9d2e0c01f413721a150dd2c42ae1085a77ec6df8212.The two registered tests passed with zero capability skips. The probe was the unmodified code block with SHA-256
3017324841cf9180206c6eafaba5942db56c8797cb206a4af8280e9d522a9252. I used the five-argument form, three serial runs per backend and mode. All 384 rows matched the corresponding expectations, the three readbacks per shader agreed, and the uniformity draw passed. The DXILfp32-denorm-modeattribute matched the requested mode on every row. Probe sourcepreservepreserveftzand-guard0x000000000x000000010x00000001and-guard-gt0x000000010x000000000x00000000zext-add0x000000110x000000120x00000012The RX 7600
preservereadback matches all 32 RX 7800 XT words and differs from the two RDNA 4 reports in the same 17 rows. This is one RX 7600 configuration. The reports use different Windows, renderer and DXC builds. This run measured readback and DXIL consumer summaries. GPU ISA and draw wave width remain unmeasured. RX 7800 XT · RX 9060 XT · RX 9070 XTAI-assisted (Codex and ChatGPT). Measurements ran locally on the adapters above.
Imported from R0Y00/Xbox2Windows. Originally posted by thepatrickworld on 2026-11-24T21:52:07Z.
We have a fix candidate for the failing case, and the cause is now pinned to one instruction shape rather than to the adapter.
On the RX 9070 XT,
pixel_aot_comparisons_hardwarefails case 2 (f32-cmp-1.case,F32_COMPARE_SETS[1],+0.0against-0.0): the expected word is0008ccccand the card reads000ccccc, a difference of0x40000— bit 18, which iseq(0x00000001, -0.0). The card flushes the subnormal to zero and answers equal; WARP answers IEEE.The translator decides the six ordered binary32 relations with a float comparison and guards NaN on the bits. A driver compiler can bracket that comparison with
s_denorm_mode 14, which is the window thegfx1200listing shows, and inside it the operand is zero. The patch decides the relation on an unsigned key of the encoding instead, where both zeros share one key andnegandabsare applied to the word; no float operation is left in the comparison, so there is nothing to bracket.Measured on the RX 9070 XT, driver
32.0.32029.2010:pixel_aot_comparisons_hardwareandpixel_aot_comparisons_warpboth pass, and thepixel_aotsuite gives 172 of 174. The two failures (pixel_aot_attribute_sampled_hardwareand_warp,whole_quad: unexpected result (exit 0)) reproduce on unpatchedc681e34a, so they are not from this change.The strict compare and the existing denormal profile are untouched, and no fixture or reference changes. Two assertions in
tests/pixel_aot_check.pypin the emitted text and follow the new form. Limits: thef16andf64comparisons have the same structure and are not changed here, then*predicates keep the float path, and this is one physical adapter.If the approach is acceptable I will open it as a PR, with the key32 check against an exact IEEE model (300k operand pairs) in the description.
Imported from R0Y00/Xbox2Windows. Originally posted by thepatrickworld on 2026-11-25T15:39:01Z.
One concrete offer, since hardware coverage looks like what limits the queue right now.
I have a Windows 11 25H2 (
26200.9974) machine with an AMD Radeon RX 9070 XT (1002:7550), driver32.0.32029.2010, MSVC19.44.35230, bothfxcand DXC1.9.2602.17, and thehardwarebackend works. No NVIDIA card here — AMD and in-box WARP only.It has already run
startup_gfx2hlsl_frexp_cvt_warp_check,startup_gfx2hlsl_cube_alu_check,startup_image_cube_array_checkandcompute_salu_absdiff_checkindraw/hardwaremode, so the harness is up.If it is useful, name the PRs you want hardware receipts for and I will run them on that adapter and post the raw output: head SHA, exit codes, and the fixture's own lines. No branch changes and no verdicts — just the log, with its limits written down.
If it is not useful, say so and I will stop offering.
AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by RavenCurseBurg on 2026-11-26T02:41:12Z.
I will run the published 32-shader consumer matrix on a desktop Intel UHD 770 and an RTX 4060, using WARP on the same Windows installation as a control. I will check the preserve/ftz attributes and compare the actual words for literal and uploaded inputs, including the guard and integer consumers. I will identify the exact compiler and renderer used and report the observed rows.
Imported from R0Y00/Xbox2Windows. Originally posted by RavenCurseBurg on 2026-11-26T02:52:23Z.
Intel UHD 770 and GeForce RTX 4060 both produced the IEEE word in all 32
preservecases and the flushed word in all 32ftzcases. In-box WARP gave the same results on this host. This covers the least positive subnormal compared with −0.0 as a shader literal and as uploaded data.I ran the published 32-shader probe twice per device and mode. Both runs produced identical rows, including the DXIL consumer summaries. Every row had the requested
fp32-denorm-mode, identical first-pixel words on its three measurement draws, zero in the other three channels, and an exact whole-target verification draw. Across all three adapters, the literaland-guardreturned 0 under preserve and 1 under ftz,and-guard-gtreturned 1 and 0, andzext-addreturned 0x11 and 0x12. This supplies two additional physical-adapter controls for the 17 differing preserve rows in the RDNA 4 reports.Windows 11 build 26100.9711, DXC 1.9.2609.5 (
01b62ad47),ps_6_2 -Gis, debug layer unavailable on all three adapters. Source checkouta3b923e1fa0415d190cad8beec038d3e11763d68; the second complete run used a clean tree. The first run shared a worktree with unrelated LDS fixture edits. Probe SHA-2563017324841cf9180206c6eafaba5942db56c8797cb206a4af8280e9d522a9252. The single-case renderer came fromc601e6e9dcee2a96fc5b103f0bfedfe39557002d, executable SHA-2567f99e6782eb13238153ccf395483cfc3419627f2d0739a606fe72397a6f3cef2.I also ran the current registered test entry point,
python -B tests/pixel_aot_check.py draw-comparisons <dxc> <renderer> <hardware|warp>. It returned 0 on all three adapters with the batch-capable renderer from76dd27e11ed85e29daaadabb3bdcf5216adf0478(SHA-256f478558c443b461f655384f4d750bbac827d26707a7528fca4e0ba2ca90729d3). The older single-case renderer rejected the batch option. These are readback and DXIL observations. Native GPU ISA and wave widths were not measured.AI-assisted (Codex, GPT-6.2 Astra xhigh).
Imported from R0Y00/Xbox2Windows. Originally posted by thepatrickworld on 2026-11-27T13:49:11Z.
What the UHD 770 / RTX 4060 controls settle, and the RDNA 4 status at
36d2cbebNot a code change; measurements and one analysis only.
What the three adapters add
RavenCurseBurg's rows answer the question this thread has been circling: the harness's
preserveassumption is not something only the AMD adapters are asked to deliver. The Intel UHD 770 (8086:a780, driver32.0.101.5973), the RTX 4060 (10de:2882,32.0.15.9579) and the in-box WARP adapter on that host return the IEEE word in all 32preservecases and the flushed word in all 32ftzcases, twice per device and per mode, on the 32-shader probe they published (SHA-2563017324841cf…, as reported). That is two vendors plus WARP outside RDNA 4: thepreserveexpectation is not an AMD-only demand, and these three adapters deliver it where three AMD adapters already did.They also report the consumer triple:
and-guardreturns 0 under preserve and 1 under ftz,and-guard-gtreturns 1 and 0,zext-addreturns 0x11 and 0x12, identical on the three adapters. Those are the consumer shapes the RDNA 4 split is grouped by indocs/experiments.md, so the rows are directly comparable to the 17-of-32 flushed split rather than a separate pass/fail.What they do not settle
The mechanism. Their run is a readback and DXIL observation: they state that native ISA and wave widths were not measured, and that the debug layer was unavailable on all three adapters. Nothing in it decides whether this adapter flushes in the ISA or because the UMD brackets the compare — the
gfx1200listings indocs/experiments.mdshows_denorm_mode 14 … 15around 17 of the 32 shapes, and those listings are the compiler's target, not the adapter's.Status of the failing case at today's
main(36d2cbeb)The lowering the case exercises is unchanged since the 24/11 measurement.
f32_comparisonintools/pixel_aot.pyis byte-identical atc681e34aand36d2cbeb(sha256470a0efcff67ba3b, on the function body with trailing whitespace stripped): the six ordered relations still build a float predicate and guard NaN on the bits, with no integer-key comparison.The fixture is unchanged too:
f32_compares(sha25646f6411be9ab),F32_COMPARE_SETS(aaf6180f537d) and the nestedcmp_predreference (fceb5f497610) are identical at both revisions.So the source text that produced the 24/11 result is what this tree emits: the lowering and the fixture are the same at both revisions. The card result itself was not re-measured. In the saved
pixel_aot_comparisons_hardwarelog, the entry fails on case 2 of the f32 group (f32-cmp-1.case):The difference is bit 18 of the case word, which the fixture builds as
cmp_pred("eq", sub_min, rhs)withrhs = -0.0: the card sets the bit, the reference does not. Case 3 carries the same channel-0 words, and it is the expected-mismatch control (f32-cmp-bad-1.case), so its disagreement is expected and does not fail the entry.I have not re-run it on the card today; the claim is that the source text is the same, not that I re-measured. That observation is one adapter (
1002:7550, driver32.0.32029.2010) on one OS build, as recorded indocs/experiments.md.The proposed form, checked against an exact IEEE model
The patch decides the relation on a canonical unsigned key of the encoding instead: both zeros collapse to one key, then the key is the sign-magnitude order, and the six relations become integer comparisons. NaN keeps the existing bits-only guard.
Evaluated against an exact model (
struct.unpack('<f', …)of the same words, ordered relations false when either operand is NaN): 1 802 400 checks — 300 400 pairs × 6 relations — 0 disagreements. The pairs are the edge set (±0, smallest and largest subnormal of both signs, min normal, ±1, ±2, max finite, ±inf, qNaN, sNaN, one payload NaN) plus 300 000 pseudorandom bit pairs at a fixed seed. Twenty values, so 400 edge pairs and 300 400 pairs in total.The failing operand behaves as expected on both sides:
eq(0x00000001, 0x80000000)is false in the model and false on the key, while the flushed readingeq(+0.0, -0.0)is true — which is the observed bit, since the two zeros compare equal under IEEE.Limit: this is a model of the emitted form, not a GPU run, and it does not prove the compiler keeps the integer form. It has no float operation left to bracket, which is the argument, not the measurement.
The open question
The offer from 24/11 stands. If the key32 form is acceptable I will open it as a PR — one behaviour, the
f32_comparisonpath, with this model and the 300 400-pair result in the description. A no is also an answer and I will stop asking.AI-assisted.