From 0ed5d93cc2f7aa74a10674c8ea0c9a0125a8521f Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Mon, 28 Aug 2006 23:05:51 -0700 Subject: Add support for predicate control. This is untested on programs using predicate control, and also causes a shift/reduce conflict. --- assembler/lex.l | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'assembler/lex.l') diff --git a/assembler/lex.l b/assembler/lex.l index 282449b0..5deb3c95 100644 --- a/assembler/lex.l +++ b/assembler/lex.l @@ -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; -- cgit v1.2.3