freedreno/afuc: Handle xmov modifiers
[mesa.git] / src / freedreno / afuc / parser.y
index 657524a1f6ccfa54f301b8f36be3063b259f3060..5a8164e59fe224f51b8a0beb4293694cc2f50aeb 100644 (file)
@@ -161,6 +161,7 @@ label(const char *str)
 %token <tok> T_OP_SETSECURE
 %token <tok> T_LSHIFT
 %token <tok> T_REP
+%token <num> T_XMOV
 
 %type <num> reg
 %type <num> immediate
@@ -182,6 +183,7 @@ instr_or_label:    instr_r
 
 /* instructions that can optionally have (rep) flag: */
 instr_r:           alu_instr
+|                  T_XMOV alu_instr { instr->xmov = $1; }
 |                  config_instr
 
 /* need to special case: