Initialize the structure used for setting up the ip src/dst in branches/jumps.

This fixes jmpi, if, and iff.  The while test still fails to compile.
This commit is contained in:
Eric Anholt 2006-08-31 15:28:10 -07:00 committed by Damien Lespiau
parent 8828725dc9
commit 56cdee41af

View File

@ -303,6 +303,9 @@ jumpinstruction: JMPI relativelocation2
* offset is the second source operand. The next instruction * offset is the second source operand. The next instruction
* is the post-incremented IP plus the offset. * is the post-incremented IP plus the offset.
*/ */
dst.reg_file = BRW_ARCHITECTURE_REGISTER_FILE;
dst.reg_nr = BRW_ARF_IP;
dst.subreg_nr = 0;
bzero(&$$, sizeof($$)); bzero(&$$, sizeof($$));
$$.header.opcode = $1; $$.header.opcode = $1;
@ -326,6 +329,9 @@ branchloopinstruction:
* offset is the second source operand. The offset is added * offset is the second source operand. The offset is added
* to the pre-incremented IP. * to the pre-incremented IP.
*/ */
dst.reg_file = BRW_ARCHITECTURE_REGISTER_FILE;
dst.reg_nr = BRW_ARF_IP;
dst.subreg_nr = 0;
bzero(&$$, sizeof($$)); bzero(&$$, sizeof($$));
$$.header.opcode = $2; $$.header.opcode = $2;