Add DO and ENDIF instructions.

This commit is contained in:
Eric Anholt 2006-08-30 11:40:05 -07:00 committed by Damien Lespiau
parent 74c81af3dd
commit d77712994d

View File

@ -296,6 +296,20 @@ specialinstruction: NOP
bzero(&$$, sizeof($$));
$$.header.opcode = $1;
}
| DO
{
bzero(&$$, sizeof($$));
$$.header.opcode = $1;
}
| ENDIF
{
bzero(&$$, sizeof($$));
$$.header.opcode = $1;
$$.bits1.da1.src1_reg_file = BRW_IMMEDIATE_VALUE;
$$.bits1.da1.src1_reg_type = BRW_REGISTER_TYPE_UD;
$$.bits3.if_else.pop_count = 1;
}
;
/* XXX! */