Add DO and ENDIF instructions.
authorEric Anholt <eric@anholt.net>
Wed, 30 Aug 2006 18:40:05 +0000 (11:40 -0700)
committerDamien Lespiau <damien.lespiau@intel.com>
Mon, 4 Mar 2013 15:54:23 +0000 (15:54 +0000)
assembler/src/gram.y

index 47a8a47..31b2a3a 100644 (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! */