diff options
Diffstat (limited to 'assembler/lex.l')
-rw-r--r-- | assembler/lex.l | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/assembler/lex.l b/assembler/lex.l index b4051498..282449b0 100644 --- a/assembler/lex.l +++ b/assembler/lex.l @@ -239,6 +239,24 @@ int saved_state = INITIAL; "signed" { return SIGNED; } "scalar" { return SCALAR; } + /* channel selectors */ +"x" { + yylval.integer = BRW_CHANNEL_X; + return X; +} +"y" { + yylval.integer = BRW_CHANNEL_Y; + return Y; +} +"z" { + yylval.integer = BRW_CHANNEL_Z; + return Z; +} +"w" { + yylval.integer = BRW_CHANNEL_W; + return W; +} + [0-9]* { yylval.integer = atoi(yytext); return INTEGER; |