i965: Fix support for disassembling 64-bit integer immediates
authorMatt Turner <mattst88@gmail.com>
Thu, 21 Sep 2017 20:52:28 +0000 (13:52 -0700)
committerMatt Turner <mattst88@gmail.com>
Wed, 4 Oct 2017 21:08:54 +0000 (14:08 -0700)
The type suffixes were wrong, and the 16 was missing the 0 prefix.

Fixes: 92f787ff86ab ("i965: Add support for disassembling 64-bit integer immediates")
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
src/intel/compiler/brw_disasm.c

index e2675b5f4c9bc416662f0141e8e977ac8599fb56..2043d64b27a3388420c1589b1ae25896b1122d21 100644 (file)
@@ -1012,10 +1012,10 @@ imm(FILE *file, const struct gen_device_info *devinfo, enum brw_reg_type type,
 {
    switch (type) {
    case BRW_REGISTER_TYPE_UQ:
-      format(file, "0x%16lxUD", brw_inst_imm_uq(devinfo, inst));
+      format(file, "0x%016lxUQ", brw_inst_imm_uq(devinfo, inst));
       break;
    case BRW_REGISTER_TYPE_Q:
-      format(file, "%ldD", brw_inst_imm_uq(devinfo, inst));
+      format(file, "%ldQ", brw_inst_imm_uq(devinfo, inst));
       break;
    case BRW_REGISTER_TYPE_UD:
       format(file, "0x%08xUD", brw_inst_imm_ud(devinfo, inst));