graphics: support SDWA arithmetic right shifts

This commit is contained in:
nmzik committed 2026-08-18 03:53:43 +02:00
1 parent af1ab60786
commit 2bb396f58f
2 files changed
+35 -3

No files matched your search

@@ -16,7 +16,7 @@ enum class Vop2SdwaProfile {
Float16,
IntegerFullDestination,
IntegerPartialDestination,
ReverseLogicalRight,
ReverseRightShift,
ReverseLogicalLeft,
Bitwise,
Count,
@@ -44,9 +44,9 @@ constexpr Vop2OpcodeInfo VOP2_OPCODE_LIST[] = {
{0x13u, Opcode::VMinU32, Vop2SdwaProfile::IntegerPartialDestination},
{0x14u, Opcode::VMaxU32, Vop2SdwaProfile::IntegerFullDestination},
{0x15u, Opcode::VLshrB32},
{0x16u, Opcode::VLshrrevB32, Vop2SdwaProfile::ReverseLogicalRight},
{0x16u, Opcode::VLshrrevB32, Vop2SdwaProfile::ReverseRightShift},
{0x17u, Opcode::VAshrI32},
{0x18u, Opcode::VAshrrevI32},
{0x18u, Opcode::VAshrrevI32, Vop2SdwaProfile::ReverseRightShift},
{0x19u, Opcode::VLshlB32},
{0x1au, Opcode::VLshlrevB32, Vop2SdwaProfile::ReverseLogicalLeft},
{0x1bu, Opcode::VAndB32, Vop2SdwaProfile::Bitwise},