nv50/ir: always display the opcode number for unknown instructions
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Sun, 29 Nov 2015 15:04:11 +0000 (16:04 +0100)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Sun, 29 Nov 2015 15:40:12 +0000 (16:40 +0100)
This helps in debugging unknown instructions.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gk110.cpp
src/gallium/drivers/nouveau/codegen/nv50_ir_emit_nvc0.cpp

index b163cd2db4a4895b13436a950777091590101cfc..053df8be7d3d68e93c5f7683ff65094b1d442e7a 100644 (file)
@@ -1930,7 +1930,7 @@ CodeEmitterGK110::emitInstruction(Instruction *insn)
       ERROR("operation should have been lowered\n");
       return false;
    default:
-      ERROR("unknow op\n");
+      ERROR("unknown op: %u\n", insn->op);
       return false;
    }
 
index 9f84de03a4a332af0a73ed6f487036a1288975e0..1d4f0d92f6bf2d93da2dd86346571b62064e77d1 100644 (file)
@@ -2566,7 +2566,7 @@ CodeEmitterNVC0::emitInstruction(Instruction *insn)
       ERROR("operation should have been lowered\n");
       return false;
    default:
-      ERROR("unknow op\n");
+      ERROR("unknown op: %u\n", insn->op);
       return false;
    }