Fix brw instruction field "flag"
authorHomer Hsing <homer.xing@intel.com>
Wed, 10 Apr 2013 08:39:34 +0000 (16:39 +0800)
committerZhigang Gong <zhigang.gong@linux.intel.com>
Thu, 11 Apr 2013 08:47:38 +0000 (16:47 +0800)
commitd478be89ae7861eee6810c0ee008ad2749459a36
tree96f09b09017b9f7e4cea1e86b2d93f7ea3a77582
parentb990c0fc2d9b973b76e5e9574be127329462ab97
Fix brw instruction field "flag"

bits2.da1.flag_subreg_nr is missing in brw_instruction.
The location of bits2.da1.flag_reg_nr is wrong. See IVB spec.

This patch fixes bugs above, also
make disassembler output correct flag_subreg_nr for conditional modifier
and prediction.

Before we change it:
(+f0.1) cmp.l(8)      null g12<8,8,1>D g2.2<0,1,0>D {align1 WE_normal 1Q};

After we change it:
(+f1.1) cmp.l.f1.1(8) null g12<8,8,1>D g2.2<0,1,0>D {align1 WE_normal 1Q};

Although flag_reg_nr has moved position, other code is still right,
because if we use f0.1 before, now we use f1.0

Signed-off-by: Homer Hsing <homer.xing@intel.com>
Reviewed-by: Lu, Guanqun <guanqun.lu@intel.com>
backend/src/backend/gen/gen_mesa_disasm.c