From 39de27d3b9031af5115504893b5e1bd42756d3db Mon Sep 17 00:00:00 2001 From: Rob Clark Date: Sat, 16 May 2020 17:47:49 -0700 Subject: [PATCH] freedreno/ir3/print: print cat2 condition Signed-off-by: Rob Clark Part-of: --- src/freedreno/ir3/ir3_print.c | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/src/freedreno/ir3/ir3_print.c b/src/freedreno/ir3/ir3_print.c index 9f2c7688b1c..dcdf9791b6a 100644 --- a/src/freedreno/ir3/ir3_print.c +++ b/src/freedreno/ir3/ir3_print.c @@ -135,6 +135,28 @@ static void print_instr_name(struct ir3_instruction *instr, bool flags) } if (instr->flags & IR3_INSTR_S2EN) printf(".s2en"); + + static const char *cond[0x7] = { + "lt", + "le", + "gt", + "ge", + "eq", + "ne", + }; + + switch (instr->opc) { + case OPC_CMPS_F: + case OPC_CMPS_U: + case OPC_CMPS_S: + case OPC_CMPV_F: + case OPC_CMPV_U: + case OPC_CMPV_S: + printf(".%s", cond[instr->cat2.condition & 0x7]); + break; + default: + break; + } } } -- 2.30.2