From fc2995b59aae45b85880f6b281f68f862fae5b0d Mon Sep 17 00:00:00 2001 From: Ben Widawsky Date: Sun, 24 Jun 2012 15:03:28 -0700 Subject: [PATCH] disasm: decode SENDC like SEND Signed-off-by: Ben Widawsky --- assembler/src/disasm.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/assembler/src/disasm.c b/assembler/src/disasm.c index 92dc157..efba364 100644 --- a/assembler/src/disasm.c +++ b/assembler/src/disasm.c @@ -795,7 +795,8 @@ int disasm (FILE *file, struct brw_instruction *inst) err |= control (file, "saturate", saturate, inst->header.saturate, NULL); err |= control (file, "debug control", debug_ctrl, inst->header.debug_control, NULL); - if (inst->header.opcode != BRW_OPCODE_SEND) + if (inst->header.opcode != BRW_OPCODE_SEND && + inst->header.opcode != BRW_OPCODE_SENDC) err |= control (file, "conditional modifier", conditional_modifier, inst->header.sfid_destreg__conditionalmod, NULL); @@ -805,7 +806,8 @@ int disasm (FILE *file, struct brw_instruction *inst) string (file, ")"); } - if (inst->header.opcode == BRW_OPCODE_SEND) + if (inst->header.opcode == BRW_OPCODE_SEND || + inst->header.opcode == BRW_OPCODE_SENDC) format (file, " %d", inst->header.sfid_destreg__conditionalmod); if (opcode[inst->header.opcode].ndst > 0) { @@ -821,7 +823,8 @@ int disasm (FILE *file, struct brw_instruction *inst) err |= src1 (file, inst); } - if (inst->header.opcode == BRW_OPCODE_SEND) { + if (inst->header.opcode == BRW_OPCODE_SEND || + inst->header.opcode == BRW_OPCODE_SENDC) { newline (file); pad (file, 16); space = 0; -- 2.7.4