Add support for predicate control.

This is untested on programs using predicate control, and also causes a
shift/reduce conflict.
This commit is contained in:
Eric Anholt
2006-08-28 23:05:51 -07:00
committed by Damien Lespiau
parent 6a88ada7e8
commit 0ed5d93cc2
2 changed files with 63 additions and 4 deletions
+11
View File
@@ -104,6 +104,7 @@ int saved_state = INITIAL;
"}" { return RCURLY; }
"," { return COMMA; }
"." { return DOT; }
"+" { return PLUS; }
"-" { return MINUS; }
"(abs)" { return ABS; }
@@ -239,6 +240,16 @@ int saved_state = INITIAL;
"signed" { return SIGNED; }
"scalar" { return SCALAR; }
/* predicate control */
"any2h" { return ANY2H; }
"all2h" { return ALL2H; }
"any4h" { return ANY4H; }
"all4h" { return ALL4H; }
"any8h" { return ANY8H; }
"all8h" { return ALL8H; }
"any16h" { return ANY16H; }
"all16h" { return ALL16H; }
/* channel selectors */
"x" {
yylval.integer = BRW_CHANNEL_X;