Skip to content

tests: cover signed and unsigned 32-bit min3/max3/med3 in direct compute #3184

Done

Description

@xiaoqi72665

Refs #2935 and #1546. Existing Python-side coverage: #1992, #1574, #1577 and #308.

Gap in regression coverage, not lowering. On main 671d2f4, all six canonical VOP3 forms already compile through the native C++ path. The implementation is the generic integer min/max/med3 compare/select branch in src/gfx1013_direct_compute.inl, introduced by 4036577. There is no need for another lowering. I found no focused direct-native regression for all six 32-bit forms (the prior fixtures cover Python/AOT paths).

I am taking a test-only slice:

  • v_min3_u32, v_max3_u32, v_med3_u32, v_min3_i32, v_max3_i32, v_med3_i32.
  • Two full physical wave32 groups, signed extrema / unsigned boundaries, all six operand permutations, repeated and equal values, sparse guest EXEC, destination/S0 alias, full-buffer and guard comparison against a sorting-based CPU oracle.
  • Compile positive and clamp-refusal controls; register the fixture following native_sad. Preserve capability skip 77 in the stock replay. No SDK, runtime, or production compiler changes.

Initial actual Debug/Release verification on 671d2f4: 11 cases per configuration and adapter on RX 7900 XT and app-local WARP, all 2,064 DWORDs per case matched. The local Agility test runner is diagnostic-only, reusing the previous adapter/SDK setup from #3160; it will not be part of the PR. Full groups avoid the known WARP partial-wave ballot anomaly. Fresh main 5fc9f6f includes #3155 and #3081; final focused retest in progress.

Windows 10 22H2 build 19045, RX 7900 XT 32.0.32029.2010, WARP 1.0.22.0, app-local Agility 1.620.2 DLL-only, Windows SDK 10.0.26100.0, MSVC 19.44. Debug layer unavailable. Public synthetic inputs only.

Buhe (@xiaoqi72665). AI-assisted.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions