From 56cdee41afae4e4f4cef67866dc590fcd3bdc138 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Thu, 31 Aug 2006 15:28:10 -0700 Subject: [PATCH] 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. --- assembler/src/gram.y | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/assembler/src/gram.y b/assembler/src/gram.y index f3fbed46..2a4b05fc 100644 --- a/assembler/src/gram.y +++ b/assembler/src/gram.y @@ -303,6 +303,9 @@ jumpinstruction: JMPI relativelocation2 * offset is the second source operand. The next instruction * 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($$)); $$.header.opcode = $1; @@ -326,6 +329,9 @@ branchloopinstruction: * offset is the second source operand. The offset is added * to the pre-incremented IP. */ + dst.reg_file = BRW_ARCHITECTURE_REGISTER_FILE; + dst.reg_nr = BRW_ARF_IP; + dst.subreg_nr = 0; bzero(&$$, sizeof($$)); $$.header.opcode = $2;