graphics: support SDWA arithmetic right shifts

This commit is contained in:
nmzik
2026-08-16 10:12:34 +02:00
parent af1ab60786
commit 2bb396f58f
2 changed files with 35 additions and 3 deletions
@@ -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},