aco/ir: Add swapped opcode for v_cmp_u/v_cmp_o.

Signed-off-by: Georg Lehmann <dadschoorse@gmail.com>
Reviewed-by: Timur Kristóf <timur.kristof@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17763>
This commit is contained in:
Georg Lehmann 2022-07-27 12:43:31 +02:00 committed by Marge Bot
parent 8f7ceff774
commit 22d860fe4a
1 changed files with 2 additions and 0 deletions

View File

@ -651,12 +651,14 @@ get_cmp_info(aco_opcode op, CmpInfo* info)
#define ORD_TEST(sz) \
case aco_opcode::v_cmp_u_f##sz: \
info->f32 = aco_opcode::v_cmp_u_f32; \
info->swapped = aco_opcode::v_cmp_u_f##sz; \
info->inverse = aco_opcode::v_cmp_o_f##sz; \
info->vcmpx = aco_opcode::v_cmpx_u_f##sz; \
info->size = sz; \
return true; \
case aco_opcode::v_cmp_o_f##sz: \
info->f32 = aco_opcode::v_cmp_o_f32; \
info->swapped = aco_opcode::v_cmp_o_f##sz; \
info->inverse = aco_opcode::v_cmp_u_f##sz; \
info->vcmpx = aco_opcode::v_cmpx_o_f##sz; \
info->size = sz; \