From 892d6e7ed0b785c7e4fef754f5915e89d0282a20 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Thu, 31 Aug 2006 15:53:53 -0700 Subject: [PATCH] Fix copy'n'paste-o in lexing of the WHILE instruction. --- assembler/src/lex.l | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assembler/src/lex.l b/assembler/src/lex.l index 97b9c3d..1ed2d9e 100644 --- a/assembler/src/lex.l +++ b/assembler/src/lex.l @@ -64,7 +64,7 @@ int saved_state = INITIAL; "jmpi" { yylval.integer = BRW_OPCODE_JMPI; return JMPI; } "if" { yylval.integer = BRW_OPCODE_IF; return IF; } "iff" { yylval.integer = BRW_OPCODE_IFF; return IFF; } -"while" { yylval.integer = BRW_OPCODE_NOP; return NOP; } +"while" { yylval.integer = BRW_OPCODE_WHILE; return WHILE; } "send" { yylval.integer = BRW_OPCODE_SEND; return SEND; } "else" { yylval.integer = BRW_OPCODE_ELSE; return ELSE; } "break" { yylval.integer = BRW_OPCODE_BREAK; return BREAK; } -- 2.7.4