disasm: decode SENDC like SEND
authorBen Widawsky <ben@bwidawsk.net>
Sun, 24 Jun 2012 22:03:28 +0000 (15:03 -0700)
committerDamien Lespiau <damien.lespiau@intel.com>
Mon, 4 Mar 2013 15:54:29 +0000 (15:54 +0000)
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
assembler/src/disasm.c

index 92dc157..efba364 100644 (file)
@@ -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;