diff --git a/core/libs/prx/libSceAgcDriver/tests/execution/SdwaIntegerSelectors.cpp b/core/libs/prx/libSceAgcDriver/tests/execution/SdwaIntegerSelectors.cpp new file mode 100644 index 000000000..2d9b96b79 --- /dev/null +++ b/core/libs/prx/libSceAgcDriver/tests/execution/SdwaIntegerSelectors.cpp @@ -0,0 +1,189 @@ +#include "prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp" +#include "prx/libSceAgcDriver/Graphics/include/Draw.hpp" +#include "Recompiler.hpp" +#include "VulkanTestDevice.hpp" +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace { + +using AgcDriver::Graphics::Require; +using ShaderRecompiler::ShaderStage; + +constexpr std::uint32_t Threads = 32; +constexpr std::uint32_t Inputs = 4; +constexpr std::uint32_t Results = 16; +alignas(256) std::array Input{}; +alignas(256) std::array Output{}; + +alignas(256) constexpr std::array Code{ + 0x34020084, 0x34060086, 0xe0381000, 0x80000401, 0xbf8c3f70, 0x22140af9, 0x05090604, 0x7e160307, + 0x24160af9, 0x0b041504, 0x7d8a0c80, 0x52180af9, 0x05000204, 0xd501000d, 0x01a90280, 0x7d8a0c80, + 0x541c0af9, 0x020c0c04, 0xd501000f, 0x01a90280, 0x7e200307, 0x7d8a0c80, 0x50200af9, 0x0d0b1504, + 0xd5010011, 0x01a90280, 0x12240af9, 0x060d0904, 0x7e260307, 0x28260af9, 0x06061304, 0x2c280af9, + 0x06000d04, 0x302a0af9, 0x0d060204, 0x7e2c0307, 0x342c0af9, 0x01061004, 0x362e0af9, 0x06060104, + 0x3c300af9, 0x06020b04, 0x4e320af9, 0x04080d04, 0xe0781000, 0x80010a03, 0xe0781010, 0x80010e03, + 0xe0781020, 0x80011203, 0xe0781030, 0x80011603, 0xbf810000, +}; + +constexpr std::uint32_t Rows[32][4] = { + {0x00000000u, 0x00000000u, 0x00800000u, 0x000000ffu}, + {0x08f2e4e2u, 0x857c2007u, 0x01010101u, 0xebf2481cu}, + {0x8020aa77u, 0x00000001u, 0x00ff00ffu, 0x9c1571f4u}, + {0x80000000u, 0x80808080u, 0x00008000u, 0x5e028715u}, + {0x80808080u, 0x00ffffffu, 0x00ffffffu, 0x5914081cu}, + {0x007fffffu, 0xfffffffeu, 0x091bcae1u, 0xdb1f699au}, + {0x007fffffu, 0x00008000u, 0x0000007fu, 0x80000000u}, + {0x80659126u, 0x80808080u, 0x24c5a003u, 0xbab7d0d3u}, + {0x00000000u, 0x01010101u, 0x6b8644adu, 0x00000000u}, + {0x00000000u, 0x00000000u, 0x254c883fu, 0xffff0000u}, + {0x00000000u, 0x00000000u, 0x31fb13a6u, 0x7f7f7f7fu}, + {0x00000000u, 0x00000001u, 0x00000002u, 0x80000000u}, + {0x00000000u, 0x00000001u, 0x00800000u, 0x00000080u}, + {0x00000000u, 0x00000001u, 0x00ffffffu, 0x007fffffu}, + {0x00000000u, 0x00000001u, 0xad138795u, 0x43a562a0u}, + {0x00000000u, 0x00000001u, 0xff00ff00u, 0x20046976u}, + {0x00000000u, 0x00000001u, 0xffff0000u, 0x80808080u}, + {0x00000000u, 0x00000010u, 0x00008000u, 0x00000080u}, + {0x00000000u, 0x00000010u, 0x00008000u, 0x00007fffu}, + {0x00000000u, 0x00000010u, 0x0000fff0u, 0x00000001u}, + {0x00000000u, 0x0000007fu, 0x00007fffu, 0x00007fffu}, + {0x00000000u, 0x0000007fu, 0x00008000u, 0x80000000u}, + {0x00000000u, 0x0000007fu, 0x80808080u, 0xbde9de02u}, + {0x00000000u, 0x00000080u, 0x0000fff0u, 0xf91a74d9u}, + {0x00000000u, 0x00000080u, 0xfffffffeu, 0xdd7491acu}, + {0x00000000u, 0x000000ffu, 0x00007fffu, 0xfefefefeu}, + {0x00000000u, 0x000000ffu, 0x0000fff0u, 0xf940015bu}, + {0x00000000u, 0x000000ffu, 0x00ffffffu, 0xfacb11deu}, + {0x00000000u, 0x000000ffu, 0x5901b440u, 0x0000fff0u}, + {0x00000000u, 0x000000ffu, 0xff00ff00u, 0x000000ffu}, + {0x00000000u, 0x00007fffu, 0x0964340cu, 0x931d22eau}, + {0x00000000u, 0x00007fffu, 0x14a4a43du, 0xbad19730u} +}; +constexpr std::uint32_t Expected[32][16] = { + {0x00000000u, 0x000000ffu, 0x00ff0000u, 0x00000001u, 0xffffffffu, 0x00000001u, 0x000100ffu, 0x00000000u, 0x00000000u, 0x000000ffu, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0xff000000u, 0x00000000u}, + {0xffffffe4u, 0xe4e2481cu, 0x00650000u, 0x00000001u, 0x00001b99u, 0x00000001u, 0x8585481cu, 0x00000000u, 0xffff9e00u, 0x07f2481cu, 0x08010000u, 0x005f0000u, 0xebf24880u, 0x00000200u, 0x0a000000u, 0x20250000u}, + {0xffffffaau, 0xaa7771f4u, 0x00760000u, 0x00000000u, 0x00005588u, 0x00000001u, 0xff8171f4u, 0x00000000u, 0x00002000u, 0x771571f4u, 0x00000000u, 0x00000000u, 0x9c157100u, 0x00000100u, 0xde000000u, 0xff8a0000u}, + {0x00000000u, 0x00008715u, 0x007f0000u, 0x00000001u, 0x0000007fu, 0x00000000u, 0x80018715u, 0x00000001u, 0x00000000u, 0x80028715u, 0x80800000u, 0x00800000u, 0x5e028780u, 0x00000000u, 0x7f000000u, 0x80800000u}, + {0xffffff80u, 0x8080081cu, 0x00800000u, 0x00000001u, 0xffff807eu, 0x00000001u, 0x0080081cu, 0x00000001u, 0xffff8000u, 0x8014081cu, 0xffff0000u, 0x00ff0000u, 0x591408ffu, 0x00008000u, 0x80000000u, 0x007f0000u}, + {0xffffffffu, 0xffff699au, 0x00ff0000u, 0x00000001u, 0x000000ffu, 0x00000001u, 0x0000699au, 0x00000001u, 0x00000200u, 0xfe1f699au, 0x00010000u, 0x00ff0000u, 0xdb1f6900u, 0x0000fe00u, 0x7e000000u, 0xffff0000u}, + {0xffffffffu, 0xffff0000u, 0x00fe0000u, 0x00000000u, 0x00000000u, 0x00000001u, 0x00010000u, 0x00000000u, 0x00000000u, 0xff000000u, 0x00000000u, 0x00000000u, 0x80000000u, 0x00000000u, 0x80000000u, 0x80010000u}, + {0xffffff91u, 0x9126d0d3u, 0x00a50000u, 0x00000001u, 0x00006f59u, 0x00000001u, 0x8001d0d3u, 0x00000001u, 0xffff8000u, 0x80b7d0d3u, 0x02020000u, 0x00020000u, 0xbab7d000u, 0x00000000u, 0x1a000000u, 0x805a0000u}, + {0x00000000u, 0x00010000u, 0x00fe0000u, 0x00000001u, 0x00000000u, 0x00000000u, 0x01020000u, 0x00000000u, 0x00000000u, 0x01000000u, 0x01010000u, 0x00010000u, 0x00000001u, 0x00000000u, 0xfe000000u, 0x01010000u}, + {0x00000000u, 0x00000000u, 0x00ff0000u, 0x00000001u, 0xffffffffu, 0x00000001u, 0x00010000u, 0x00000000u, 0x00000000u, 0x00ff0000u, 0x00000000u, 0x00000000u, 0xffff0000u, 0x00000000u, 0xff000000u, 0x00000000u}, + {0x00000000u, 0x00007f7fu, 0x00ff0000u, 0x00000001u, 0xffffffffu, 0x00000001u, 0x00017f7fu, 0x00000000u, 0x00000000u, 0x007f7f7fu, 0x00000000u, 0x00000000u, 0x7f7f7f00u, 0x00000000u, 0xff000000u, 0x00000000u}, + {0x00000000u, 0x00000000u, 0x00ff0000u, 0x00000001u, 0xffffffffu, 0x00000001u, 0x00010000u, 0x00000000u, 0x00000000u, 0x01000000u, 0x00010000u, 0x00000000u, 0x80000000u, 0x00000000u, 0xfe000000u, 0x00010000u}, + {0x00000000u, 0x00000080u, 0x00ff0000u, 0x00000001u, 0xffffffffu, 0x00000001u, 0x00010080u, 0x00000000u, 0x00000000u, 0x01000080u, 0x00010000u, 0x00000000u, 0x00000000u, 0x00000000u, 0xfe000000u, 0x00010000u}, + {0x00000000u, 0x0000ffffu, 0x00ff0000u, 0x00000001u, 0xffffffffu, 0x00000001u, 0x0001ffffu, 0x00000000u, 0x00000000u, 0x017fffffu, 0x00010000u, 0x00000000u, 0x007fff00u, 0x00000000u, 0xfe000000u, 0x00010000u}, + {0x00000000u, 0x000062a0u, 0x00ff0000u, 0x00000001u, 0xffffffffu, 0x00000001u, 0x000162a0u, 0x00000000u, 0x00000000u, 0x01a562a0u, 0x00010000u, 0x00000000u, 0x43a56200u, 0x00000000u, 0xfe000000u, 0x00010000u}, + {0x00000000u, 0x00006976u, 0x00ff0000u, 0x00000001u, 0xffffffffu, 0x00000001u, 0x00016976u, 0x00000000u, 0x00000000u, 0x01046976u, 0x00010000u, 0x00000000u, 0x20046900u, 0x00000000u, 0xfe000000u, 0x00010000u}, + {0x00000000u, 0x00008080u, 0x00ff0000u, 0x00000001u, 0xffffffffu, 0x00000001u, 0x00018080u, 0x00000000u, 0x00000000u, 0x01808080u, 0x00010000u, 0x00000000u, 0x80808000u, 0x00000000u, 0xfe000000u, 0x00010000u}, + {0x00000000u, 0x00000080u, 0x00ff0000u, 0x00000001u, 0xffffffffu, 0x00000001u, 0x00010080u, 0x00000000u, 0x00000000u, 0x10000080u, 0x00100000u, 0x00000000u, 0x00000000u, 0x00000000u, 0xef000000u, 0x00100000u}, + {0x00000000u, 0x00007fffu, 0x00ff0000u, 0x00000001u, 0xffffffffu, 0x00000001u, 0x00017fffu, 0x00000000u, 0x00000000u, 0x10007fffu, 0x00100000u, 0x00000000u, 0x00007f00u, 0x00000000u, 0xef000000u, 0x00100000u}, + {0x00000000u, 0x00000001u, 0x00ff0000u, 0x00000001u, 0xffffffffu, 0x00000001u, 0x00010001u, 0x00000000u, 0x00000000u, 0x10000001u, 0x00100000u, 0x00000000u, 0x00000000u, 0x00000000u, 0xef000000u, 0x00100000u}, + {0x00000000u, 0x00007fffu, 0x00ff0000u, 0x00000001u, 0xffffffffu, 0x00000001u, 0x00017fffu, 0x00000000u, 0x00000000u, 0x7f007fffu, 0x007f0000u, 0x00000000u, 0x00007f00u, 0x00000000u, 0x80000000u, 0x007f0000u}, + {0x00000000u, 0x00000000u, 0x00ff0000u, 0x00000001u, 0xffffffffu, 0x00000001u, 0x00010000u, 0x00000000u, 0x00000000u, 0x7f000000u, 0x007f0000u, 0x00000000u, 0x80000000u, 0x00000000u, 0x80000000u, 0x007f0000u}, + {0x00000000u, 0x0000de02u, 0x00ff0000u, 0x00000001u, 0xffffffffu, 0x00000001u, 0x0001de02u, 0x00000000u, 0x00000000u, 0x7fe9de02u, 0x007f0000u, 0x00000000u, 0xbde9de00u, 0x00000000u, 0x80000000u, 0x007f0000u}, + {0x00000000u, 0x000074d9u, 0x00ff0000u, 0x00000001u, 0xffffffffu, 0x00000001u, 0x000174d9u, 0x00000000u, 0x00000000u, 0x801a74d9u, 0x00800000u, 0x00000000u, 0xf91a7400u, 0x00000000u, 0x7f000000u, 0x00800000u}, + {0x00000000u, 0x000091acu, 0x00ff0000u, 0x00000001u, 0xffffffffu, 0x00000001u, 0x000191acu, 0x00000000u, 0x00000000u, 0x807491acu, 0x00800000u, 0x00000000u, 0xdd749100u, 0x00000000u, 0x7f000000u, 0x00800000u}, + {0x00000000u, 0x0000fefeu, 0x00ff0000u, 0x00000001u, 0xffffffffu, 0x00000001u, 0x0001fefeu, 0x00000000u, 0x00000000u, 0xfffefefeu, 0x00ff0000u, 0x00000000u, 0xfefefe00u, 0x00000000u, 0x00000000u, 0x00ff0000u}, + {0x00000000u, 0x0000015bu, 0x00ff0000u, 0x00000001u, 0xffffffffu, 0x00000001u, 0x0001015bu, 0x00000000u, 0x00000000u, 0xff40015bu, 0x00ff0000u, 0x00000000u, 0xf9400100u, 0x00000000u, 0x00000000u, 0x00ff0000u}, + {0x00000000u, 0x000011deu, 0x00ff0000u, 0x00000001u, 0xffffffffu, 0x00000001u, 0x000111deu, 0x00000000u, 0x00000000u, 0xffcb11deu, 0x00ff0000u, 0x00000000u, 0xfacb1100u, 0x00000000u, 0x00000000u, 0x00ff0000u}, + {0x00000000u, 0x0000fff0u, 0x00ff0000u, 0x00000001u, 0xffffffffu, 0x00000001u, 0x0001fff0u, 0x00000000u, 0x00000000u, 0xff00fff0u, 0x00ff0000u, 0x00000000u, 0x0000ff00u, 0x00000000u, 0x00000000u, 0x00ff0000u}, + {0x00000000u, 0x000000ffu, 0x00ff0000u, 0x00000001u, 0xffffffffu, 0x00000001u, 0x000100ffu, 0x00000000u, 0x00000000u, 0xff0000ffu, 0x00ff0000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x00ff0000u}, + {0x00000000u, 0x000022eau, 0x00ff0000u, 0x00000001u, 0xffffffffu, 0x00000001u, 0x000122eau, 0x00000000u, 0x00000000u, 0xff1d22eau, 0x7fff0000u, 0x00000000u, 0x931d227fu, 0x00000000u, 0x00000000u, 0x7fff0000u}, + {0x00000000u, 0x00009730u, 0x00ff0000u, 0x00000001u, 0xffffffffu, 0x00000001u, 0x00019730u, 0x00000000u, 0x00000000u, 0xffd19730u, 0x7fff0000u, 0x00000000u, 0xbad1977fu, 0x00000000u, 0x00000000u, 0x7fff0000u} +}; +constexpr const char* Names[16] = { + "min_i32", + "max_i32", + "sub_co_ci_u32", + "sub_co_ci_u32 carry", + "subrev_co_ci_u32", + "subrev_co_ci_u32 carry", + "add_co_ci_u32", + "add_co_ci_u32 carry", + "mul_i32_i24", + "max_u32", + "lshrrev_b32", + "ashrrev_i32", + "lshlrev_b32", + "and_b32", + "xnor_b32", + "subrev_nc_u32", +}; + +void Fill(std::uint32_t tid, std::uint32_t* words) { + std::copy(std::begin(Rows[tid]), std::end(Rows[tid]), words); +} + +std::array BufferDescriptor(const void* data, std::uint32_t bytes) { + const auto address = reinterpret_cast(data); + return {static_cast(address), static_cast((address >> 32u) & 0xffffu), bytes, 0x01016facu}; +} + +std::string Hex(std::uint32_t value) { + char text[16]; + std::snprintf(text, sizeof(text), "0x%08x", value); + return text; +} + +void Expect(std::uint32_t tid, std::uint32_t actual, std::uint32_t expected, const char* name) { + Require(actual == expected, std::string("sdwa integer selectors: lane ") + std::to_string(tid) + " " + name + " is " + Hex(actual) + ", expected " + Hex(expected)); +} + +void Run(AgcDriver::VulkanDevice& device) { + for (std::uint32_t tid = 0; tid < Threads; ++tid) Fill(tid, &Input[tid * Inputs]); + Output.fill(0xdeadbeefu); + std::vector userData(8, 0u); + const auto input = BufferDescriptor(Input.data(), static_cast(Input.size() * 4u)); + const auto output = BufferDescriptor(Output.data(), static_cast(Output.size() * 4u)); + std::copy(input.begin(), input.end(), userData.begin()); + std::copy(output.begin(), output.end(), userData.begin() + 4); + const std::span code(Code); + const std::array memory{{{reinterpret_cast(code.data()), std::as_bytes(code)}}}; + const ShaderRecompiler::ShaderComputeStageInfo compute{{Threads, 1, 1}, 0u, {false, false, false}, false, 1}; + ShaderRecompiler::RecompileRequest request{ + {ShaderStage::Compute, reinterpret_cast(code.data()), code, 0, {}}, + {32, 0, userData, compute, std::nullopt, std::nullopt, memory}, + device.Target(), + {0, 0, 0, 128} + }; + request.useCache = false; + const auto result = ShaderRecompiler::Recompile(request); + device.Dispatch(result, 1, 1, 1, {}, reinterpret_cast(code.data())); + device.WaitIdle(); +} + +void Check() { + for (std::uint32_t tid = 0; tid < Threads; ++tid) { + const std::uint32_t* in = &Input[tid * Inputs]; + const std::uint32_t* out = &Output[tid * Results]; + for (std::uint32_t i = 0; i < 16; ++i) { + Expect(tid, out[i], Expected[tid][i], Names[i]); + } + } +} + +} + +int main() { + try { + const auto device = OpenVulkanTestDevice(); + if (!device) return VulkanTestSkipped; + Run(*device); + Check(); + std::puts("sdwa integer selectors tests passed"); + return 0; + } catch (const std::exception& error) { + std::cerr << error.what() << '\n'; + return 1; + } +} diff --git a/core/shader/recompiler/RdnaDecoder/src/RdnaVectorOpDecoder.cpp b/core/shader/recompiler/RdnaDecoder/src/RdnaVectorOpDecoder.cpp index 5a9a8f172..1d2517240 100644 --- a/core/shader/recompiler/RdnaDecoder/src/RdnaVectorOpDecoder.cpp +++ b/core/shader/recompiler/RdnaDecoder/src/RdnaVectorOpDecoder.cpp @@ -26,11 +26,7 @@ enum class Vop2SdwaProfile { Float32, Float16, PackedFloat16, - IntegerFullDestination, - IntegerPartialDestination, - ReverseRightShift, - ReverseLogicalLeft, - Bitwise, + Integer, }; struct Vop2OpcodeInfo { @@ -46,45 +42,45 @@ struct VopcOpcodeInfo { }; constexpr Vop2OpcodeInfo vop2Opcodes[] = { - {0x01u, RdnaOpcode::VCndmaskB32, Vop2SdwaProfile::IntegerPartialDestination}, + {0x01u, RdnaOpcode::VCndmaskB32, Vop2SdwaProfile::Integer}, {0x02u, RdnaOpcode::VDot2cF32F16}, {0x03u, RdnaOpcode::VAddF32, Vop2SdwaProfile::Float32}, {0x04u, RdnaOpcode::VSubF32, Vop2SdwaProfile::Float32}, {0x05u, RdnaOpcode::VSubrevF32}, {0x08u, RdnaOpcode::VMulF32, Vop2SdwaProfile::Float32}, - {0x09u, RdnaOpcode::VMulI32I24, Vop2SdwaProfile::IntegerFullDestination}, - {0x0au, RdnaOpcode::VMulHiI32I24, Vop2SdwaProfile::IntegerFullDestination}, - {0x0bu, RdnaOpcode::VMulU32U24, Vop2SdwaProfile::IntegerFullDestination}, - {0x0cu, RdnaOpcode::VMulHiU32U24, Vop2SdwaProfile::IntegerFullDestination}, + {0x09u, RdnaOpcode::VMulI32I24, Vop2SdwaProfile::Integer}, + {0x0au, RdnaOpcode::VMulHiI32I24, Vop2SdwaProfile::Integer}, + {0x0bu, RdnaOpcode::VMulU32U24, Vop2SdwaProfile::Integer}, + {0x0cu, RdnaOpcode::VMulHiU32U24, Vop2SdwaProfile::Integer}, {0x0du, RdnaOpcode::VDot4cI32I8}, {0x0fu, RdnaOpcode::VMinF32}, {0x10u, RdnaOpcode::VMaxF32}, - {0x11u, RdnaOpcode::VMinI32}, - {0x12u, RdnaOpcode::VMaxI32}, - {0x13u, RdnaOpcode::VMinU32, Vop2SdwaProfile::IntegerPartialDestination}, - {0x14u, RdnaOpcode::VMaxU32, Vop2SdwaProfile::IntegerFullDestination}, + {0x11u, RdnaOpcode::VMinI32, Vop2SdwaProfile::Integer}, + {0x12u, RdnaOpcode::VMaxI32, Vop2SdwaProfile::Integer}, + {0x13u, RdnaOpcode::VMinU32, Vop2SdwaProfile::Integer}, + {0x14u, RdnaOpcode::VMaxU32, Vop2SdwaProfile::Integer}, {0x15u, RdnaOpcode::VLshrB32}, - {0x16u, RdnaOpcode::VLshrrevB32, Vop2SdwaProfile::ReverseRightShift}, + {0x16u, RdnaOpcode::VLshrrevB32, Vop2SdwaProfile::Integer}, {0x17u, RdnaOpcode::VAshrI32}, - {0x18u, RdnaOpcode::VAshrrevI32, Vop2SdwaProfile::ReverseRightShift}, + {0x18u, RdnaOpcode::VAshrrevI32, Vop2SdwaProfile::Integer}, {0x19u, RdnaOpcode::VLshlB32}, - {0x1au, RdnaOpcode::VLshlrevB32, Vop2SdwaProfile::ReverseLogicalLeft}, - {0x1bu, RdnaOpcode::VAndB32, Vop2SdwaProfile::Bitwise}, - {0x1cu, RdnaOpcode::VOrB32, Vop2SdwaProfile::Bitwise}, - {0x1du, RdnaOpcode::VXorB32, Vop2SdwaProfile::Bitwise}, - {0x1eu, RdnaOpcode::VXnorB32, Vop2SdwaProfile::Bitwise}, + {0x1au, RdnaOpcode::VLshlrevB32, Vop2SdwaProfile::Integer}, + {0x1bu, RdnaOpcode::VAndB32, Vop2SdwaProfile::Integer}, + {0x1cu, RdnaOpcode::VOrB32, Vop2SdwaProfile::Integer}, + {0x1du, RdnaOpcode::VXorB32, Vop2SdwaProfile::Integer}, + {0x1eu, RdnaOpcode::VXnorB32, Vop2SdwaProfile::Integer}, {0x1fu, RdnaOpcode::VMacF32}, {0x20u, RdnaOpcode::VMadmkF32}, {0x21u, RdnaOpcode::VMadakF32}, {0x22u, RdnaOpcode::VBcntU32B32}, {0x23u, RdnaOpcode::VMbcntLoU32B32}, {0x24u, RdnaOpcode::VMbcntHiU32B32}, - {0x25u, RdnaOpcode::VAddNcU32, Vop2SdwaProfile::IntegerPartialDestination}, - {0x28u, RdnaOpcode::VAddcU32, Vop2SdwaProfile::IntegerFullDestination}, - {0x29u, RdnaOpcode::VSubCoCiU32}, - {0x2au, RdnaOpcode::VSubrevCoCiU32}, - {0x26u, RdnaOpcode::VSubNcU32, Vop2SdwaProfile::IntegerPartialDestination}, - {0x27u, RdnaOpcode::VSubrevNcU32, Vop2SdwaProfile::IntegerFullDestination}, + {0x25u, RdnaOpcode::VAddNcU32, Vop2SdwaProfile::Integer}, + {0x28u, RdnaOpcode::VAddcU32, Vop2SdwaProfile::Integer}, + {0x29u, RdnaOpcode::VSubCoCiU32, Vop2SdwaProfile::Integer}, + {0x2au, RdnaOpcode::VSubrevCoCiU32, Vop2SdwaProfile::Integer}, + {0x26u, RdnaOpcode::VSubNcU32, Vop2SdwaProfile::Integer}, + {0x27u, RdnaOpcode::VSubrevNcU32, Vop2SdwaProfile::Integer}, {0x2bu, RdnaOpcode::VMacF32}, {0x2cu, RdnaOpcode::VMadmkF32}, {0x2du, RdnaOpcode::VMadakF32}, @@ -1218,11 +1214,7 @@ constexpr Vop2SdwaRule vop2SdwaRules[] = { {sdwaSelFull(), sdwaSelFull(), sdwaSelFull(), false, true}, {sdwaSelWords() | sdwaSelFull(), sdwaSelWords() | sdwaSelFull(), sdwaSelWords() | sdwaSelFull(), true, true}, {sdwaSelAll(), sdwaSelAll(), sdwaSelAll(), true, true}, - {sdwaSelFull(), sdwaSelAll(), sdwaSelAll(), false, false}, {sdwaSelAll(), sdwaSelAll(), sdwaSelAll(), true, false}, - {sdwaSelFull(), sdwaSelAll(), sdwaSelAll(), false, false}, - {sdwaSelFull(), sdwaSelAll(), sdwaSelAll(), false, false}, - {sdwaSelWords() | sdwaSelFull(), sdwaSelAll(), sdwaSelAll(), true, false}, }; const Vop2SdwaRule* findVop2SdwaRule(std::uint32_t encoding) {