freedreno/afuc: Handle xmov modifiers
[mesa.git] / src / freedreno / afuc / lexer.l
index aacc9473877f7ebb7a1be02ec22d3c6b8b783601..8c3113d1c16f6f4e569f5b55ba89c98c734faaac 100644 (file)
@@ -26,6 +26,9 @@
 #include "parser.h"
 #include "asm.h"
 
+#define YY_NO_INPUT
+#define YY_NO_UNPUT
+
 #define TOKEN(t) (yylval.tok = t)
 extern YYSTYPE yylval;
 
@@ -75,12 +78,15 @@ extern YYSTYPE yylval;
 "brne"                            return TOKEN(T_OP_BRNE);
 "breq"                            return TOKEN(T_OP_BREQ);
 "ret"                             return TOKEN(T_OP_RET);
+"iret"                            return TOKEN(T_OP_IRET);
 "call"                            return TOKEN(T_OP_CALL);
 "jump"                            return TOKEN(T_OP_JUMP);
 "waitin"                          return TOKEN(T_OP_WAITIN);
 "preemptleave"                   return TOKEN(T_OP_PREEMPTLEAVE);
+"setsecure"                      return TOKEN(T_OP_SETSECURE);
 "<<"                              return TOKEN(T_LSHIFT);
 "(rep)"                           return TOKEN(T_REP);
+"(xmov"[1-3]")"                          yylval.num = yytext[5] - '\0'; return T_XMOV;
 
 ","                               return ',';
 "["                               return '[';