Skip to content

Recompiler: v_med3_f32 / _f16 with a NaN operand give the min of the others (#678) - #686

Open
joeypercia wants to merge 3 commits into
xcl-dev:mainfrom
joeypercia:recompiler-med3-nan
Open

joeypercia wants to merge 3 commits into
xcl-dev:mainfrom
joeypercia:recompiler-med3-nan

Conversation

@joeypercia

@joeypercia joeypercia commented Nov 24, 2026 •

Copy link
Copy Markdown

With a quiet NaN operand the hardware's v_med3_f32 / v_med3_f16 return v_min(v_min(s0, s1), s2), the smaller of the two other operands, as LLVM's amdgcn_fmed3 folding documents (AMDGPUInstCombineIntrinsic.cpp). med3f computed max(min(a, b), min(max(a, b), c)), which gives max(a, b) for a NaN in c and b / a for a NaN in a / b. It now takes the min of the others when an operand is NaN; the median path is unchanged. Fixes #678.

What is in it

  • crates/xcl/src/gpu/recomp/emit.rs: med3f (used by v_med3_f32 and v_med3_f16) handles a NaN operand
  • crates/xcl/src/gpu/recomp/tests.rs: gpu_med3_with_a_nan_operand_is_the_min_of_the_others, f32 and f16: a NaN in each position with both operand orders, the clamp form, two NaNs, and a no-NaN control
  • crates/xcl/src/gpu/dxil/prelude.rs (by @milesah3ad, from the parity sweep on [OFFICIAL] Looking for PRs with shaders optimization #1269): the direct DXIL backend's med3f gets the same NaN rule, so the test passes with XCL_DIRECT_DXIL=1 too
  • crates/xcl/src/gpu/recomp/lower.rs (by @milesah3ad): check_f32_three_source expects the NaN rule; with this PR on current main, lower_dxil::tests::f32_programs_on_the_gpu failed on both paths without it
  • rebased onto main (aa9ab8a), which now has the direct backend

Tested

  • NVIDIA GeForce RTX 4070 Ti (Ada, 32-lane waves), driver 616.56; AMD Radeon iGPU (Ryzen 7 7800X3D, RDNA2, 32–64 lanes, no mesh shaders), driver 26.11.2; Windows 11 Pro 26200; Rust 1.100.0 MSVC; DXC 1.8.2502.11 (SDK 10.0.26100); debug
  • cargo test --workspace --no-fail-fast -- --test-threads=2 on 8c60272: RTX 4070 Ti 1083 passed, 0 failed, 46 ignored; RDNA2 1082 passed, 1 failed, 46 ignored. The failure is gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1 (seed 540, res[833] = 0x7, CPU 0x6, no med3 in the program); it fails the same way on main aa9ab8a (2 runs of 2)
  • with XCL_DIRECT_DXIL=1 on both GPUs: gpu_med3_with_a_nan_operand_is_the_min_of_the_others and lower_dxil::tests::f32_programs_on_the_gpu pass
  • SKIPPED: RTX 4070 Ti the wave64 / per-lane lower and lower_dxil GPU tests (no wave64); RDNA2 the mesh tests (no mesh shaders); both: the f16_programs_on_the_gpu per-lane forms refused by gpu: direct RDNA2 -> DXIL backend (no HLSL / DXC), behind XCL_DIRECT_DXIL #1426 (V_MUL_F16 / V_PK_MUL_F16 / V_CVT_F16_F32)
  • negative control: with only emit.rs back to main, the new test fails: 8 wrong (all four non-clamp NaN positions, f32 and f16) on the RTX 4070 Ti and on RDNA2
  • native RDNA2 reference by @luckyteagirl (RX 6800M, gfx1031, raw v_med3_f32 / v_med3_f16 on the hardware): a quiet NaN in any position gives the min of the other two, as this PR does; signaling NaNs differ with the IEEE mode bit on (src0/src1 sNaN gives src2); sNaN cases are left out (see Not tested)

Regression run

RTX 4070 Ti (driver 616.56), release builds, 60 s each, scripts/smoke.ps1 -Title retail-title on the newer retail title, main aa9ab8a and this PR's head 8c60272 (no uncommitted changes). (@Anon64's earlier runs, on an RTX 3060 for the previous head 3115aae, were equally clean.)

main:

xcl-smoke v1
commit: aa9ab8a3e7b738ec48899e37805f6a7d2d22da53
gpu: NVIDIA GeForce RTX 4070 Ti
title: retail-title
seconds: 60
exit: 0x0
frames shown: 1613 (PresentX 1613)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 16044 MB

PR:

xcl-smoke v1
commit: 8c6027287752346710624075516b980feb2e77f0
gpu: NVIDIA GeForce RTX 4070 Ti
title: retail-title
seconds: 60
exit: 0x0
frames shown: 1491 (PresentX 1491)
presents per 2 s (last 3): 46 60 60
device removals: 0
crashes: 0
peak commit: 17404 MB

Not tested

  • Whether the newer retail title's shaders hit v_med3 with a NaN operand outside the clamp form. They use the instruction a lot: its shaders.rpf (xcl shaders --json, 26 503 shaders) has 58 722 v_med3_f32 in 8 050 shaders (and 21 v_med3_f16). The 60 s runs above show no regression but cannot tell whether such a NaN occurs.
  • Signaling NaN inputs (LLVM notes s0 / s1 sNaN give s2 with ieee=1)
  • Release build

AI use

  • Claude Code with Claude Opus 5.5: found the bug, wrote the fix, the test and this description, and ran the tests above on my machine.

@lordon1a

Copy link
Copy Markdown

Independent test report on 3115aae:

Tested

  • Hardware: NVIDIA GeForce RTX 3070 Ti Laptop GPU (driver 616.64, wave32, SM 6.6), Intel i7-12700H, Windows 11 Home 26H2 (build 26200), rustc 1.100.0 (x86_64-pc-windows-gnullvm), debug build, DXC 1.9.2609.5 (01b62ad4)
  • Command: cargo test -p xcl --lib gpu_med3_with_a_nan_operand_is_the_min_of_the_others -- --nocapture
  • Result: 1 passed, 0 failed, 0 ignored in 0.56s (gpu_med3_with_a_nan_operand_is_the_min_of_the_others ok)

Not tested

  • AMD / wave64, Intel GPU, retail title

AI use

  • Antigravity (Google DeepMind agent) — fetched 3115aae in a detached worktree, audited the diff, ran the test, and posted this report.

@ItsMrDubey

Copy link
Copy Markdown

Test report for 3115aae56b659ada6714fac41628b364dbedbd37 (this PR's head)

Tested

  • NVIDIA GeForce RTX 4070 Ti 12 GB (Ada), driver 617.14; Intel Core i9-10900K, 32 GB RAM; Windows 11 Pro build 26300
  • Rust 1.88.0 (stable-x86_64-pc-windows-msvc), debug; DXC 1.9.2602.17 from Windows SDK 10.0.26100
cargo build --workspace
cargo test --workspace --no-fail-fast -- --test-threads=4

16 test binaries: 692 passed, 1 failed, 41 ignored. Same machine, main 64b3f3559: 700 passed, 1 failed, 41 ignored.

This PR's tests:

  • gpu::recomp::tests::gpu_med3_with_a_nan_operand_is_the_min_of_the_others: ok

Failures:

16 test binaries instead of main's 17 because this branch predates tests/sparse_reinit.rs; nothing crashed.

SKIPPED (no wave64 on this GPU): gpu_geometry_wave32_prefix_count_over_a_mask, gpu_wave32_program_in_wave64_hardware.

AI use: Claude Code (Claude Opus 5.5) ran the builds and tests and wrote this report from their output.

@zhouzhidong3-hash

Copy link
Copy Markdown

Independent Release result at 3115aae. On NVIDIA RTX 5070 (driver 591.86), Rust 1.100.0 MSVC and DXC 1.8.2502.11, the unmodified gpu_med3_with_a_nan_operand_is_the_min_of_the_others test passed in an optimized build. Command: cargo test --locked --release -p xcl --lib gpu_med3_with_a_nan_operand_is_the_min_of_the_others -- --nocapture. One passed, zero failed, 673 filtered out, no runtime skip. Scope: synthetic f16/f32 quiet-NaN and control cases in this fixture. No signaling NaNs, retail smoke or full Release suite tested. OpenAI Codex ran the check and drafted this report.

@luckyteagirl

Copy link
Copy Markdown
Contributor

Native RDNA2 signaling-NaN check for #678

I measured v_med3_f32 and v_med3_f16 on a Radeon RX 6800M (gfx1031), Windows 11 build 26200, display driver 30.0.13002.13003, and AMD OpenCL 3302.6 (PAL,LC). The kernel passed raw input bits to both instructions. It changed and read back only the IEEE bit of HW_REG_MODE, then restored the original bit. The default readback was 1.

Operands IEEE bit 0 IEEE bit 1
Quiet NaN in any position, finite operands 1 and 2 in both orders 1 1
Signaling NaN in src0 or src1, finite operands 1 and 2 in both orders 1 src2
Signaling NaN in src2, finite operands 1 and 2 in both orders 1 Quiet NaN with the original payload

For example, (sNaN, 1, 2) gave 1 with IEEE off and 2 with it on. (2, 1, sNaN) gave 1 with it off and 0x7FC00011 (f32) or 0x7E11 (f16) with it on, from input 0x7F800011 or 0x7C11. The numeric control (5, 1, 2) returned 2 in both modes. Four work-items per case agreed.

This confirms the quiet-NaN behavior in the PR and gives separate signaling-NaN cases to use if IEEE-mode handling is extended.

Not tested

The PR's translated HLSL, other GPUs, and combinations with multiple signaling NaNs plus an exceptional third operand.

AI use

OpenAI Codex (GPT-6 family, exact model variant unavailable) wrote and ran the probe and drafted this report.

@Anon64

Anon64 commented Nov 24, 2026

Copy link
Copy Markdown

Regression runs for this PR's head 3115aae and for its base main 91f9a5e, on a retail title (same title, 60 s each), made with scripts/smoke.ps1 (release) and pasted unedited, for Regression run.

main:

xcl-smoke v1
commit: 91f9a5e9f03156ea82dc55a18f7704862da7a5db
gpu: NVIDIA GeForce RTX 3060
title: retail-title
seconds: 60
exit: 0x0
frames shown: 1648 (PresentX 1648)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14684 MB

this PR:

xcl-smoke v1
commit: 3115aae56b659ada6714fac41628b364dbedbd37
gpu: NVIDIA GeForce RTX 3060
title: retail-title
seconds: 60
exit: 0x0
frames shown: 1625 (PresentX 1625)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14449 MB

Tested

  • NVIDIA GeForce RTX 3060 12 GB (driver 581.80, wave32), Intel Core i9-14900KF, Windows 11 25H2 26200.9974, Rust 1.90.0
  • cargo build --release -p xcl at each commit, clean tree

Not tested

  • the unit tests on this machine (four reports above cover them)
  • whether the title reaches v_med3 with a NaN operand; this is a regression check only

Report written with Claude Code (Claude Opus 5.5) from runs on this machine.

@joeypercia
joeypercia marked this pull request as ready for review November 24, 2026 06:33
@SlopTart

Copy link
Copy Markdown

2|
3|Release-build suite datapoint — the axis your row lists as not tested (and your regression runs were pending).
4|
5|Machine: RX 7900 XT (RADV NAVI31), Mesa 26.2.5, kernel 7.2 (Arch), Wine = Proton Experimental (wine-11.0), patched vkd3d-proton v3.1, Rust 1.100.0 cross x86_64-pc-windows-gnu, release profile, XCL_NETWORK=0, native wave64. Same rig as my Linux rows in #42 / #718.
6|
7|Merged state: head 3115aae56 onto main beaa245, clean merge.
8|
9|Full suite, cargo test --workspace --release --no-fail-fast -- --test-threads=4: 704 passed, 10 failed, 41 ignored (17 suites). The 10 = this rig's 7 stable Wine-lane failures (my #42 row) + the known #718 flaky trio (~2 of 5 hit rate at threads=4, PR-independent). Nothing new fails. Your new test passes on RDNA3: gpu_med3_with_a_nan_operand_is_the_min_of_the_others ok.
10|
11|Not tested: retail titles (none here, so no title regression run either), Windows, sNaN input payloads.
12|Counts only, no game data.
13|AI use: Hermes agent (local Qwen-class) ran the suite and drafted this; I checked it before posting.

@Diskuss

Diskuss commented Nov 24, 2026 •

Copy link
Copy Markdown

Tested on AMD Radeon RX 9070 XT (RDNA4) at 3115aae56b659ada6714fac41628b364dbedbd37

AMD Radeon RX 9070 XT (RDNA4), driver 32.0.32015.7029; Ryzen 7 5700X3D; 32 GB RAM; Windows 11 Pro build 26300.9974; Rust 1.100.0; DXC 1.9.2602.17; debug build.

Tested:

  • Previously tested only on NVIDIA and RDNA2, so this run adds RDNA4.
  • cargo build --workspace: OK.
  • cargo test --workspace --no-fail-fast -- --test-threads=4: 693 passed, 0 failed, 41 ignored.
  • cargo test -p xcl --lib gpu_med3_with_a_nan_operand_is_the_min_of_the_others -- --test-threads=1: 1 passed, 0 failed.
  • SKIPPED lines: 0. Device removal (DXGI_ERROR_DEVICE_REMOVED): none.
  • Main at 1ec4c98 gave 715 passed, 0 failed, 41 ignored. The lower passed count is expected: this branch is 34 commits behind main.

Not tested: retail title / scripts/smoke.ps1 (no game files), release build.

Report written by Claude Code (Claude Sonnet 5.5) from a real run on this machine.

Correction (hidden skips): "0 SKIPPED" above means no SKIPPED line appeared in the normal run. A later -- --nocapture run on this machine shows that two tests skip silently, because the D3D12 debug layer is not installed (no Graphics Tools / d3d12SDKLayers.dll). libtest captures their output, so they show as ok: e2e::test_title_draws_with_a_root_signature_under_the_debug_layer and texture_states::uploads_start_from_each_subresources_state. Neither is related to this change, and all other GPU tests ran on the RX 9070 XT.

@Cecerw

Cecerw commented Nov 24, 2026

Copy link
Copy Markdown

Tested on NVIDIA (32-lane waves): passes

Tree Passed Failed Ignored SKIPPED
Head 3115aae 693 0 41 2 (no wave64)
Head merged into main 47efa2e 742 0 41 2 (no wave64)
  • RTX 3060 Ti 8 GB, driver 32.0.16.1088; i5-14600K; Windows 11 26300.9818; Rust 1.100.0, debug; DXC 1.9.2602.17
  • Head 3115aae, no local changes: .\scripts\test.ps1 (cargo test --workspace -- --test-threads=4): 693 passed, 0 failed, 41 ignored
  • Head merged locally into main 47efa2e (no conflicts): 742 passed, 0 failed, 41 ignored
  • gpu_med3_with_a_nan_operand_is_the_min_of_the_others: ok in both
  • SKIPPED: 2 (no wave64), the usual two on this adapter

Not tested: AMD, any title (no smoke run).

AI use: Claude Code (Claude Opus 5.5) ran the tests and wrote this report.

The three-source program check written for the direct backend computed
med3 with Rust's min / max, which ignore a NaN, so with xcl-dev#686's rule (a
NaN operand gives the smaller of the other two, on both paths now) lane
0's med3(|y|, NaN, 4.0) came out 4.0 against an expected 16.0. The
expected value follows the hardware rule.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YPhfiWsdJcDBLYSS8edLyS
@milesah3ad

Copy link
Copy Markdown

The direct DXIL backend counterpart of this fix, from @regiumlepidi's parity sweep on #1269: gpu_med3_with_a_nan_operand_is_the_min_of_the_others and lower_dxil::tests::f32_programs_on_the_gpu pass with XCL_DIRECT_DXIL=1 with the patch below. Without it they fail on the direct path.

med3f in gpu/dxil/prelude.rs was max(min(a, b), min(max(a, b), c)) for every input. The patch adds your NaN rule there: any NaN operand gives min(min(a, b), c). A second commit updates a test that landed on main after this PR: check_f32_three_source in recomp/lower.rs computes the expected med3 with Rust's min / max, which ignore a NaN. With this PR merged onto main, lower_dxil::tests::f32_programs_on_the_gpu failed on both paths (lane 0: 4.0 against an expected 16.0), so it needs that update whether or not you take the direct fix.

How to take it: this PR predates the direct backend on main, so rebase it onto main first (your commit rebases cleanly onto 7994cd1), then git am the patch below. Feel free to fold it into your PR with a Co-Authored-By: milesah3ad <360542007+milesah3ad@users.noreply.github.com> line. I didn't open a separate PR, so this doesn't add another review.

patch (2 commits, for git am)
From 9af4f4c1537ff70e49e34de0ab22e4cde22f1b50 Mon Sep 17 00:00:00 2001
From: milesah3ad <360542007+milesah3ad@users.noreply.github.com>
Date: Tue, 24 Nov 2026 18:52:07 -0600
Subject: [PATCH 1/2] Direct DXIL: v_med3_f32 / _f16 with a NaN operand give
 the min of the others

med3f was max(min(a, b), min(max(a, b), c)) for every input, so a NaN
operand did not give what the hardware does: v_min(v_min(a, b), c), the
smaller of the other two. With a NaN in any operand it now selects
min(min(a, b), c), as #686 does on the HLSL path; other inputs are
unchanged.

gpu_med3_with_a_nan_operand_is_the_min_of_the_others now passes with
XCL_DIRECT_DXIL=1.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YPhfiWsdJcDBLYSS8edLyS
---
 crates/xcl/src/gpu/dxil/prelude.rs | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/crates/xcl/src/gpu/dxil/prelude.rs b/crates/xcl/src/gpu/dxil/prelude.rs
index a171fd0..26ab393 100644
--- a/crates/xcl/src/gpu/dxil/prelude.rs
+++ b/crates/xcl/src/gpu/dxil/prelude.rs
@@ -186,11 +186,20 @@ impl Lw {
         let m = self.fmad(a, b, c);
         self.sel(cnd, c, m)
     }
+    /// With a NaN operand the hardware gives v_min(v_min(a, b), c): the smaller of the other
+    /// two (as #686 does on the HLSL path).
     pub fn med3f(&mut self, a: Value, b: Value, c: Value) -> Value {
         let x = self.fmin(a, b);
         let y = self.fmax(a, b);
         let y = self.fmin(y, c);
-        self.fmax(x, y)
+        let med = self.fmax(x, y);
+        let na = self.isnan(a);
+        let nb = self.isnan(b);
+        let nc = self.isnan(c);
+        let n = self.lor(na, nb);
+        let n = self.lor(n, nc);
+        let lo = self.fmin(x, c);
+        self.sel(n, lo, med)
     }
     /// `div_fixup`
     pub fn div_fixup(&mut self, q: Value, d: Value, n: Value) -> Value {
-- 
2.48.1.windows.1


From c6af2cac3acbfdfdd37aca66dd61559e408a2cbd Mon Sep 17 00:00:00 2001
From: milesah3ad <360542007+milesah3ad@users.noreply.github.com>
Date: Tue, 24 Nov 2026 18:57:53 -0600
Subject: [PATCH 2/2] Tests: check_f32_three_source expects the NaN rule of
 v_med3_f32

The three-source program check written for the direct backend computed
med3 with Rust's min / max, which ignore a NaN, so with #686's rule (a
NaN operand gives the smaller of the other two, on both paths now) lane
0's med3(|y|, NaN, 4.0) came out 4.0 against an expected 16.0. The
expected value follows the hardware rule.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YPhfiWsdJcDBLYSS8edLyS
---
 crates/xcl/src/gpu/recomp/lower.rs | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/crates/xcl/src/gpu/recomp/lower.rs b/crates/xcl/src/gpu/recomp/lower.rs
index 44dfbb0..aaab886 100644
--- a/crates/xcl/src/gpu/recomp/lower.rs
+++ b/crates/xcl/src/gpu/recomp/lower.rs
@@ -2732,7 +2732,8 @@ pub(crate) mod tests {
     }
 
     pub(crate) fn check_f32_three_source(_: &[u32], v: &[Vec<u32>]) {
-        let med3 = |a: f32, b: f32, c: f32| a.min(b).max(a.max(b).min(c));
+        // with a NaN operand v_med3_f32 gives the smaller of the other two (#686)
+        let med3 = |a: f32, b: f32, c: f32| if a.is_nan() || b.is_nan() || c.is_nan() { a.min(b).min(c) } else { a.min(b).max(a.max(b).min(c)) };
         for (l, r) in v.iter().enumerate() {
             let f = |i: usize| f32::from_bits(r[i]);
             let (x, y) = (l as f32, l as f32 - 16.0);
-- 
2.48.1.windows.1

Tested

Not tested: wave64 hardware (the wave64 cases SKIP here), AMD, any title, the full workspace suite (lib only).

AI use: Claude Code (Claude Opus 5.5) wrote the fix and ran the tests on the machine above. I checked the results.

joeypercia and others added 2 commits November 24, 2026 17:09
…others (xcl-dev#678)

With a quiet NaN operand the hardware's v_med3 returns
v_min(v_min(s0, s1), s2), the smaller of the two other operands, as LLVM's
amdgcn_fmed3 folding documents. med3f computed max(min(a, b), min(max(a, b),
c)), which gives max(a, b) for a NaN in c and b / a for a NaN in a / b
(med3(2, 1, NaN) = 2, want 1), on NVIDIA and AMD alike. The clamp form
med3(NaN, lo, hi) was already right.

Fixes xcl-dev#678

Assisted-by: Claude Code (Claude Opus 5.5)
… others

med3f was max(min(a, b), min(max(a, b), c)) for every input, so a NaN
operand did not give what the hardware does: v_min(v_min(a, b), c), the
smaller of the other two. With a NaN in any operand it now selects
min(min(a, b), c), as xcl-dev#686 does on the HLSL path; other inputs are
unchanged.

gpu_med3_with_a_nan_operand_is_the_min_of_the_others now passes with
XCL_DIRECT_DXIL=1.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YPhfiWsdJcDBLYSS8edLyS
@JJAutoCompare

Copy link
Copy Markdown

Tested

Intel Arc A770 (driver 32.0.101.9175) on clean PR head 8c6027287752346710624075516b980feb2e77f0. I verified the live head before and after the run. The host was an AMD Ryzen 7 3800X running Windows 11 Enterprise Evaluation 26200.9974 with Rust 1.100.0 (x86_64-pc-windows-msvc). The test process logged dxcompiler 1.9.2609.5 (01b62ad4) and dxil 1.9.2609.5.

I prebuilt outside the GPU lock in the unoptimized test profile with CARGO_INCREMENTAL=0, CARGO_PROFILE_DEV_DEBUG=0 and CARGO_PROFILE_TEST_DEBUG=0. I ran the resulting libtest executable under the shared Arc lock with XCL_ADAPTER=A770, XCL_DXC_DIR set to the verified x64 DXC directory, and XCL_DIRECT_DXIL unset.

cargo test --locked -p xcl --lib -j 2 --no-run
& $testExe gpu::recomp::tests::gpu_med3_with_a_nan_operand_is_the_min_of_the_others --exact --nocapture --test-threads=1

1 passed, 0 failed, 0 ignored, 0 skipped. The wave32 HLSL/DXC dispatch matched all ten bit-exact results for each of v_med3_f32 and v_med3_f16. The cases cover a quiet NaN in each source position with both orders of the finite operands, the clamp form, a negative finite minimum, two quiet NaNs with one finite operand, and a finite median control. Libtest filtered out 1,059 tests.

Not tested

Signaling NaNs, direct-DXIL parity, native or split wave64, other GPUs, the full workspace suite, and retail smoke runs.

AI use

Codex in T3 Code (gpt-6.2-sol) ran the checked-in test and wrote this report.

@raylitebull

Copy link
Copy Markdown
Member

CI \Build and test\ passed on \8c60272, and the direct DXIL \med3f\ + \lower.rs\ expectation updates look clean.\n\nRemaining before merge:\n1. Fix/re-run the \PR description\ check (none reported yet on branch
ecompiler-med3-nan\ / \8c60272).\n2. Re-verify on an AMD GPU on the updated head \8c60272\ (previous AMD runs covered \3115aae; current \8c60272\ has RTX 5080 + Arc A770).

@DavidM1911

Copy link
Copy Markdown
Contributor

Verification on RTX 3060 Ti (Windows 11), branch merged with current main:

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Recompiler: v_med3_f32 / v_med3_f16 with a NaN operand don't return the min of the other two