/* A Bison parser, made by GNU Bison 3.8.2.  */

/* Bison implementation for Yacc-like parsers in C

   Copyright (C) 1984, 1989-1990, 2000-2015, 2018-2021 Free Software Foundation,
   Inc.

   This program is free software: you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation, either version 3 of the License, or
   (at your option) any later version.

   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.

   You should have received a copy of the GNU General Public License
   along with this program.  If not, see <https://www.gnu.org/licenses/>.  */

/* As a special exception, you may create a larger work that contains
   part or all of the Bison parser skeleton and distribute that work
   under terms of your choice, so long as that work isn't itself a
   parser generator using the skeleton or a modified version thereof
   as a parser skeleton.  Alternatively, if you modify or redistribute
   the parser skeleton itself, you may (at your option) remove this
   special exception, which will cause the skeleton and the resulting
   Bison output files to be licensed under the GNU General Public
   License without this special exception.

   This special exception was added by the Free Software Foundation in
   version 2.2 of Bison.  */

/* C LALR(1) parser skeleton written by Richard Stallman, by
   simplifying the original so-called "semantic" parser.  */

/* DO NOT RELY ON FEATURES THAT ARE NOT DOCUMENTED in the manual,
   especially those whose name start with YY_ or yy_.  They are
   private implementation details that can be changed or removed.  */

/* All symbols defined below should begin with yy or YY, to avoid
   infringing on user name space.  This should be done even for local
   variables, as they might otherwise be expanded by user macros.
   There are some unavoidable exceptions within include files to
   define necessary library symbols; they are noted "INFRINGES ON
   USER NAME SPACE" below.  */

/* Identify Bison output, and Bison version.  */
#define YYBISON 30802

/* Bison version string.  */
#define YYBISON_VERSION "3.8.2"

/* Skeleton name.  */
#define YYSKELETON_NAME "yacc.c"

/* Pure parsers.  */
#define YYPURE 0

/* Push parsers.  */
#define YYPUSH 0

/* Pull parsers.  */
#define YYPULL 1


/* Substitute the variable and function names.  */
#define yyparse         ir3_yyparse
#define yylex           ir3_yylex
#define yyerror         ir3_yyerror
#define yydebug         ir3_yydebug
#define yynerrs         ir3_yynerrs
#define yylval          ir3_yylval
#define yychar          ir3_yychar

/* First part of user prologue.  */
#line 32 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"

#define YYDEBUG 0

#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <math.h>

#include "util/half_float.h"
#include "util/u_math.h"

#include "ir3/ir3.h"
#include "ir3/ir3_shader.h"
#include "ir3/instr-a3xx.h"

#include "ir3_parser.h"

#define swap(a, b) \
	do { __typeof(a) __tmp = (a); (a) = (b); (b) = __tmp; } while (0)

/* ir3 treats the abs/neg flags as separate flags for float vs integer,
 * but in the instruction encoding they are the same thing.  Tracking
 * them separately is only for the benefit of ir3 opt passes, and not
 * required here, so just use the float versions:
 */
#define IR3_REG_ABS     IR3_REG_FABS
#define IR3_REG_NEGATE  IR3_REG_FNEG

static struct ir3_kernel_info    *info;
static struct ir3_shader_variant *variant;
/* NOTE the assembler doesn't really use the ir3_block construction
 * like the compiler does.  Everything is treated as one large block.
 * Which might happen to contain flow control.  But since we don't
 * use any of the ir3 backend passes (sched, RA, etc) this doesn't
 * really matter.
 */
static struct ir3_block          *block;   /* current shader block */
static struct ir3_instruction    *instr;   /* current instruction */
static unsigned ip; /* current instruction pointer */
static struct hash_table *labels;

void *ir3_parser_dead_ctx;

static struct {
	unsigned flags;
	unsigned repeat;
	unsigned nop;
} iflags;

static struct {
	unsigned flags;
	unsigned wrmask;
} rflags;

int ir3_yyget_lineno(void);

static void new_label(const char *name)
{
	ralloc_steal(labels, (void *) name);
	_mesa_hash_table_insert(labels, name, (void *)(uintptr_t)ip);
}

static struct ir3_instruction * new_instr(opc_t opc)
{
	instr = ir3_instr_create(block, opc, 4, 6);
	instr->flags = iflags.flags;
	instr->repeat = iflags.repeat;
	instr->nop = iflags.nop;
	instr->line = ir3_yyget_lineno();
	iflags.flags = iflags.repeat = iflags.nop = 0;
	ip++;
	return instr;
}

static void new_shader(void)
{
	variant->ir = ir3_create(variant->shader->compiler, variant);
	block = ir3_block_create(variant->ir);
	list_addtail(&block->node, &variant->ir->block_list);
	ip = 0;
	labels = _mesa_hash_table_create(variant, _mesa_hash_string, _mesa_key_string_equal);
	ir3_parser_dead_ctx = ralloc_context(NULL);
}

static type_t parse_type(const char **type)
{
	if (!strncmp("f16", *type, 3)) {
		*type += 3;
		return TYPE_F16;
	} else if (!strncmp("f32", *type, 3)) {
		*type += 3;
		return TYPE_F32;
	} else if (!strncmp("u16", *type, 3)) {
		*type += 3;
		return TYPE_U16;
	} else if (!strncmp("u32", *type, 3)) {
		*type += 3;
		return TYPE_U32;
	} else if (!strncmp("s16", *type, 3)) {
		*type += 3;
		return TYPE_S16;
	} else if (!strncmp("s32", *type, 3)) {
		*type += 3;
		return TYPE_S32;
	} else if (!strncmp("u8", *type, 2)) {
		*type += 2;
		return TYPE_U8;
	} else if (!strncmp("s8", *type, 2)) {
		*type += 2;
		return TYPE_S8;
	} else {
		assert(0);  /* shouldn't get here */
		return ~0;
	}
}

static struct ir3_instruction * parse_type_type(struct ir3_instruction *instr,
		const char *type_type)
{
	instr->cat1.src_type = parse_type(&type_type);
	instr->cat1.dst_type = parse_type(&type_type);
	return instr;
}

static struct ir3_register * new_src(int num, unsigned flags)
{
	struct ir3_register *reg;
	flags |= rflags.flags;
	if (num & 0x1)
		flags |= IR3_REG_HALF;
	reg = ir3_src_create(instr, num>>1, flags);
	reg->wrmask = MAX2(1, rflags.wrmask);
	rflags.flags = rflags.wrmask = 0;
	return reg;
}

static struct ir3_register * new_dst(int num, unsigned flags)
{
	struct ir3_register *reg;
	flags |= rflags.flags;
	if (num & 0x1)
		flags |= IR3_REG_HALF;
	reg = ir3_dst_create(instr, num>>1, flags);
	reg->wrmask = MAX2(1, rflags.wrmask);
	rflags.flags = rflags.wrmask = 0;
	return reg;
}

static struct ir3_register * dummy_dst(void)
{
	return new_dst(0, 0);
}

static void fixup_cat5_s2en(void)
{
	assert(opc_cat(instr->opc) == 5);
	if (!(instr->flags & IR3_INSTR_S2EN))
		return;
	/* For various reasons (ie. mainly to make the .s2en src easier to
	 * find, given that various different cat5 tex instructions can have
	 * different # of src registers), in ir3 the samp/tex src register
	 * is first, rather than last.  So we have to detect this case and
	 * fix things up.
	 */
	struct ir3_register *s2en_src = instr->srcs[instr->srcs_count - 1];

	if (instr->flags & IR3_INSTR_B)
		assert(!(s2en_src->flags & IR3_REG_HALF));
	else
		assert(s2en_src->flags & IR3_REG_HALF);

	for (int i = 0; i < instr->srcs_count - 1; i++) {
		instr->srcs[i+1] = instr->srcs[i];
	}
	instr->srcs[0] = s2en_src;
}

static void add_const(unsigned reg, unsigned c0, unsigned c1, unsigned c2, unsigned c3)
{
	struct ir3_const_state *const_state = ir3_const_state(variant);
	assert((reg & 0x7) == 0);
	int idx = reg >> (1 + 2); /* low bit is half vs full, next two bits are swiz */
	if (idx * 4 + 4 > const_state->immediates_size) {
		const_state->immediates = rerzalloc(const_state,
				const_state->immediates,
				__typeof__(const_state->immediates[0]),
				const_state->immediates_size,
				idx * 4 + 4);
		for (unsigned i = const_state->immediates_size; i < idx * 4; i++)
			const_state->immediates[i] = 0xd0d0d0d0;
		const_state->immediates_size = const_state->immediates_count = idx * 4 + 4;
	}
	const_state->immediates[idx * 4 + 0] = c0;
	const_state->immediates[idx * 4 + 1] = c1;
	const_state->immediates[idx * 4 + 2] = c2;
	const_state->immediates[idx * 4 + 3] = c3;
}

static void add_sysval(unsigned reg, unsigned compmask, gl_system_value sysval)
{
	unsigned n = variant->inputs_count++;
	variant->inputs[n].regid = reg;
	variant->inputs[n].sysval = true;
	variant->inputs[n].slot = sysval;
	variant->inputs[n].compmask = compmask;
	variant->total_in++;
}

static bool resolve_labels(void)
{
	int instr_ip = 0;
	foreach_instr (instr, &block->instr_list) {
		if (opc_cat(instr->opc) == 0 && instr->cat0.target_label) {
			struct hash_entry *entry = _mesa_hash_table_search(labels, instr->cat0.target_label);
			if (!entry) {
				fprintf(stderr, "unknown label %s\n", instr->cat0.target_label);
				return false;
			}
			int target_ip = (uintptr_t)entry->data;
			instr->cat0.immed = target_ip - instr_ip;
		}
		instr_ip++;
	}
	return true;
}

#ifdef YYDEBUG
int yydebug;
#endif

extern int yylex(void);
void ir3_yyset_lineno(int _line_number);
void ir3_yyset_input(FILE *f);

int yyparse(void);

static void yyerror(const char *error)
{
	fprintf(stderr, "error at line %d: %s\n", ir3_yyget_lineno(), error);
}

struct ir3 * ir3_parse(struct ir3_shader_variant *v,
		struct ir3_kernel_info *k, FILE *f)
{
	ir3_yyset_lineno(1);
	ir3_yyset_input(f);
#ifdef YYDEBUG
	yydebug = 1;
#endif
	info = k;
	variant = v;
	if (yyparse() || !resolve_labels()) {
		ir3_destroy(variant->ir);
		variant->ir = NULL;
	}
	ralloc_free(labels);
	ralloc_free(ir3_parser_dead_ctx);
	return variant->ir;
}

#line 339 "src/freedreno/ir3/ir3_parser.c"

# ifndef YY_CAST
#  ifdef __cplusplus
#   define YY_CAST(Type, Val) static_cast<Type> (Val)
#   define YY_REINTERPRET_CAST(Type, Val) reinterpret_cast<Type> (Val)
#  else
#   define YY_CAST(Type, Val) ((Type) (Val))
#   define YY_REINTERPRET_CAST(Type, Val) ((Type) (Val))
#  endif
# endif
# ifndef YY_NULLPTR
#  if defined __cplusplus
#   if 201103L <= __cplusplus
#    define YY_NULLPTR nullptr
#   else
#    define YY_NULLPTR 0
#   endif
#  else
#   define YY_NULLPTR ((void*)0)
#  endif
# endif

#include "ir3_parser.h"
/* Symbol kind.  */
enum yysymbol_kind_t
{
  YYSYMBOL_YYEMPTY = -2,
  YYSYMBOL_YYEOF = 0,                      /* "end of file"  */
  YYSYMBOL_YYerror = 1,                    /* error  */
  YYSYMBOL_YYUNDEF = 2,                    /* "invalid token"  */
  YYSYMBOL_T_INT = 3,                      /* T_INT  */
  YYSYMBOL_T_HEX = 4,                      /* T_HEX  */
  YYSYMBOL_T_FLOAT = 5,                    /* T_FLOAT  */
  YYSYMBOL_T_IDENTIFIER = 6,               /* T_IDENTIFIER  */
  YYSYMBOL_T_REGISTER = 7,                 /* T_REGISTER  */
  YYSYMBOL_T_CONSTANT = 8,                 /* T_CONSTANT  */
  YYSYMBOL_T_A_LOCALSIZE = 9,              /* T_A_LOCALSIZE  */
  YYSYMBOL_T_A_CONST = 10,                 /* T_A_CONST  */
  YYSYMBOL_T_A_BUF = 11,                   /* T_A_BUF  */
  YYSYMBOL_T_A_INVOCATIONID = 12,          /* T_A_INVOCATIONID  */
  YYSYMBOL_T_A_WGID = 13,                  /* T_A_WGID  */
  YYSYMBOL_T_A_NUMWG = 14,                 /* T_A_NUMWG  */
  YYSYMBOL_T_A_BRANCHSTACK = 15,           /* T_A_BRANCHSTACK  */
  YYSYMBOL_T_A_IN = 16,                    /* T_A_IN  */
  YYSYMBOL_T_A_OUT = 17,                   /* T_A_OUT  */
  YYSYMBOL_T_A_TEX = 18,                   /* T_A_TEX  */
  YYSYMBOL_T_A_PVTMEM = 19,                /* T_A_PVTMEM  */
  YYSYMBOL_T_ABSNEG = 20,                  /* T_ABSNEG  */
  YYSYMBOL_T_NEG = 21,                     /* T_NEG  */
  YYSYMBOL_T_ABS = 22,                     /* T_ABS  */
  YYSYMBOL_T_R = 23,                       /* T_R  */
  YYSYMBOL_T_HR = 24,                      /* T_HR  */
  YYSYMBOL_T_HC = 25,                      /* T_HC  */
  YYSYMBOL_T_EVEN = 26,                    /* T_EVEN  */
  YYSYMBOL_T_POS_INFINITY = 27,            /* T_POS_INFINITY  */
  YYSYMBOL_T_NEG_INFINITY = 28,            /* T_NEG_INFINITY  */
  YYSYMBOL_T_EI = 29,                      /* T_EI  */
  YYSYMBOL_T_WRMASK = 30,                  /* T_WRMASK  */
  YYSYMBOL_T_FLUT_0_0 = 31,                /* T_FLUT_0_0  */
  YYSYMBOL_T_FLUT_0_5 = 32,                /* T_FLUT_0_5  */
  YYSYMBOL_T_FLUT_1_0 = 33,                /* T_FLUT_1_0  */
  YYSYMBOL_T_FLUT_2_0 = 34,                /* T_FLUT_2_0  */
  YYSYMBOL_T_FLUT_E = 35,                  /* T_FLUT_E  */
  YYSYMBOL_T_FLUT_PI = 36,                 /* T_FLUT_PI  */
  YYSYMBOL_T_FLUT_INV_PI = 37,             /* T_FLUT_INV_PI  */
  YYSYMBOL_T_FLUT_INV_LOG2_E = 38,         /* T_FLUT_INV_LOG2_E  */
  YYSYMBOL_T_FLUT_LOG2_E = 39,             /* T_FLUT_LOG2_E  */
  YYSYMBOL_T_FLUT_INV_LOG2_10 = 40,        /* T_FLUT_INV_LOG2_10  */
  YYSYMBOL_T_FLUT_LOG2_10 = 41,            /* T_FLUT_LOG2_10  */
  YYSYMBOL_T_FLUT_4_0 = 42,                /* T_FLUT_4_0  */
  YYSYMBOL_T_SY = 43,                      /* T_SY  */
  YYSYMBOL_T_SS = 44,                      /* T_SS  */
  YYSYMBOL_T_JP = 45,                      /* T_JP  */
  YYSYMBOL_T_SAT = 46,                     /* T_SAT  */
  YYSYMBOL_T_RPT = 47,                     /* T_RPT  */
  YYSYMBOL_T_UL = 48,                      /* T_UL  */
  YYSYMBOL_T_NOP = 49,                     /* T_NOP  */
  YYSYMBOL_T_OP_NOP = 50,                  /* T_OP_NOP  */
  YYSYMBOL_T_OP_BR = 51,                   /* T_OP_BR  */
  YYSYMBOL_T_OP_BRAO = 52,                 /* T_OP_BRAO  */
  YYSYMBOL_T_OP_BRAA = 53,                 /* T_OP_BRAA  */
  YYSYMBOL_T_OP_BRAC = 54,                 /* T_OP_BRAC  */
  YYSYMBOL_T_OP_BANY = 55,                 /* T_OP_BANY  */
  YYSYMBOL_T_OP_BALL = 56,                 /* T_OP_BALL  */
  YYSYMBOL_T_OP_BRAX = 57,                 /* T_OP_BRAX  */
  YYSYMBOL_T_OP_JUMP = 58,                 /* T_OP_JUMP  */
  YYSYMBOL_T_OP_CALL = 59,                 /* T_OP_CALL  */
  YYSYMBOL_T_OP_RET = 60,                  /* T_OP_RET  */
  YYSYMBOL_T_OP_KILL = 61,                 /* T_OP_KILL  */
  YYSYMBOL_T_OP_END = 62,                  /* T_OP_END  */
  YYSYMBOL_T_OP_EMIT = 63,                 /* T_OP_EMIT  */
  YYSYMBOL_T_OP_CUT = 64,                  /* T_OP_CUT  */
  YYSYMBOL_T_OP_CHMASK = 65,               /* T_OP_CHMASK  */
  YYSYMBOL_T_OP_CHSH = 66,                 /* T_OP_CHSH  */
  YYSYMBOL_T_OP_FLOW_REV = 67,             /* T_OP_FLOW_REV  */
  YYSYMBOL_T_OP_BKT = 68,                  /* T_OP_BKT  */
  YYSYMBOL_T_OP_STKS = 69,                 /* T_OP_STKS  */
  YYSYMBOL_T_OP_STKR = 70,                 /* T_OP_STKR  */
  YYSYMBOL_T_OP_XSET = 71,                 /* T_OP_XSET  */
  YYSYMBOL_T_OP_XCLR = 72,                 /* T_OP_XCLR  */
  YYSYMBOL_T_OP_GETLAST = 73,              /* T_OP_GETLAST  */
  YYSYMBOL_T_OP_GETONE = 74,               /* T_OP_GETONE  */
  YYSYMBOL_T_OP_DBG = 75,                  /* T_OP_DBG  */
  YYSYMBOL_T_OP_SHPS = 76,                 /* T_OP_SHPS  */
  YYSYMBOL_T_OP_SHPE = 77,                 /* T_OP_SHPE  */
  YYSYMBOL_T_OP_PREDT = 78,                /* T_OP_PREDT  */
  YYSYMBOL_T_OP_PREDF = 79,                /* T_OP_PREDF  */
  YYSYMBOL_T_OP_PREDE = 80,                /* T_OP_PREDE  */
  YYSYMBOL_T_OP_MOVMSK = 81,               /* T_OP_MOVMSK  */
  YYSYMBOL_T_OP_MOVA1 = 82,                /* T_OP_MOVA1  */
  YYSYMBOL_T_OP_MOVA = 83,                 /* T_OP_MOVA  */
  YYSYMBOL_T_OP_MOV = 84,                  /* T_OP_MOV  */
  YYSYMBOL_T_OP_COV = 85,                  /* T_OP_COV  */
  YYSYMBOL_T_OP_SWZ = 86,                  /* T_OP_SWZ  */
  YYSYMBOL_T_OP_GAT = 87,                  /* T_OP_GAT  */
  YYSYMBOL_T_OP_SCT = 88,                  /* T_OP_SCT  */
  YYSYMBOL_T_OP_ADD_F = 89,                /* T_OP_ADD_F  */
  YYSYMBOL_T_OP_MIN_F = 90,                /* T_OP_MIN_F  */
  YYSYMBOL_T_OP_MAX_F = 91,                /* T_OP_MAX_F  */
  YYSYMBOL_T_OP_MUL_F = 92,                /* T_OP_MUL_F  */
  YYSYMBOL_T_OP_SIGN_F = 93,               /* T_OP_SIGN_F  */
  YYSYMBOL_T_OP_CMPS_F = 94,               /* T_OP_CMPS_F  */
  YYSYMBOL_T_OP_ABSNEG_F = 95,             /* T_OP_ABSNEG_F  */
  YYSYMBOL_T_OP_CMPV_F = 96,               /* T_OP_CMPV_F  */
  YYSYMBOL_T_OP_FLOOR_F = 97,              /* T_OP_FLOOR_F  */
  YYSYMBOL_T_OP_CEIL_F = 98,               /* T_OP_CEIL_F  */
  YYSYMBOL_T_OP_RNDNE_F = 99,              /* T_OP_RNDNE_F  */
  YYSYMBOL_T_OP_RNDAZ_F = 100,             /* T_OP_RNDAZ_F  */
  YYSYMBOL_T_OP_TRUNC_F = 101,             /* T_OP_TRUNC_F  */
  YYSYMBOL_T_OP_ADD_U = 102,               /* T_OP_ADD_U  */
  YYSYMBOL_T_OP_ADD_S = 103,               /* T_OP_ADD_S  */
  YYSYMBOL_T_OP_SUB_U = 104,               /* T_OP_SUB_U  */
  YYSYMBOL_T_OP_SUB_S = 105,               /* T_OP_SUB_S  */
  YYSYMBOL_T_OP_CMPS_U = 106,              /* T_OP_CMPS_U  */
  YYSYMBOL_T_OP_CMPS_S = 107,              /* T_OP_CMPS_S  */
  YYSYMBOL_T_OP_MIN_U = 108,               /* T_OP_MIN_U  */
  YYSYMBOL_T_OP_MIN_S = 109,               /* T_OP_MIN_S  */
  YYSYMBOL_T_OP_MAX_U = 110,               /* T_OP_MAX_U  */
  YYSYMBOL_T_OP_MAX_S = 111,               /* T_OP_MAX_S  */
  YYSYMBOL_T_OP_ABSNEG_S = 112,            /* T_OP_ABSNEG_S  */
  YYSYMBOL_T_OP_AND_B = 113,               /* T_OP_AND_B  */
  YYSYMBOL_T_OP_OR_B = 114,                /* T_OP_OR_B  */
  YYSYMBOL_T_OP_NOT_B = 115,               /* T_OP_NOT_B  */
  YYSYMBOL_T_OP_XOR_B = 116,               /* T_OP_XOR_B  */
  YYSYMBOL_T_OP_CMPV_U = 117,              /* T_OP_CMPV_U  */
  YYSYMBOL_T_OP_CMPV_S = 118,              /* T_OP_CMPV_S  */
  YYSYMBOL_T_OP_MUL_U24 = 119,             /* T_OP_MUL_U24  */
  YYSYMBOL_T_OP_MUL_S24 = 120,             /* T_OP_MUL_S24  */
  YYSYMBOL_T_OP_MULL_U = 121,              /* T_OP_MULL_U  */
  YYSYMBOL_T_OP_BFREV_B = 122,             /* T_OP_BFREV_B  */
  YYSYMBOL_T_OP_CLZ_S = 123,               /* T_OP_CLZ_S  */
  YYSYMBOL_T_OP_CLZ_B = 124,               /* T_OP_CLZ_B  */
  YYSYMBOL_T_OP_SHL_B = 125,               /* T_OP_SHL_B  */
  YYSYMBOL_T_OP_SHR_B = 126,               /* T_OP_SHR_B  */
  YYSYMBOL_T_OP_ASHR_B = 127,              /* T_OP_ASHR_B  */
  YYSYMBOL_T_OP_BARY_F = 128,              /* T_OP_BARY_F  */
  YYSYMBOL_T_OP_FLAT_B = 129,              /* T_OP_FLAT_B  */
  YYSYMBOL_T_OP_MGEN_B = 130,              /* T_OP_MGEN_B  */
  YYSYMBOL_T_OP_GETBIT_B = 131,            /* T_OP_GETBIT_B  */
  YYSYMBOL_T_OP_SETRM = 132,               /* T_OP_SETRM  */
  YYSYMBOL_T_OP_CBITS_B = 133,             /* T_OP_CBITS_B  */
  YYSYMBOL_T_OP_SHB = 134,                 /* T_OP_SHB  */
  YYSYMBOL_T_OP_MSAD = 135,                /* T_OP_MSAD  */
  YYSYMBOL_T_OP_MAD_U16 = 136,             /* T_OP_MAD_U16  */
  YYSYMBOL_T_OP_MADSH_U16 = 137,           /* T_OP_MADSH_U16  */
  YYSYMBOL_T_OP_MAD_S16 = 138,             /* T_OP_MAD_S16  */
  YYSYMBOL_T_OP_MADSH_M16 = 139,           /* T_OP_MADSH_M16  */
  YYSYMBOL_T_OP_MAD_U24 = 140,             /* T_OP_MAD_U24  */
  YYSYMBOL_T_OP_MAD_S24 = 141,             /* T_OP_MAD_S24  */
  YYSYMBOL_T_OP_MAD_F16 = 142,             /* T_OP_MAD_F16  */
  YYSYMBOL_T_OP_MAD_F32 = 143,             /* T_OP_MAD_F32  */
  YYSYMBOL_T_OP_SEL_B16 = 144,             /* T_OP_SEL_B16  */
  YYSYMBOL_T_OP_SEL_B32 = 145,             /* T_OP_SEL_B32  */
  YYSYMBOL_T_OP_SEL_S16 = 146,             /* T_OP_SEL_S16  */
  YYSYMBOL_T_OP_SEL_S32 = 147,             /* T_OP_SEL_S32  */
  YYSYMBOL_T_OP_SEL_F16 = 148,             /* T_OP_SEL_F16  */
  YYSYMBOL_T_OP_SEL_F32 = 149,             /* T_OP_SEL_F32  */
  YYSYMBOL_T_OP_SAD_S16 = 150,             /* T_OP_SAD_S16  */
  YYSYMBOL_T_OP_SAD_S32 = 151,             /* T_OP_SAD_S32  */
  YYSYMBOL_T_OP_SHRM = 152,                /* T_OP_SHRM  */
  YYSYMBOL_T_OP_SHLM = 153,                /* T_OP_SHLM  */
  YYSYMBOL_T_OP_SHRG = 154,                /* T_OP_SHRG  */
  YYSYMBOL_T_OP_SHLG = 155,                /* T_OP_SHLG  */
  YYSYMBOL_T_OP_ANDG = 156,                /* T_OP_ANDG  */
  YYSYMBOL_T_OP_DP2ACC = 157,              /* T_OP_DP2ACC  */
  YYSYMBOL_T_OP_DP4ACC = 158,              /* T_OP_DP4ACC  */
  YYSYMBOL_T_OP_WMM = 159,                 /* T_OP_WMM  */
  YYSYMBOL_T_OP_WMM_ACCU = 160,            /* T_OP_WMM_ACCU  */
  YYSYMBOL_T_OP_RCP = 161,                 /* T_OP_RCP  */
  YYSYMBOL_T_OP_RSQ = 162,                 /* T_OP_RSQ  */
  YYSYMBOL_T_OP_LOG2 = 163,                /* T_OP_LOG2  */
  YYSYMBOL_T_OP_EXP2 = 164,                /* T_OP_EXP2  */
  YYSYMBOL_T_OP_SIN = 165,                 /* T_OP_SIN  */
  YYSYMBOL_T_OP_COS = 166,                 /* T_OP_COS  */
  YYSYMBOL_T_OP_SQRT = 167,                /* T_OP_SQRT  */
  YYSYMBOL_T_OP_HRSQ = 168,                /* T_OP_HRSQ  */
  YYSYMBOL_T_OP_HLOG2 = 169,               /* T_OP_HLOG2  */
  YYSYMBOL_T_OP_HEXP2 = 170,               /* T_OP_HEXP2  */
  YYSYMBOL_T_OP_ISAM = 171,                /* T_OP_ISAM  */
  YYSYMBOL_T_OP_ISAML = 172,               /* T_OP_ISAML  */
  YYSYMBOL_T_OP_ISAMM = 173,               /* T_OP_ISAMM  */
  YYSYMBOL_T_OP_SAM = 174,                 /* T_OP_SAM  */
  YYSYMBOL_T_OP_SAMB = 175,                /* T_OP_SAMB  */
  YYSYMBOL_T_OP_SAML = 176,                /* T_OP_SAML  */
  YYSYMBOL_T_OP_SAMGQ = 177,               /* T_OP_SAMGQ  */
  YYSYMBOL_T_OP_GETLOD = 178,              /* T_OP_GETLOD  */
  YYSYMBOL_T_OP_CONV = 179,                /* T_OP_CONV  */
  YYSYMBOL_T_OP_CONVM = 180,               /* T_OP_CONVM  */
  YYSYMBOL_T_OP_GETSIZE = 181,             /* T_OP_GETSIZE  */
  YYSYMBOL_T_OP_GETBUF = 182,              /* T_OP_GETBUF  */
  YYSYMBOL_T_OP_GETPOS = 183,              /* T_OP_GETPOS  */
  YYSYMBOL_T_OP_GETINFO = 184,             /* T_OP_GETINFO  */
  YYSYMBOL_T_OP_DSX = 185,                 /* T_OP_DSX  */
  YYSYMBOL_T_OP_DSY = 186,                 /* T_OP_DSY  */
  YYSYMBOL_T_OP_GATHER4R = 187,            /* T_OP_GATHER4R  */
  YYSYMBOL_T_OP_GATHER4G = 188,            /* T_OP_GATHER4G  */
  YYSYMBOL_T_OP_GATHER4B = 189,            /* T_OP_GATHER4B  */
  YYSYMBOL_T_OP_GATHER4A = 190,            /* T_OP_GATHER4A  */
  YYSYMBOL_T_OP_SAMGP0 = 191,              /* T_OP_SAMGP0  */
  YYSYMBOL_T_OP_SAMGP1 = 192,              /* T_OP_SAMGP1  */
  YYSYMBOL_T_OP_SAMGP2 = 193,              /* T_OP_SAMGP2  */
  YYSYMBOL_T_OP_SAMGP3 = 194,              /* T_OP_SAMGP3  */
  YYSYMBOL_T_OP_DSXPP_1 = 195,             /* T_OP_DSXPP_1  */
  YYSYMBOL_T_OP_DSYPP_1 = 196,             /* T_OP_DSYPP_1  */
  YYSYMBOL_T_OP_RGETPOS = 197,             /* T_OP_RGETPOS  */
  YYSYMBOL_T_OP_RGETINFO = 198,            /* T_OP_RGETINFO  */
  YYSYMBOL_T_OP_BRCST_A = 199,             /* T_OP_BRCST_A  */
  YYSYMBOL_T_OP_QSHUFFLE_BRCST = 200,      /* T_OP_QSHUFFLE_BRCST  */
  YYSYMBOL_T_OP_QSHUFFLE_H = 201,          /* T_OP_QSHUFFLE_H  */
  YYSYMBOL_T_OP_QSHUFFLE_V = 202,          /* T_OP_QSHUFFLE_V  */
  YYSYMBOL_T_OP_QSHUFFLE_DIAG = 203,       /* T_OP_QSHUFFLE_DIAG  */
  YYSYMBOL_T_OP_LDG = 204,                 /* T_OP_LDG  */
  YYSYMBOL_T_OP_LDG_A = 205,               /* T_OP_LDG_A  */
  YYSYMBOL_T_OP_LDL = 206,                 /* T_OP_LDL  */
  YYSYMBOL_T_OP_LDP = 207,                 /* T_OP_LDP  */
  YYSYMBOL_T_OP_STG = 208,                 /* T_OP_STG  */
  YYSYMBOL_T_OP_STG_A = 209,               /* T_OP_STG_A  */
  YYSYMBOL_T_OP_STL = 210,                 /* T_OP_STL  */
  YYSYMBOL_T_OP_STP = 211,                 /* T_OP_STP  */
  YYSYMBOL_T_OP_LDIB = 212,                /* T_OP_LDIB  */
  YYSYMBOL_T_OP_G2L = 213,                 /* T_OP_G2L  */
  YYSYMBOL_T_OP_L2G = 214,                 /* T_OP_L2G  */
  YYSYMBOL_T_OP_PREFETCH = 215,            /* T_OP_PREFETCH  */
  YYSYMBOL_T_OP_LDLW = 216,                /* T_OP_LDLW  */
  YYSYMBOL_T_OP_STLW = 217,                /* T_OP_STLW  */
  YYSYMBOL_T_OP_RESFMT = 218,              /* T_OP_RESFMT  */
  YYSYMBOL_T_OP_RESINFO = 219,             /* T_OP_RESINFO  */
  YYSYMBOL_T_OP_ATOMIC_ADD = 220,          /* T_OP_ATOMIC_ADD  */
  YYSYMBOL_T_OP_ATOMIC_SUB = 221,          /* T_OP_ATOMIC_SUB  */
  YYSYMBOL_T_OP_ATOMIC_XCHG = 222,         /* T_OP_ATOMIC_XCHG  */
  YYSYMBOL_T_OP_ATOMIC_INC = 223,          /* T_OP_ATOMIC_INC  */
  YYSYMBOL_T_OP_ATOMIC_DEC = 224,          /* T_OP_ATOMIC_DEC  */
  YYSYMBOL_T_OP_ATOMIC_CMPXCHG = 225,      /* T_OP_ATOMIC_CMPXCHG  */
  YYSYMBOL_T_OP_ATOMIC_MIN = 226,          /* T_OP_ATOMIC_MIN  */
  YYSYMBOL_T_OP_ATOMIC_MAX = 227,          /* T_OP_ATOMIC_MAX  */
  YYSYMBOL_T_OP_ATOMIC_AND = 228,          /* T_OP_ATOMIC_AND  */
  YYSYMBOL_T_OP_ATOMIC_OR = 229,           /* T_OP_ATOMIC_OR  */
  YYSYMBOL_T_OP_ATOMIC_XOR = 230,          /* T_OP_ATOMIC_XOR  */
  YYSYMBOL_T_OP_RESINFO_B = 231,           /* T_OP_RESINFO_B  */
  YYSYMBOL_T_OP_LDIB_B = 232,              /* T_OP_LDIB_B  */
  YYSYMBOL_T_OP_STIB_B = 233,              /* T_OP_STIB_B  */
  YYSYMBOL_T_OP_ATOMIC_B_ADD = 234,        /* T_OP_ATOMIC_B_ADD  */
  YYSYMBOL_T_OP_ATOMIC_B_SUB = 235,        /* T_OP_ATOMIC_B_SUB  */
  YYSYMBOL_T_OP_ATOMIC_B_XCHG = 236,       /* T_OP_ATOMIC_B_XCHG  */
  YYSYMBOL_T_OP_ATOMIC_B_INC = 237,        /* T_OP_ATOMIC_B_INC  */
  YYSYMBOL_T_OP_ATOMIC_B_DEC = 238,        /* T_OP_ATOMIC_B_DEC  */
  YYSYMBOL_T_OP_ATOMIC_B_CMPXCHG = 239,    /* T_OP_ATOMIC_B_CMPXCHG  */
  YYSYMBOL_T_OP_ATOMIC_B_MIN = 240,        /* T_OP_ATOMIC_B_MIN  */
  YYSYMBOL_T_OP_ATOMIC_B_MAX = 241,        /* T_OP_ATOMIC_B_MAX  */
  YYSYMBOL_T_OP_ATOMIC_B_AND = 242,        /* T_OP_ATOMIC_B_AND  */
  YYSYMBOL_T_OP_ATOMIC_B_OR = 243,         /* T_OP_ATOMIC_B_OR  */
  YYSYMBOL_T_OP_ATOMIC_B_XOR = 244,        /* T_OP_ATOMIC_B_XOR  */
  YYSYMBOL_T_OP_ATOMIC_S_ADD = 245,        /* T_OP_ATOMIC_S_ADD  */
  YYSYMBOL_T_OP_ATOMIC_S_SUB = 246,        /* T_OP_ATOMIC_S_SUB  */
  YYSYMBOL_T_OP_ATOMIC_S_XCHG = 247,       /* T_OP_ATOMIC_S_XCHG  */
  YYSYMBOL_T_OP_ATOMIC_S_INC = 248,        /* T_OP_ATOMIC_S_INC  */
  YYSYMBOL_T_OP_ATOMIC_S_DEC = 249,        /* T_OP_ATOMIC_S_DEC  */
  YYSYMBOL_T_OP_ATOMIC_S_CMPXCHG = 250,    /* T_OP_ATOMIC_S_CMPXCHG  */
  YYSYMBOL_T_OP_ATOMIC_S_MIN = 251,        /* T_OP_ATOMIC_S_MIN  */
  YYSYMBOL_T_OP_ATOMIC_S_MAX = 252,        /* T_OP_ATOMIC_S_MAX  */
  YYSYMBOL_T_OP_ATOMIC_S_AND = 253,        /* T_OP_ATOMIC_S_AND  */
  YYSYMBOL_T_OP_ATOMIC_S_OR = 254,         /* T_OP_ATOMIC_S_OR  */
  YYSYMBOL_T_OP_ATOMIC_S_XOR = 255,        /* T_OP_ATOMIC_S_XOR  */
  YYSYMBOL_T_OP_ATOMIC_G_ADD = 256,        /* T_OP_ATOMIC_G_ADD  */
  YYSYMBOL_T_OP_ATOMIC_G_SUB = 257,        /* T_OP_ATOMIC_G_SUB  */
  YYSYMBOL_T_OP_ATOMIC_G_XCHG = 258,       /* T_OP_ATOMIC_G_XCHG  */
  YYSYMBOL_T_OP_ATOMIC_G_INC = 259,        /* T_OP_ATOMIC_G_INC  */
  YYSYMBOL_T_OP_ATOMIC_G_DEC = 260,        /* T_OP_ATOMIC_G_DEC  */
  YYSYMBOL_T_OP_ATOMIC_G_CMPXCHG = 261,    /* T_OP_ATOMIC_G_CMPXCHG  */
  YYSYMBOL_T_OP_ATOMIC_G_MIN = 262,        /* T_OP_ATOMIC_G_MIN  */
  YYSYMBOL_T_OP_ATOMIC_G_MAX = 263,        /* T_OP_ATOMIC_G_MAX  */
  YYSYMBOL_T_OP_ATOMIC_G_AND = 264,        /* T_OP_ATOMIC_G_AND  */
  YYSYMBOL_T_OP_ATOMIC_G_OR = 265,         /* T_OP_ATOMIC_G_OR  */
  YYSYMBOL_T_OP_ATOMIC_G_XOR = 266,        /* T_OP_ATOMIC_G_XOR  */
  YYSYMBOL_T_OP_LDGB = 267,                /* T_OP_LDGB  */
  YYSYMBOL_T_OP_STGB = 268,                /* T_OP_STGB  */
  YYSYMBOL_T_OP_STIB = 269,                /* T_OP_STIB  */
  YYSYMBOL_T_OP_LDC = 270,                 /* T_OP_LDC  */
  YYSYMBOL_T_OP_LDLV = 271,                /* T_OP_LDLV  */
  YYSYMBOL_T_OP_GETSPID = 272,             /* T_OP_GETSPID  */
  YYSYMBOL_T_OP_GETWID = 273,              /* T_OP_GETWID  */
  YYSYMBOL_T_OP_GETFIBERID = 274,          /* T_OP_GETFIBERID  */
  YYSYMBOL_T_OP_STC = 275,                 /* T_OP_STC  */
  YYSYMBOL_T_OP_BAR = 276,                 /* T_OP_BAR  */
  YYSYMBOL_T_OP_FENCE = 277,               /* T_OP_FENCE  */
  YYSYMBOL_T_TYPE_F16 = 278,               /* T_TYPE_F16  */
  YYSYMBOL_T_TYPE_F32 = 279,               /* T_TYPE_F32  */
  YYSYMBOL_T_TYPE_U16 = 280,               /* T_TYPE_U16  */
  YYSYMBOL_T_TYPE_U32 = 281,               /* T_TYPE_U32  */
  YYSYMBOL_T_TYPE_S16 = 282,               /* T_TYPE_S16  */
  YYSYMBOL_T_TYPE_S32 = 283,               /* T_TYPE_S32  */
  YYSYMBOL_T_TYPE_U8 = 284,                /* T_TYPE_U8  */
  YYSYMBOL_T_TYPE_S8 = 285,                /* T_TYPE_S8  */
  YYSYMBOL_T_UNTYPED = 286,                /* T_UNTYPED  */
  YYSYMBOL_T_TYPED = 287,                  /* T_TYPED  */
  YYSYMBOL_T_MIXED = 288,                  /* T_MIXED  */
  YYSYMBOL_T_UNSIGNED = 289,               /* T_UNSIGNED  */
  YYSYMBOL_T_LOW = 290,                    /* T_LOW  */
  YYSYMBOL_T_HIGH = 291,                   /* T_HIGH  */
  YYSYMBOL_T_1D = 292,                     /* T_1D  */
  YYSYMBOL_T_2D = 293,                     /* T_2D  */
  YYSYMBOL_T_3D = 294,                     /* T_3D  */
  YYSYMBOL_T_4D = 295,                     /* T_4D  */
  YYSYMBOL_T_LT = 296,                     /* T_LT  */
  YYSYMBOL_T_LE = 297,                     /* T_LE  */
  YYSYMBOL_T_GT = 298,                     /* T_GT  */
  YYSYMBOL_T_GE = 299,                     /* T_GE  */
  YYSYMBOL_T_EQ = 300,                     /* T_EQ  */
  YYSYMBOL_T_NE = 301,                     /* T_NE  */
  YYSYMBOL_T_S2EN = 302,                   /* T_S2EN  */
  YYSYMBOL_T_SAMP = 303,                   /* T_SAMP  */
  YYSYMBOL_T_TEX = 304,                    /* T_TEX  */
  YYSYMBOL_T_BASE = 305,                   /* T_BASE  */
  YYSYMBOL_T_OFFSET = 306,                 /* T_OFFSET  */
  YYSYMBOL_T_UNIFORM = 307,                /* T_UNIFORM  */
  YYSYMBOL_T_NONUNIFORM = 308,             /* T_NONUNIFORM  */
  YYSYMBOL_T_IMM = 309,                    /* T_IMM  */
  YYSYMBOL_T_NAN = 310,                    /* T_NAN  */
  YYSYMBOL_T_INF = 311,                    /* T_INF  */
  YYSYMBOL_T_A0 = 312,                     /* T_A0  */
  YYSYMBOL_T_A1 = 313,                     /* T_A1  */
  YYSYMBOL_T_P0 = 314,                     /* T_P0  */
  YYSYMBOL_T_W = 315,                      /* T_W  */
  YYSYMBOL_T_CAT1_TYPE_TYPE = 316,         /* T_CAT1_TYPE_TYPE  */
  YYSYMBOL_317_ = 317,                     /* '-'  */
  YYSYMBOL_318_ = 318,                     /* ','  */
  YYSYMBOL_319_ = 319,                     /* '('  */
  YYSYMBOL_320_ = 320,                     /* ')'  */
  YYSYMBOL_321_ = 321,                     /* '='  */
  YYSYMBOL_322_ = 322,                     /* ':'  */
  YYSYMBOL_323_ = 323,                     /* '!'  */
  YYSYMBOL_324_ = 324,                     /* '#'  */
  YYSYMBOL_325_ = 325,                     /* '.'  */
  YYSYMBOL_326_a_ = 326,                   /* 'a'  */
  YYSYMBOL_327_o_ = 327,                   /* 'o'  */
  YYSYMBOL_328_p_ = 328,                   /* 'p'  */
  YYSYMBOL_329_s_ = 329,                   /* 's'  */
  YYSYMBOL_330_ = 330,                     /* '+'  */
  YYSYMBOL_331_ = 331,                     /* '<'  */
  YYSYMBOL_332_g_ = 332,                   /* 'g'  */
  YYSYMBOL_333_ = 333,                     /* '['  */
  YYSYMBOL_334_ = 334,                     /* ']'  */
  YYSYMBOL_335_l_ = 335,                   /* 'l'  */
  YYSYMBOL_336_k_ = 336,                   /* 'k'  */
  YYSYMBOL_337_c_ = 337,                   /* 'c'  */
  YYSYMBOL_338_w_ = 338,                   /* 'w'  */
  YYSYMBOL_339_r_ = 339,                   /* 'r'  */
  YYSYMBOL_340_ = 340,                     /* '>'  */
  YYSYMBOL_341_h_ = 341,                   /* 'h'  */
  YYSYMBOL_YYACCEPT = 342,                 /* $accept  */
  YYSYMBOL_shader = 343,                   /* shader  */
  YYSYMBOL_344_1 = 344,                    /* $@1  */
  YYSYMBOL_headers = 345,                  /* headers  */
  YYSYMBOL_header = 346,                   /* header  */
  YYSYMBOL_const_val = 347,                /* const_val  */
  YYSYMBOL_localsize_header = 348,         /* localsize_header  */
  YYSYMBOL_const_header = 349,             /* const_header  */
  YYSYMBOL_buf_header_addr_reg = 350,      /* buf_header_addr_reg  */
  YYSYMBOL_buf_header = 351,               /* buf_header  */
  YYSYMBOL_352_2 = 352,                    /* $@2  */
  YYSYMBOL_invocationid_header = 353,      /* invocationid_header  */
  YYSYMBOL_wgid_header = 354,              /* wgid_header  */
  YYSYMBOL_numwg_header = 355,             /* numwg_header  */
  YYSYMBOL_branchstack_header = 356,       /* branchstack_header  */
  YYSYMBOL_pvtmem_header = 357,            /* pvtmem_header  */
  YYSYMBOL_in_header = 358,                /* in_header  */
  YYSYMBOL_out_header = 359,               /* out_header  */
  YYSYMBOL_tex_header = 360,               /* tex_header  */
  YYSYMBOL_iflag = 361,                    /* iflag  */
  YYSYMBOL_iflags = 362,                   /* iflags  */
  YYSYMBOL_instrs = 363,                   /* instrs  */
  YYSYMBOL_instr = 364,                    /* instr  */
  YYSYMBOL_label = 365,                    /* label  */
  YYSYMBOL_cat0_src1 = 366,                /* cat0_src1  */
  YYSYMBOL_cat0_src2 = 367,                /* cat0_src2  */
  YYSYMBOL_cat0_immed = 368,               /* cat0_immed  */
  YYSYMBOL_cat0_instr = 369,               /* cat0_instr  */
  YYSYMBOL_370_3 = 370,                    /* $@3  */
  YYSYMBOL_371_4 = 371,                    /* $@4  */
  YYSYMBOL_372_5 = 372,                    /* $@5  */
  YYSYMBOL_373_6 = 373,                    /* $@6  */
  YYSYMBOL_374_7 = 374,                    /* $@7  */
  YYSYMBOL_375_8 = 375,                    /* $@8  */
  YYSYMBOL_376_9 = 376,                    /* $@9  */
  YYSYMBOL_377_10 = 377,                   /* $@10  */
  YYSYMBOL_378_11 = 378,                   /* $@11  */
  YYSYMBOL_379_12 = 379,                   /* $@12  */
  YYSYMBOL_380_13 = 380,                   /* $@13  */
  YYSYMBOL_381_14 = 381,                   /* $@14  */
  YYSYMBOL_382_15 = 382,                   /* $@15  */
  YYSYMBOL_383_16 = 383,                   /* $@16  */
  YYSYMBOL_384_17 = 384,                   /* $@17  */
  YYSYMBOL_385_18 = 385,                   /* $@18  */
  YYSYMBOL_cat1_opc = 386,                 /* cat1_opc  */
  YYSYMBOL_cat1_src = 387,                 /* cat1_src  */
  YYSYMBOL_cat1_movmsk = 388,              /* cat1_movmsk  */
  YYSYMBOL_389_19 = 389,                   /* $@19  */
  YYSYMBOL_cat1_mova1 = 390,               /* cat1_mova1  */
  YYSYMBOL_391_20 = 391,                   /* $@20  */
  YYSYMBOL_cat1_mova = 392,                /* cat1_mova  */
  YYSYMBOL_393_21 = 393,                   /* $@21  */
  YYSYMBOL_cat1_swz = 394,                 /* cat1_swz  */
  YYSYMBOL_395_22 = 395,                   /* $@22  */
  YYSYMBOL_cat1_gat = 396,                 /* cat1_gat  */
  YYSYMBOL_397_23 = 397,                   /* $@23  */
  YYSYMBOL_cat1_sct = 398,                 /* cat1_sct  */
  YYSYMBOL_399_24 = 399,                   /* $@24  */
  YYSYMBOL_cat1_instr = 400,               /* cat1_instr  */
  YYSYMBOL_cat2_opc_1src = 401,            /* cat2_opc_1src  */
  YYSYMBOL_cat2_opc_2src_cnd = 402,        /* cat2_opc_2src_cnd  */
  YYSYMBOL_cat2_opc_2src = 403,            /* cat2_opc_2src  */
  YYSYMBOL_cond = 404,                     /* cond  */
  YYSYMBOL_cat2_instr = 405,               /* cat2_instr  */
  YYSYMBOL_cat3_dp_signedness = 406,       /* cat3_dp_signedness  */
  YYSYMBOL_cat3_dp_pack = 407,             /* cat3_dp_pack  */
  YYSYMBOL_cat3_opc = 408,                 /* cat3_opc  */
  YYSYMBOL_cat3_imm_reg_opc = 409,         /* cat3_imm_reg_opc  */
  YYSYMBOL_cat3_wmm = 410,                 /* cat3_wmm  */
  YYSYMBOL_cat3_dp = 411,                  /* cat3_dp  */
  YYSYMBOL_cat3_instr = 412,               /* cat3_instr  */
  YYSYMBOL_cat4_opc = 413,                 /* cat4_opc  */
  YYSYMBOL_cat4_instr = 414,               /* cat4_instr  */
  YYSYMBOL_cat5_opc_dsxypp = 415,          /* cat5_opc_dsxypp  */
  YYSYMBOL_cat5_opc = 416,                 /* cat5_opc  */
  YYSYMBOL_cat5_flag = 417,                /* cat5_flag  */
  YYSYMBOL_cat5_flags = 418,               /* cat5_flags  */
  YYSYMBOL_cat5_samp = 419,                /* cat5_samp  */
  YYSYMBOL_cat5_tex = 420,                 /* cat5_tex  */
  YYSYMBOL_cat5_type = 421,                /* cat5_type  */
  YYSYMBOL_cat5_a1 = 422,                  /* cat5_a1  */
  YYSYMBOL_cat5_instr = 423,               /* cat5_instr  */
  YYSYMBOL_cat6_typed = 424,               /* cat6_typed  */
  YYSYMBOL_cat6_dim = 425,                 /* cat6_dim  */
  YYSYMBOL_cat6_type = 426,                /* cat6_type  */
  YYSYMBOL_cat6_imm_offset = 427,          /* cat6_imm_offset  */
  YYSYMBOL_cat6_offset = 428,              /* cat6_offset  */
  YYSYMBOL_cat6_dst_offset = 429,          /* cat6_dst_offset  */
  YYSYMBOL_cat6_immed = 430,               /* cat6_immed  */
  YYSYMBOL_cat6_stg_ldg_a6xx_offset = 431, /* cat6_stg_ldg_a6xx_offset  */
  YYSYMBOL_cat6_load = 432,                /* cat6_load  */
  YYSYMBOL_433_25 = 433,                   /* $@25  */
  YYSYMBOL_434_26 = 434,                   /* $@26  */
  YYSYMBOL_435_27 = 435,                   /* $@27  */
  YYSYMBOL_436_28 = 436,                   /* $@28  */
  YYSYMBOL_437_29 = 437,                   /* $@29  */
  YYSYMBOL_438_30 = 438,                   /* $@30  */
  YYSYMBOL_439_31 = 439,                   /* $@31  */
  YYSYMBOL_cat6_store = 440,               /* cat6_store  */
  YYSYMBOL_441_32 = 441,                   /* $@32  */
  YYSYMBOL_442_33 = 442,                   /* $@33  */
  YYSYMBOL_443_34 = 443,                   /* $@34  */
  YYSYMBOL_444_35 = 444,                   /* $@35  */
  YYSYMBOL_445_36 = 445,                   /* $@36  */
  YYSYMBOL_cat6_loadib = 446,              /* cat6_loadib  */
  YYSYMBOL_447_37 = 447,                   /* $@37  */
  YYSYMBOL_cat6_storeib = 448,             /* cat6_storeib  */
  YYSYMBOL_449_38 = 449,                   /* $@38  */
  YYSYMBOL_cat6_prefetch = 450,            /* cat6_prefetch  */
  YYSYMBOL_451_39 = 451,                   /* $@39  */
  YYSYMBOL_cat6_atomic_opc = 452,          /* cat6_atomic_opc  */
  YYSYMBOL_cat6_a3xx_atomic_opc = 453,     /* cat6_a3xx_atomic_opc  */
  YYSYMBOL_cat6_a6xx_atomic_opc = 454,     /* cat6_a6xx_atomic_opc  */
  YYSYMBOL_cat6_a3xx_atomic_s = 455,       /* cat6_a3xx_atomic_s  */
  YYSYMBOL_cat6_a6xx_atomic_g = 456,       /* cat6_a6xx_atomic_g  */
  YYSYMBOL_cat6_atomic_l = 457,            /* cat6_atomic_l  */
  YYSYMBOL_cat6_atomic = 458,              /* cat6_atomic  */
  YYSYMBOL_cat6_ibo_opc_1src = 459,        /* cat6_ibo_opc_1src  */
  YYSYMBOL_cat6_ibo_opc_ldgb = 460,        /* cat6_ibo_opc_ldgb  */
  YYSYMBOL_cat6_ibo_opc_stgb = 461,        /* cat6_ibo_opc_stgb  */
  YYSYMBOL_cat6_ibo = 462,                 /* cat6_ibo  */
  YYSYMBOL_463_40 = 463,                   /* $@40  */
  YYSYMBOL_cat6_id_opc = 464,              /* cat6_id_opc  */
  YYSYMBOL_cat6_id = 465,                  /* cat6_id  */
  YYSYMBOL_cat6_bindless_base = 466,       /* cat6_bindless_base  */
  YYSYMBOL_cat6_bindless_mode = 467,       /* cat6_bindless_mode  */
  YYSYMBOL_cat6_reg_or_immed = 468,        /* cat6_reg_or_immed  */
  YYSYMBOL_cat6_bindless_ibo_opc_1src = 469, /* cat6_bindless_ibo_opc_1src  */
  YYSYMBOL_cat6_bindless_ibo_opc_2src = 470, /* cat6_bindless_ibo_opc_2src  */
  YYSYMBOL_cat6_bindless_ibo_opc_2src_dst = 471, /* cat6_bindless_ibo_opc_2src_dst  */
  YYSYMBOL_cat6_bindless_ibo = 472,        /* cat6_bindless_ibo  */
  YYSYMBOL_cat6_bindless_ldc_opc = 473,    /* cat6_bindless_ldc_opc  */
  YYSYMBOL_cat6_bindless_ldc_middle = 474, /* cat6_bindless_ldc_middle  */
  YYSYMBOL_cat6_bindless_ldc = 475,        /* cat6_bindless_ldc  */
  YYSYMBOL_stc_dst = 476,                  /* stc_dst  */
  YYSYMBOL_cat6_stc = 477,                 /* cat6_stc  */
  YYSYMBOL_478_41 = 478,                   /* $@41  */
  YYSYMBOL_cat6_todo = 479,                /* cat6_todo  */
  YYSYMBOL_cat6_instr = 480,               /* cat6_instr  */
  YYSYMBOL_cat7_scope = 481,               /* cat7_scope  */
  YYSYMBOL_cat7_scopes = 482,              /* cat7_scopes  */
  YYSYMBOL_cat7_barrier = 483,             /* cat7_barrier  */
  YYSYMBOL_484_42 = 484,                   /* $@42  */
  YYSYMBOL_485_43 = 485,                   /* $@43  */
  YYSYMBOL_cat7_instr = 486,               /* cat7_instr  */
  YYSYMBOL_src = 487,                      /* src  */
  YYSYMBOL_dst = 488,                      /* dst  */
  YYSYMBOL_const = 489,                    /* const  */
  YYSYMBOL_dst_reg_flag = 490,             /* dst_reg_flag  */
  YYSYMBOL_dst_reg_flags = 491,            /* dst_reg_flags  */
  YYSYMBOL_dst_reg = 492,                  /* dst_reg  */
  YYSYMBOL_src_reg_flag = 493,             /* src_reg_flag  */
  YYSYMBOL_src_reg_flags = 494,            /* src_reg_flags  */
  YYSYMBOL_src_reg = 495,                  /* src_reg  */
  YYSYMBOL_src_reg_gpr = 496,              /* src_reg_gpr  */
  YYSYMBOL_src_const = 497,                /* src_const  */
  YYSYMBOL_src_reg_or_const = 498,         /* src_reg_or_const  */
  YYSYMBOL_src_reg_or_const_or_rel = 499,  /* src_reg_or_const_or_rel  */
  YYSYMBOL_src_reg_or_const_or_rel_or_imm = 500, /* src_reg_or_const_or_rel_or_imm  */
  YYSYMBOL_src_reg_or_rel_or_imm = 501,    /* src_reg_or_rel_or_imm  */
  YYSYMBOL_offset = 502,                   /* offset  */
  YYSYMBOL_relative_gpr_src = 503,         /* relative_gpr_src  */
  YYSYMBOL_relative_gpr_dst = 504,         /* relative_gpr_dst  */
  YYSYMBOL_relative_const = 505,           /* relative_const  */
  YYSYMBOL_relative = 506,                 /* relative  */
  YYSYMBOL_immediate_cat1 = 507,           /* immediate_cat1  */
  YYSYMBOL_immediate = 508,                /* immediate  */
  YYSYMBOL_flut_immed = 509,               /* flut_immed  */
  YYSYMBOL_integer = 510,                  /* integer  */
  YYSYMBOL_float = 511,                    /* float  */
  YYSYMBOL_type = 512                      /* type  */
};
typedef enum yysymbol_kind_t yysymbol_kind_t;


/* Second part of user prologue.  */
#line 307 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"

#if YYDEBUG
static void print_token(FILE *file, int type, YYSTYPE value)
{
	fprintf(file, "\ntype: %d\n", type);
}

#define YYPRINT(file, type, value) print_token(file, type, value)
#endif

#line 896 "src/freedreno/ir3/ir3_parser.c"


#ifdef short
# undef short
#endif

/* On compilers that do not define __PTRDIFF_MAX__ etc., make sure
   <limits.h> and (if available) <stdint.h> are included
   so that the code can choose integer types of a good width.  */

#ifndef __PTRDIFF_MAX__
# include <limits.h> /* INFRINGES ON USER NAME SPACE */
# if defined __STDC_VERSION__ && 199901 <= __STDC_VERSION__
#  include <stdint.h> /* INFRINGES ON USER NAME SPACE */
#  define YY_STDINT_H
# endif
#endif

/* Narrow types that promote to a signed type and that can represent a
   signed or unsigned integer of at least N bits.  In tables they can
   save space and decrease cache pressure.  Promoting to a signed type
   helps avoid bugs in integer arithmetic.  */

#ifdef __INT_LEAST8_MAX__
typedef __INT_LEAST8_TYPE__ yytype_int8;
#elif defined YY_STDINT_H
typedef int_least8_t yytype_int8;
#else
typedef signed char yytype_int8;
#endif

#ifdef __INT_LEAST16_MAX__
typedef __INT_LEAST16_TYPE__ yytype_int16;
#elif defined YY_STDINT_H
typedef int_least16_t yytype_int16;
#else
typedef short yytype_int16;
#endif

/* Work around bug in HP-UX 11.23, which defines these macros
   incorrectly for preprocessor constants.  This workaround can likely
   be removed in 2023, as HPE has promised support for HP-UX 11.23
   (aka HP-UX 11i v2) only through the end of 2022; see Table 2 of
   <https://h20195.www2.hpe.com/V2/getpdf.aspx/4AA4-7673ENW.pdf>.  */
#ifdef __hpux
# undef UINT_LEAST8_MAX
# undef UINT_LEAST16_MAX
# define UINT_LEAST8_MAX 255
# define UINT_LEAST16_MAX 65535
#endif

#if defined __UINT_LEAST8_MAX__ && __UINT_LEAST8_MAX__ <= __INT_MAX__
typedef __UINT_LEAST8_TYPE__ yytype_uint8;
#elif (!defined __UINT_LEAST8_MAX__ && defined YY_STDINT_H \
       && UINT_LEAST8_MAX <= INT_MAX)
typedef uint_least8_t yytype_uint8;
#elif !defined __UINT_LEAST8_MAX__ && UCHAR_MAX <= INT_MAX
typedef unsigned char yytype_uint8;
#else
typedef short yytype_uint8;
#endif

#if defined __UINT_LEAST16_MAX__ && __UINT_LEAST16_MAX__ <= __INT_MAX__
typedef __UINT_LEAST16_TYPE__ yytype_uint16;
#elif (!defined __UINT_LEAST16_MAX__ && defined YY_STDINT_H \
       && UINT_LEAST16_MAX <= INT_MAX)
typedef uint_least16_t yytype_uint16;
#elif !defined __UINT_LEAST16_MAX__ && USHRT_MAX <= INT_MAX
typedef unsigned short yytype_uint16;
#else
typedef int yytype_uint16;
#endif

#ifndef YYPTRDIFF_T
# if defined __PTRDIFF_TYPE__ && defined __PTRDIFF_MAX__
#  define YYPTRDIFF_T __PTRDIFF_TYPE__
#  define YYPTRDIFF_MAXIMUM __PTRDIFF_MAX__
# elif defined PTRDIFF_MAX
#  ifndef ptrdiff_t
#   include <stddef.h> /* INFRINGES ON USER NAME SPACE */
#  endif
#  define YYPTRDIFF_T ptrdiff_t
#  define YYPTRDIFF_MAXIMUM PTRDIFF_MAX
# else
#  define YYPTRDIFF_T long
#  define YYPTRDIFF_MAXIMUM LONG_MAX
# endif
#endif

#ifndef YYSIZE_T
# ifdef __SIZE_TYPE__
#  define YYSIZE_T __SIZE_TYPE__
# elif defined size_t
#  define YYSIZE_T size_t
# elif defined __STDC_VERSION__ && 199901 <= __STDC_VERSION__
#  include <stddef.h> /* INFRINGES ON USER NAME SPACE */
#  define YYSIZE_T size_t
# else
#  define YYSIZE_T unsigned
# endif
#endif

#define YYSIZE_MAXIMUM                                  \
  YY_CAST (YYPTRDIFF_T,                                 \
           (YYPTRDIFF_MAXIMUM < YY_CAST (YYSIZE_T, -1)  \
            ? YYPTRDIFF_MAXIMUM                         \
            : YY_CAST (YYSIZE_T, -1)))

#define YYSIZEOF(X) YY_CAST (YYPTRDIFF_T, sizeof (X))


/* Stored state numbers (used for stacks). */
typedef yytype_int16 yy_state_t;

/* State numbers in computations.  */
typedef int yy_state_fast_t;

#ifndef YY_
# if defined YYENABLE_NLS && YYENABLE_NLS
#  if ENABLE_NLS
#   include <libintl.h> /* INFRINGES ON USER NAME SPACE */
#   define YY_(Msgid) dgettext ("bison-runtime", Msgid)
#  endif
# endif
# ifndef YY_
#  define YY_(Msgid) Msgid
# endif
#endif


#ifndef YY_ATTRIBUTE_PURE
# if defined __GNUC__ && 2 < __GNUC__ + (96 <= __GNUC_MINOR__)
#  define YY_ATTRIBUTE_PURE __attribute__ ((__pure__))
# else
#  define YY_ATTRIBUTE_PURE
# endif
#endif

#ifndef YY_ATTRIBUTE_UNUSED
# if defined __GNUC__ && 2 < __GNUC__ + (7 <= __GNUC_MINOR__)
#  define YY_ATTRIBUTE_UNUSED __attribute__ ((__unused__))
# else
#  define YY_ATTRIBUTE_UNUSED
# endif
#endif

/* Suppress unused-variable warnings by "using" E.  */
#if ! defined lint || defined __GNUC__
# define YY_USE(E) ((void) (E))
#else
# define YY_USE(E) /* empty */
#endif

/* Suppress an incorrect diagnostic about yylval being uninitialized.  */
#if defined __GNUC__ && ! defined __ICC && 406 <= __GNUC__ * 100 + __GNUC_MINOR__
# if __GNUC__ * 100 + __GNUC_MINOR__ < 407
#  define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN                           \
    _Pragma ("GCC diagnostic push")                                     \
    _Pragma ("GCC diagnostic ignored \"-Wuninitialized\"")
# else
#  define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN                           \
    _Pragma ("GCC diagnostic push")                                     \
    _Pragma ("GCC diagnostic ignored \"-Wuninitialized\"")              \
    _Pragma ("GCC diagnostic ignored \"-Wmaybe-uninitialized\"")
# endif
# define YY_IGNORE_MAYBE_UNINITIALIZED_END      \
    _Pragma ("GCC diagnostic pop")
#else
# define YY_INITIAL_VALUE(Value) Value
#endif
#ifndef YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
# define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
# define YY_IGNORE_MAYBE_UNINITIALIZED_END
#endif
#ifndef YY_INITIAL_VALUE
# define YY_INITIAL_VALUE(Value) /* Nothing. */
#endif

#if defined __cplusplus && defined __GNUC__ && ! defined __ICC && 6 <= __GNUC__
# define YY_IGNORE_USELESS_CAST_BEGIN                          \
    _Pragma ("GCC diagnostic push")                            \
    _Pragma ("GCC diagnostic ignored \"-Wuseless-cast\"")
# define YY_IGNORE_USELESS_CAST_END            \
    _Pragma ("GCC diagnostic pop")
#endif
#ifndef YY_IGNORE_USELESS_CAST_BEGIN
# define YY_IGNORE_USELESS_CAST_BEGIN
# define YY_IGNORE_USELESS_CAST_END
#endif


#define YY_ASSERT(E) ((void) (0 && (E)))

#if 1

/* The parser invokes alloca or malloc; define the necessary symbols.  */

# ifdef YYSTACK_USE_ALLOCA
#  if YYSTACK_USE_ALLOCA
#   ifdef __GNUC__
#    define YYSTACK_ALLOC __builtin_alloca
#   elif defined __BUILTIN_VA_ARG_INCR
#    include <alloca.h> /* INFRINGES ON USER NAME SPACE */
#   elif defined _AIX
#    define YYSTACK_ALLOC __alloca
#   elif defined _MSC_VER
#    include <malloc.h> /* INFRINGES ON USER NAME SPACE */
#    define alloca _alloca
#   else
#    define YYSTACK_ALLOC alloca
#    if ! defined _ALLOCA_H && ! defined EXIT_SUCCESS
#     include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
      /* Use EXIT_SUCCESS as a witness for stdlib.h.  */
#     ifndef EXIT_SUCCESS
#      define EXIT_SUCCESS 0
#     endif
#    endif
#   endif
#  endif
# endif

# ifdef YYSTACK_ALLOC
   /* Pacify GCC's 'empty if-body' warning.  */
#  define YYSTACK_FREE(Ptr) do { /* empty */; } while (0)
#  ifndef YYSTACK_ALLOC_MAXIMUM
    /* The OS might guarantee only one guard page at the bottom of the stack,
       and a page size can be as small as 4096 bytes.  So we cannot safely
       invoke alloca (N) if N exceeds 4096.  Use a slightly smaller number
       to allow for a few compiler-allocated temporary stack slots.  */
#   define YYSTACK_ALLOC_MAXIMUM 4032 /* reasonable circa 2006 */
#  endif
# else
#  define YYSTACK_ALLOC YYMALLOC
#  define YYSTACK_FREE YYFREE
#  ifndef YYSTACK_ALLOC_MAXIMUM
#   define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM
#  endif
#  if (defined __cplusplus && ! defined EXIT_SUCCESS \
       && ! ((defined YYMALLOC || defined malloc) \
             && (defined YYFREE || defined free)))
#   include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
#   ifndef EXIT_SUCCESS
#    define EXIT_SUCCESS 0
#   endif
#  endif
#  ifndef YYMALLOC
#   define YYMALLOC malloc
#   if ! defined malloc && ! defined EXIT_SUCCESS
void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */
#   endif
#  endif
#  ifndef YYFREE
#   define YYFREE free
#   if ! defined free && ! defined EXIT_SUCCESS
void free (void *); /* INFRINGES ON USER NAME SPACE */
#   endif
#  endif
# endif
#endif /* 1 */

#if (! defined yyoverflow \
     && (! defined __cplusplus \
         || (defined YYSTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL)))

/* A type that is properly aligned for any stack member.  */
union yyalloc
{
  yy_state_t yyss_alloc;
  YYSTYPE yyvs_alloc;
};

/* The size of the maximum gap between one aligned stack and the next.  */
# define YYSTACK_GAP_MAXIMUM (YYSIZEOF (union yyalloc) - 1)

/* The size of an array large to enough to hold all stacks, each with
   N elements.  */
# define YYSTACK_BYTES(N) \
     ((N) * (YYSIZEOF (yy_state_t) + YYSIZEOF (YYSTYPE)) \
      + YYSTACK_GAP_MAXIMUM)

# define YYCOPY_NEEDED 1

/* Relocate STACK from its old location to the new one.  The
   local variables YYSIZE and YYSTACKSIZE give the old and new number of
   elements in the stack, and YYPTR gives the new location of the
   stack.  Advance YYPTR to a properly aligned location for the next
   stack.  */
# define YYSTACK_RELOCATE(Stack_alloc, Stack)                           \
    do                                                                  \
      {                                                                 \
        YYPTRDIFF_T yynewbytes;                                         \
        YYCOPY (&yyptr->Stack_alloc, Stack, yysize);                    \
        Stack = &yyptr->Stack_alloc;                                    \
        yynewbytes = yystacksize * YYSIZEOF (*Stack) + YYSTACK_GAP_MAXIMUM; \
        yyptr += yynewbytes / YYSIZEOF (*yyptr);                        \
      }                                                                 \
    while (0)

#endif

#if defined YYCOPY_NEEDED && YYCOPY_NEEDED
/* Copy COUNT objects from SRC to DST.  The source and destination do
   not overlap.  */
# ifndef YYCOPY
#  if defined __GNUC__ && 1 < __GNUC__
#   define YYCOPY(Dst, Src, Count) \
      __builtin_memcpy (Dst, Src, YY_CAST (YYSIZE_T, (Count)) * sizeof (*(Src)))
#  else
#   define YYCOPY(Dst, Src, Count)              \
      do                                        \
        {                                       \
          YYPTRDIFF_T yyi;                      \
          for (yyi = 0; yyi < (Count); yyi++)   \
            (Dst)[yyi] = (Src)[yyi];            \
        }                                       \
      while (0)
#  endif
# endif
#endif /* !YYCOPY_NEEDED */

/* YYFINAL -- State number of the termination state.  */
#define YYFINAL  3
/* YYLAST -- Last index in YYTABLE.  */
#define YYLAST   1368

/* YYNTOKENS -- Number of terminals.  */
#define YYNTOKENS  342
/* YYNNTS -- Number of nonterminals.  */
#define YYNNTS  171
/* YYNRULES -- Number of rules.  */
#define YYNRULES  540
/* YYNSTATES -- Number of states.  */
#define YYNSTATES  1134

/* YYMAXUTOK -- Last valid token kind.  */
#define YYMAXUTOK   571


/* YYTRANSLATE(TOKEN-NUM) -- Symbol number corresponding to TOKEN-NUM
   as returned by yylex, with out-of-bounds checking.  */
#define YYTRANSLATE(YYX)                                \
  (0 <= (YYX) && (YYX) <= YYMAXUTOK                     \
   ? YY_CAST (yysymbol_kind_t, yytranslate[YYX])        \
   : YYSYMBOL_YYUNDEF)

/* YYTRANSLATE[TOKEN-NUM] -- Symbol number corresponding to TOKEN-NUM
   as returned by yylex.  */
static const yytype_int16 yytranslate[] =
{
       0,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,   323,     2,   324,     2,     2,     2,     2,
     319,   320,     2,   330,   318,   317,   325,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,   322,     2,
     331,   321,   340,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,   333,     2,   334,     2,     2,     2,   326,     2,   337,
       2,     2,     2,   332,   341,     2,     2,   336,   335,     2,
       2,   327,   328,     2,   339,   329,     2,     2,     2,   338,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     1,     2,     3,     4,
       5,     6,     7,     8,     9,    10,    11,    12,    13,    14,
      15,    16,    17,    18,    19,    20,    21,    22,    23,    24,
      25,    26,    27,    28,    29,    30,    31,    32,    33,    34,
      35,    36,    37,    38,    39,    40,    41,    42,    43,    44,
      45,    46,    47,    48,    49,    50,    51,    52,    53,    54,
      55,    56,    57,    58,    59,    60,    61,    62,    63,    64,
      65,    66,    67,    68,    69,    70,    71,    72,    73,    74,
      75,    76,    77,    78,    79,    80,    81,    82,    83,    84,
      85,    86,    87,    88,    89,    90,    91,    92,    93,    94,
      95,    96,    97,    98,    99,   100,   101,   102,   103,   104,
     105,   106,   107,   108,   109,   110,   111,   112,   113,   114,
     115,   116,   117,   118,   119,   120,   121,   122,   123,   124,
     125,   126,   127,   128,   129,   130,   131,   132,   133,   134,
     135,   136,   137,   138,   139,   140,   141,   142,   143,   144,
     145,   146,   147,   148,   149,   150,   151,   152,   153,   154,
     155,   156,   157,   158,   159,   160,   161,   162,   163,   164,
     165,   166,   167,   168,   169,   170,   171,   172,   173,   174,
     175,   176,   177,   178,   179,   180,   181,   182,   183,   184,
     185,   186,   187,   188,   189,   190,   191,   192,   193,   194,
     195,   196,   197,   198,   199,   200,   201,   202,   203,   204,
     205,   206,   207,   208,   209,   210,   211,   212,   213,   214,
     215,   216,   217,   218,   219,   220,   221,   222,   223,   224,
     225,   226,   227,   228,   229,   230,   231,   232,   233,   234,
     235,   236,   237,   238,   239,   240,   241,   242,   243,   244,
     245,   246,   247,   248,   249,   250,   251,   252,   253,   254,
     255,   256,   257,   258,   259,   260,   261,   262,   263,   264,
     265,   266,   267,   268,   269,   270,   271,   272,   273,   274,
     275,   276,   277,   278,   279,   280,   281,   282,   283,   284,
     285,   286,   287,   288,   289,   290,   291,   292,   293,   294,
     295,   296,   297,   298,   299,   300,   301,   302,   303,   304,
     305,   306,   307,   308,   309,   310,   311,   312,   313,   314,
     315,   316
};

#if YYDEBUG
/* YYRLINE[YYN] -- Source line where rule number YYN was defined.  */
static const yytype_int16 yyrline[] =
{
       0,   688,   688,   688,   690,   691,   693,   694,   695,   696,
     697,   698,   699,   700,   701,   702,   703,   705,   706,   707,
     708,   710,   716,   721,   729,   731,   731,   737,   743,   750,
     757,   766,   768,   771,   773,   775,   782,   783,   784,   785,
     786,   787,   788,   790,   791,   793,   794,   796,   797,   798,
     799,   800,   801,   802,   803,   804,   806,   808,   809,   811,
     812,   814,   815,   817,   818,   818,   819,   819,   820,   820,
     821,   821,   822,   822,   823,   823,   824,   824,   825,   825,
     826,   826,   827,   828,   828,   829,   830,   831,   832,   833,
     834,   835,   835,   836,   837,   838,   839,   840,   840,   841,
     842,   842,   843,   844,   844,   845,   845,   846,   847,   847,
     849,   852,   856,   857,   859,   859,   875,   875,   882,   882,
     889,   889,   891,   891,   893,   893,   896,   897,   898,   899,
     900,   901,   902,   903,   905,   906,   907,   908,   909,   910,
     911,   912,   913,   914,   915,   916,   917,   918,   920,   921,
     922,   923,   924,   925,   927,   928,   929,   930,   931,   932,
     933,   934,   935,   936,   937,   938,   939,   940,   941,   942,
     943,   944,   945,   946,   947,   948,   949,   950,   951,   952,
     953,   955,   956,   957,   958,   959,   960,   962,   963,   964,
     966,   967,   969,   970,   972,   973,   974,   975,   976,   977,
     978,   979,   980,   981,   982,   983,   984,   985,   986,   987,
     989,   990,   991,   992,   993,   995,   996,   998,   999,  1001,
    1002,  1003,  1004,  1006,  1007,  1008,  1009,  1010,  1011,  1012,
    1013,  1014,  1015,  1017,  1019,  1020,  1022,  1023,  1024,  1025,
    1026,  1027,  1028,  1029,  1030,  1031,  1032,  1033,  1034,  1035,
    1036,  1037,  1038,  1039,  1040,  1041,  1042,  1043,  1044,  1045,
    1046,  1047,  1048,  1049,  1050,  1051,  1052,  1054,  1055,  1056,
    1057,  1058,  1059,  1060,  1061,  1062,  1063,  1064,  1065,  1067,
    1068,  1069,  1070,  1072,  1073,  1074,  1075,  1076,  1077,  1078,
    1079,  1080,  1081,  1082,  1083,  1084,  1085,  1086,  1088,  1089,
    1091,  1092,  1093,  1094,  1096,  1097,  1098,  1099,  1100,  1101,
    1103,  1106,  1111,  1117,  1117,  1118,  1118,  1119,  1119,  1120,
    1120,  1121,  1121,  1122,  1122,  1122,  1126,  1126,  1127,  1127,
    1128,  1128,  1129,  1129,  1130,  1130,  1132,  1132,  1133,  1133,
    1135,  1135,  1137,  1138,  1139,  1140,  1141,  1142,  1143,  1144,
    1145,  1146,  1147,  1149,  1150,  1151,  1152,  1153,  1154,  1155,
    1156,  1157,  1158,  1159,  1161,  1162,  1163,  1164,  1165,  1166,
    1167,  1168,  1169,  1170,  1171,  1173,  1175,  1177,  1179,  1180,
    1181,  1183,  1185,  1186,  1188,  1189,  1190,  1190,  1193,  1194,
    1195,  1197,  1199,  1200,  1202,  1203,  1204,  1206,  1207,  1209,
    1211,  1212,  1213,  1214,  1215,  1216,  1217,  1218,  1219,  1220,
    1221,  1222,  1224,  1226,  1227,  1228,  1230,  1234,  1235,  1237,
    1243,  1244,  1245,  1247,  1247,  1249,  1250,  1251,  1253,  1254,
    1255,  1256,  1257,  1258,  1259,  1260,  1261,  1262,  1263,  1264,
    1266,  1267,  1268,  1269,  1271,  1272,  1274,  1274,  1275,  1275,
    1277,  1279,  1280,  1281,  1282,  1284,  1285,  1286,  1287,  1289,
    1291,  1292,  1293,  1294,  1295,  1297,  1298,  1301,  1302,  1304,
    1305,  1306,  1307,  1309,  1310,  1312,  1313,  1315,  1316,  1318,
    1319,  1321,  1322,  1324,  1325,  1326,  1328,  1329,  1330,  1332,
    1333,  1334,  1336,  1337,  1338,  1340,  1341,  1343,  1344,  1346,
    1347,  1349,  1350,  1356,  1357,  1358,  1359,  1360,  1361,  1362,
    1364,  1365,  1366,  1367,  1368,  1371,  1372,  1373,  1374,  1375,
    1376,  1377,  1378,  1379,  1380,  1381,  1382,  1384,  1385,  1386,
    1387,  1389,  1390,  1392,  1393,  1394,  1395,  1396,  1397,  1398,
    1399
};
#endif

/** Accessing symbol of state STATE.  */
#define YY_ACCESSING_SYMBOL(State) YY_CAST (yysymbol_kind_t, yystos[State])

#if 1
/* The user-facing name of the symbol whose (internal) number is
   YYSYMBOL.  No bounds checking.  */
static const char *yysymbol_name (yysymbol_kind_t yysymbol) YY_ATTRIBUTE_UNUSED;

/* YYTNAME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM.
   First, the terminals, then, starting at YYNTOKENS, nonterminals.  */
static const char *const yytname[] =
{
  "\"end of file\"", "error", "\"invalid token\"", "T_INT", "T_HEX",
  "T_FLOAT", "T_IDENTIFIER", "T_REGISTER", "T_CONSTANT", "T_A_LOCALSIZE",
  "T_A_CONST", "T_A_BUF", "T_A_INVOCATIONID", "T_A_WGID", "T_A_NUMWG",
  "T_A_BRANCHSTACK", "T_A_IN", "T_A_OUT", "T_A_TEX", "T_A_PVTMEM",
  "T_ABSNEG", "T_NEG", "T_ABS", "T_R", "T_HR", "T_HC", "T_EVEN",
  "T_POS_INFINITY", "T_NEG_INFINITY", "T_EI", "T_WRMASK", "T_FLUT_0_0",
  "T_FLUT_0_5", "T_FLUT_1_0", "T_FLUT_2_0", "T_FLUT_E", "T_FLUT_PI",
  "T_FLUT_INV_PI", "T_FLUT_INV_LOG2_E", "T_FLUT_LOG2_E",
  "T_FLUT_INV_LOG2_10", "T_FLUT_LOG2_10", "T_FLUT_4_0", "T_SY", "T_SS",
  "T_JP", "T_SAT", "T_RPT", "T_UL", "T_NOP", "T_OP_NOP", "T_OP_BR",
  "T_OP_BRAO", "T_OP_BRAA", "T_OP_BRAC", "T_OP_BANY", "T_OP_BALL",
  "T_OP_BRAX", "T_OP_JUMP", "T_OP_CALL", "T_OP_RET", "T_OP_KILL",
  "T_OP_END", "T_OP_EMIT", "T_OP_CUT", "T_OP_CHMASK", "T_OP_CHSH",
  "T_OP_FLOW_REV", "T_OP_BKT", "T_OP_STKS", "T_OP_STKR", "T_OP_XSET",
  "T_OP_XCLR", "T_OP_GETLAST", "T_OP_GETONE", "T_OP_DBG", "T_OP_SHPS",
  "T_OP_SHPE", "T_OP_PREDT", "T_OP_PREDF", "T_OP_PREDE", "T_OP_MOVMSK",
  "T_OP_MOVA1", "T_OP_MOVA", "T_OP_MOV", "T_OP_COV", "T_OP_SWZ",
  "T_OP_GAT", "T_OP_SCT", "T_OP_ADD_F", "T_OP_MIN_F", "T_OP_MAX_F",
  "T_OP_MUL_F", "T_OP_SIGN_F", "T_OP_CMPS_F", "T_OP_ABSNEG_F",
  "T_OP_CMPV_F", "T_OP_FLOOR_F", "T_OP_CEIL_F", "T_OP_RNDNE_F",
  "T_OP_RNDAZ_F", "T_OP_TRUNC_F", "T_OP_ADD_U", "T_OP_ADD_S", "T_OP_SUB_U",
  "T_OP_SUB_S", "T_OP_CMPS_U", "T_OP_CMPS_S", "T_OP_MIN_U", "T_OP_MIN_S",
  "T_OP_MAX_U", "T_OP_MAX_S", "T_OP_ABSNEG_S", "T_OP_AND_B", "T_OP_OR_B",
  "T_OP_NOT_B", "T_OP_XOR_B", "T_OP_CMPV_U", "T_OP_CMPV_S", "T_OP_MUL_U24",
  "T_OP_MUL_S24", "T_OP_MULL_U", "T_OP_BFREV_B", "T_OP_CLZ_S",
  "T_OP_CLZ_B", "T_OP_SHL_B", "T_OP_SHR_B", "T_OP_ASHR_B", "T_OP_BARY_F",
  "T_OP_FLAT_B", "T_OP_MGEN_B", "T_OP_GETBIT_B", "T_OP_SETRM",
  "T_OP_CBITS_B", "T_OP_SHB", "T_OP_MSAD", "T_OP_MAD_U16",
  "T_OP_MADSH_U16", "T_OP_MAD_S16", "T_OP_MADSH_M16", "T_OP_MAD_U24",
  "T_OP_MAD_S24", "T_OP_MAD_F16", "T_OP_MAD_F32", "T_OP_SEL_B16",
  "T_OP_SEL_B32", "T_OP_SEL_S16", "T_OP_SEL_S32", "T_OP_SEL_F16",
  "T_OP_SEL_F32", "T_OP_SAD_S16", "T_OP_SAD_S32", "T_OP_SHRM", "T_OP_SHLM",
  "T_OP_SHRG", "T_OP_SHLG", "T_OP_ANDG", "T_OP_DP2ACC", "T_OP_DP4ACC",
  "T_OP_WMM", "T_OP_WMM_ACCU", "T_OP_RCP", "T_OP_RSQ", "T_OP_LOG2",
  "T_OP_EXP2", "T_OP_SIN", "T_OP_COS", "T_OP_SQRT", "T_OP_HRSQ",
  "T_OP_HLOG2", "T_OP_HEXP2", "T_OP_ISAM", "T_OP_ISAML", "T_OP_ISAMM",
  "T_OP_SAM", "T_OP_SAMB", "T_OP_SAML", "T_OP_SAMGQ", "T_OP_GETLOD",
  "T_OP_CONV", "T_OP_CONVM", "T_OP_GETSIZE", "T_OP_GETBUF", "T_OP_GETPOS",
  "T_OP_GETINFO", "T_OP_DSX", "T_OP_DSY", "T_OP_GATHER4R", "T_OP_GATHER4G",
  "T_OP_GATHER4B", "T_OP_GATHER4A", "T_OP_SAMGP0", "T_OP_SAMGP1",
  "T_OP_SAMGP2", "T_OP_SAMGP3", "T_OP_DSXPP_1", "T_OP_DSYPP_1",
  "T_OP_RGETPOS", "T_OP_RGETINFO", "T_OP_BRCST_A", "T_OP_QSHUFFLE_BRCST",
  "T_OP_QSHUFFLE_H", "T_OP_QSHUFFLE_V", "T_OP_QSHUFFLE_DIAG", "T_OP_LDG",
  "T_OP_LDG_A", "T_OP_LDL", "T_OP_LDP", "T_OP_STG", "T_OP_STG_A",
  "T_OP_STL", "T_OP_STP", "T_OP_LDIB", "T_OP_G2L", "T_OP_L2G",
  "T_OP_PREFETCH", "T_OP_LDLW", "T_OP_STLW", "T_OP_RESFMT", "T_OP_RESINFO",
  "T_OP_ATOMIC_ADD", "T_OP_ATOMIC_SUB", "T_OP_ATOMIC_XCHG",
  "T_OP_ATOMIC_INC", "T_OP_ATOMIC_DEC", "T_OP_ATOMIC_CMPXCHG",
  "T_OP_ATOMIC_MIN", "T_OP_ATOMIC_MAX", "T_OP_ATOMIC_AND",
  "T_OP_ATOMIC_OR", "T_OP_ATOMIC_XOR", "T_OP_RESINFO_B", "T_OP_LDIB_B",
  "T_OP_STIB_B", "T_OP_ATOMIC_B_ADD", "T_OP_ATOMIC_B_SUB",
  "T_OP_ATOMIC_B_XCHG", "T_OP_ATOMIC_B_INC", "T_OP_ATOMIC_B_DEC",
  "T_OP_ATOMIC_B_CMPXCHG", "T_OP_ATOMIC_B_MIN", "T_OP_ATOMIC_B_MAX",
  "T_OP_ATOMIC_B_AND", "T_OP_ATOMIC_B_OR", "T_OP_ATOMIC_B_XOR",
  "T_OP_ATOMIC_S_ADD", "T_OP_ATOMIC_S_SUB", "T_OP_ATOMIC_S_XCHG",
  "T_OP_ATOMIC_S_INC", "T_OP_ATOMIC_S_DEC", "T_OP_ATOMIC_S_CMPXCHG",
  "T_OP_ATOMIC_S_MIN", "T_OP_ATOMIC_S_MAX", "T_OP_ATOMIC_S_AND",
  "T_OP_ATOMIC_S_OR", "T_OP_ATOMIC_S_XOR", "T_OP_ATOMIC_G_ADD",
  "T_OP_ATOMIC_G_SUB", "T_OP_ATOMIC_G_XCHG", "T_OP_ATOMIC_G_INC",
  "T_OP_ATOMIC_G_DEC", "T_OP_ATOMIC_G_CMPXCHG", "T_OP_ATOMIC_G_MIN",
  "T_OP_ATOMIC_G_MAX", "T_OP_ATOMIC_G_AND", "T_OP_ATOMIC_G_OR",
  "T_OP_ATOMIC_G_XOR", "T_OP_LDGB", "T_OP_STGB", "T_OP_STIB", "T_OP_LDC",
  "T_OP_LDLV", "T_OP_GETSPID", "T_OP_GETWID", "T_OP_GETFIBERID",
  "T_OP_STC", "T_OP_BAR", "T_OP_FENCE", "T_TYPE_F16", "T_TYPE_F32",
  "T_TYPE_U16", "T_TYPE_U32", "T_TYPE_S16", "T_TYPE_S32", "T_TYPE_U8",
  "T_TYPE_S8", "T_UNTYPED", "T_TYPED", "T_MIXED", "T_UNSIGNED", "T_LOW",
  "T_HIGH", "T_1D", "T_2D", "T_3D", "T_4D", "T_LT", "T_LE", "T_GT", "T_GE",
  "T_EQ", "T_NE", "T_S2EN", "T_SAMP", "T_TEX", "T_BASE", "T_OFFSET",
  "T_UNIFORM", "T_NONUNIFORM", "T_IMM", "T_NAN", "T_INF", "T_A0", "T_A1",
  "T_P0", "T_W", "T_CAT1_TYPE_TYPE", "'-'", "','", "'('", "')'", "'='",
  "':'", "'!'", "'#'", "'.'", "'a'", "'o'", "'p'", "'s'", "'+'", "'<'",
  "'g'", "'['", "']'", "'l'", "'k'", "'c'", "'w'", "'r'", "'>'", "'h'",
  "$accept", "shader", "$@1", "headers", "header", "const_val",
  "localsize_header", "const_header", "buf_header_addr_reg", "buf_header",
  "$@2", "invocationid_header", "wgid_header", "numwg_header",
  "branchstack_header", "pvtmem_header", "in_header", "out_header",
  "tex_header", "iflag", "iflags", "instrs", "instr", "label", "cat0_src1",
  "cat0_src2", "cat0_immed", "cat0_instr", "$@3", "$@4", "$@5", "$@6",
  "$@7", "$@8", "$@9", "$@10", "$@11", "$@12", "$@13", "$@14", "$@15",
  "$@16", "$@17", "$@18", "cat1_opc", "cat1_src", "cat1_movmsk", "$@19",
  "cat1_mova1", "$@20", "cat1_mova", "$@21", "cat1_swz", "$@22",
  "cat1_gat", "$@23", "cat1_sct", "$@24", "cat1_instr", "cat2_opc_1src",
  "cat2_opc_2src_cnd", "cat2_opc_2src", "cond", "cat2_instr",
  "cat3_dp_signedness", "cat3_dp_pack", "cat3_opc", "cat3_imm_reg_opc",
  "cat3_wmm", "cat3_dp", "cat3_instr", "cat4_opc", "cat4_instr",
  "cat5_opc_dsxypp", "cat5_opc", "cat5_flag", "cat5_flags", "cat5_samp",
  "cat5_tex", "cat5_type", "cat5_a1", "cat5_instr", "cat6_typed",
  "cat6_dim", "cat6_type", "cat6_imm_offset", "cat6_offset",
  "cat6_dst_offset", "cat6_immed", "cat6_stg_ldg_a6xx_offset", "cat6_load",
  "$@25", "$@26", "$@27", "$@28", "$@29", "$@30", "$@31", "cat6_store",
  "$@32", "$@33", "$@34", "$@35", "$@36", "cat6_loadib", "$@37",
  "cat6_storeib", "$@38", "cat6_prefetch", "$@39", "cat6_atomic_opc",
  "cat6_a3xx_atomic_opc", "cat6_a6xx_atomic_opc", "cat6_a3xx_atomic_s",
  "cat6_a6xx_atomic_g", "cat6_atomic_l", "cat6_atomic",
  "cat6_ibo_opc_1src", "cat6_ibo_opc_ldgb", "cat6_ibo_opc_stgb",
  "cat6_ibo", "$@40", "cat6_id_opc", "cat6_id", "cat6_bindless_base",
  "cat6_bindless_mode", "cat6_reg_or_immed", "cat6_bindless_ibo_opc_1src",
  "cat6_bindless_ibo_opc_2src", "cat6_bindless_ibo_opc_2src_dst",
  "cat6_bindless_ibo", "cat6_bindless_ldc_opc", "cat6_bindless_ldc_middle",
  "cat6_bindless_ldc", "stc_dst", "cat6_stc", "$@41", "cat6_todo",
  "cat6_instr", "cat7_scope", "cat7_scopes", "cat7_barrier", "$@42",
  "$@43", "cat7_instr", "src", "dst", "const", "dst_reg_flag",
  "dst_reg_flags", "dst_reg", "src_reg_flag", "src_reg_flags", "src_reg",
  "src_reg_gpr", "src_const", "src_reg_or_const",
  "src_reg_or_const_or_rel", "src_reg_or_const_or_rel_or_imm",
  "src_reg_or_rel_or_imm", "offset", "relative_gpr_src",
  "relative_gpr_dst", "relative_const", "relative", "immediate_cat1",
  "immediate", "flut_immed", "integer", "float", "type", YY_NULLPTR
};

static const char *
yysymbol_name (yysymbol_kind_t yysymbol)
{
  return yytname[yysymbol];
}
#endif

#define YYPACT_NINF (-872)

#define yypact_value_is_default(Yyn) \
  ((Yyn) == YYPACT_NINF)

#define YYTABLE_NINF (-4)

#define yytable_value_is_error(Yyn) \
  0

/* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing
   STATE-NUM.  */
static const yytype_int16 yypact[] =
{
    -872,    35,   971,  -872,    56,  -300,    56,  -278,  -273,  -261,
      56,  -236,  -226,  -220,    56,   220,   971,  -872,  -872,  -872,
    -872,  -872,  -872,  -872,  -872,  -872,  -872,  -872,  -872,  -872,
    -872,   100,  -204,   110,  -872,   116,    55,   127,  -872,   153,
     155,   191,  -872,  -111,  -872,  -872,  -872,  -872,  -872,  -872,
    -872,   533,  1091,   641,  -872,  -872,  -872,  -872,    56,   -91,
     -88,   -87,   -84,   -74,   -70,   -66,   -61,   -60,  -872,  -872,
    -872,  -872,  -872,  -872,   -63,  -872,  -872,  -872,  -872,  -872,
    -872,  -872,  -872,  -872,  -872,  -872,  -872,  -872,  -872,  -872,
    -872,  -872,  -872,   -50,  -872,  -872,  -872,  -872,  -872,  -872,
    -872,   -49,   -30,   -24,   -34,   -33,   -20,   -17,   -10,  -872,
    -872,  -872,  -872,  -872,  -872,  -872,  -872,  -872,  -872,  -872,
    -872,  -872,  -872,  -872,  -872,  -872,  -872,  -872,  -872,  -872,
    -872,  -872,  -872,  -872,  -872,  -872,  -872,  -872,  -872,  -872,
    -872,  -872,  -872,  -872,  -872,  -872,  -872,  -872,  -872,  -872,
    -872,  -872,  -872,  -872,  -872,  -872,  -872,  -872,  -872,  -872,
    -872,  -872,  -872,  -872,  -872,  -872,  -872,  -872,  -872,  -872,
    -872,  -872,  -872,  -872,  -872,  -872,  -872,  -872,  -872,  -872,
    -872,  -872,  -872,  -872,  -872,  -872,  -872,  -872,  -872,  -872,
    -872,  -872,  -872,  -872,  -872,  -872,  -872,  -872,  -872,  -872,
    -872,  -872,  -872,  -872,  -872,  -872,  -872,  -872,  -872,  -872,
    -872,  -872,  -872,  -872,  -872,  -872,  -872,  -872,  -872,  -872,
    -872,  -872,  -872,  -872,  -872,  -872,  -872,  -872,  -872,  -872,
    -872,  -872,  -872,  -872,  -872,  -872,  -872,  -872,  -872,  -872,
    -872,  -872,  -872,  -872,  -872,  -872,  -872,  -872,  -872,  -872,
    -872,  -872,  -872,  -872,  -872,  -872,  -872,  -872,  -872,  -872,
    -872,  -872,  -872,  -872,  -872,  -872,  -872,  -872,  -872,  -872,
    -872,  -872,  -872,  -872,  -872,  -872,  -872,  -872,  -872,  -872,
    -872,  -872,  -872,  -872,  -872,  -872,  -872,  -872,  -872,  -872,
    -872,  -872,  -872,  -872,  -872,  -872,  -872,  -872,  -872,    68,
    -872,  -872,  -872,  -872,  -872,  -872,  -872,   492,     4,   492,
    -872,   492,   492,   492,     9,  -872,   492,  -872,    10,    10,
    -872,  -872,  -872,  -872,  -872,  -872,    20,    20,    20,  -872,
    -872,  -872,  -872,    22,    20,    20,  -872,    22,  -872,    20,
      20,    20,  -872,    23,  -872,  -872,  -872,  -872,  -872,  -872,
    -872,    26,    56,   354,  -872,  -872,  -872,  -872,  -872,   357,
     363,   371,  -234,  -234,  -234,    73,  -234,  -234,    60,    60,
      60,  -234,    60,    76,    60,    60,  -234,  -234,    91,    92,
      93,    72,   107,   112,   119,   122,    22,    22,    22,    22,
      22,    22,    22,    22,    20,    77,    22,    22,    20,    22,
      22,   117,   117,  -872,   101,  -872,  -872,  -872,  -872,  -872,
    -872,  -872,  -872,   113,  -872,   272,    19,   125,   130,   131,
     179,   138,   139,   143,   144,  -210,   126,   166,   635,    10,
     492,   140,   -92,   146,   146,   146,   427,   146,   146,   146,
     492,   146,   146,   146,    70,    56,   167,   145,   154,   168,
     165,  -872,   176,   174,   175,   177,  -872,  -872,   204,  -872,
     178,   195,    51,  -872,  -872,  -872,  -872,  -872,  -872,  -872,
    -872,  -872,  -872,  -872,  -872,  -872,  -872,  -872,  -872,  -872,
    -872,   492,   492,   492,   492,   162,   182,   172,   169,   146,
     183,   492,   188,   146,   492,   180,   -58,   117,  -872,  -872,
     212,   213,  -872,  -872,   532,   532,   133,  -872,  -872,  -872,
    -872,  -872,  -872,   492,   133,   289,   318,   192,  -872,  -872,
     -72,   492,   133,  -872,  -872,  -872,  -872,  -872,  -872,  -872,
    -872,  -872,  -872,  -872,   209,   427,   492,  -872,  -872,  -162,
      22,    22,    22,  -872,  -872,  -872,  -872,  -872,  -872,  -872,
    -872,  -872,   492,    22,    22,  -872,    22,    22,    22,   207,
     208,   216,  -872,  -872,    56,  -872,   531,   535,    73,  -872,
      60,  -213,  -213,  -872,  -872,    60,    60,    60,  -872,  -872,
      60,   492,   532,   532,   492,   492,   492,   224,   226,   228,
     229,   205,   217,   227,   232,    22,   108,   249,   236,    22,
     252,   238,  -872,  -872,  -872,  -872,  -872,  -287,  -287,  -872,
    -872,  -872,  -872,  -872,  -872,   241,   243,  -872,  -872,  -872,
       6,   257,   258,   280,  -872,  -872,  -872,   124,    80,  -872,
    -872,  -872,  -872,  -872,  -872,  -872,  -872,  -872,  -872,  -872,
    -872,  -872,  -872,  -872,  -872,  -872,  -872,  -872,  -872,  -872,
    -872,    73,   821,   739,  -872,  -872,  -872,  -872,  -872,   286,
     305,   307,   108,  -872,   309,  -872,  -872,  -872,   315,  -872,
    -872,  -872,   316,  -872,   622,   287,   320,  -872,  -872,  -872,
    -872,   311,   314,   321,   330,   328,   329,   336,   340,   343,
      73,   335,   198,   365,   351,   360,   373,  -872,  -872,   361,
     374,   377,  -872,  -872,  -872,  -872,  -872,  -872,  -872,   379,
     380,   381,   368,   369,   367,   375,   108,   108,   108,   108,
     388,  -264,   382,   108,   389,   383,    61,    73,    73,   384,
     386,   407,   410,  -872,   403,   408,   268,   411,   415,   424,
     425,    66,  -872,  -872,  -872,  -872,   419,    73,  -872,  -872,
     133,   133,   598,   598,   622,   318,  -872,  -872,   589,    73,
      73,    73,   395,    73,    73,    73,    73,    73,   416,   420,
     430,  -872,  -872,    56,    73,    73,   743,  -872,    60,    60,
     492,   622,   492,   417,   418,   421,   422,  -287,   426,  -249,
    -249,    73,   198,  -872,   423,  -872,   428,  -249,    73,   429,
     435,   432,  -872,  -872,  -872,  -872,  -872,  -287,  -287,  -872,
    -872,  -872,  -872,  -872,  -287,  -287,   438,   439,  -872,   440,
     434,  -872,   189,   450,   465,   466,   470,  -872,  -872,   474,
    -872,   475,   469,   471,   472,   462,   492,  -872,   473,   476,
     478,    11,    11,   198,   481,   480,   487,   490,  -872,  -872,
     494,   495,   497,   108,   108,   108,   108,   482,   141,   483,
     198,   484,  -872,   488,   492,  -872,   505,   108,   493,   498,
      73,    73,   508,   468,   499,   500,   501,  -872,  -872,  -872,
     133,   289,   318,   147,   598,   527,   589,   502,   503,   510,
     198,   514,   511,    11,    11,    11,   509,   509,   509,   492,
     513,  -872,    56,  -872,  -872,    73,   622,   622,   492,  -264,
     426,  -264,  -264,   529,   108,   517,   546,  -872,   547,   548,
     549,    73,  -264,   550,   537,   551,  -872,   622,  -872,  -872,
    -872,  -872,  -872,  -872,  -872,  -872,   568,  -872,   571,  -872,
     576,   492,   492,   492,   561,   566,   567,   492,   622,   492,
     594,  -872,  -872,  -872,  -872,   580,  -872,   586,   596,   599,
     600,   585,   590,   591,   592,   108,  -287,   607,   108,   108,
     108,   609,  -872,   597,   108,   147,  -872,   605,   318,   593,
     589,   612,   621,   626,  -872,   613,   198,   627,   629,   630,
    -872,   636,   945,   622,   622,   492,   634,   637,   639,   640,
     642,   633,    73,   647,   648,   649,   638,   650,   651,   620,
     652,    73,  -872,  -872,  -872,  -872,   654,  -872,  -872,   624,
     644,   108,   198,   643,   198,   198,   198,   657,   653,  -872,
     655,   660,   147,   147,   147,   147,   147,   661,  -287,   147,
     147,   147,   147,   147,   147,   675,   147,  -872,   527,   662,
     663,   676,   664,   679,  -872,   681,   682,  -872,    73,   622,
     622,  -872,  -872,  -872,  -872,  -872,   670,   671,  -872,  -872,
    -872,   669,  -872,  -872,   108,  -872,  -872,   198,   198,   108,
     686,   108,   198,   198,   687,  -872,  -872,    73,   677,   688,
     689,   678,   680,  -872,   108,   691,  -872,  -872,  1004,  -872,
      73,   108,   108,   693,   695,   697,   198,   696,  -872,   698,
     700,   108,   108,   108,   701,    73,   108,   108,  -872,   702,
    -872,   108,   703,  -872,  -872,   108,  -872,  1016,   705,   704,
     108,    73,  -872,  -872
};

/* YYDEFACT[STATE-NUM] -- Default reduction number in state STATE-NUM.
   Performed when YYTABLE does not specify something else to do.  Zero
   means the default is an error.  */
static const yytype_int16 yydefact[] =
{
       2,     0,     4,     1,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,    43,     4,     6,     7,     8,
       9,    10,    11,    12,    16,    13,    14,    15,    18,    20,
      17,     0,     0,     0,    25,     0,     0,     0,    31,     0,
       0,     0,    32,     0,    36,    37,    38,    39,    40,    41,
      42,    43,     0,    43,    46,    55,     5,    19,     0,     0,
      24,     0,     0,     0,     0,     0,     0,     0,    56,    44,
      63,    64,    66,    68,     0,    72,    74,    76,    78,    80,
      82,    83,    85,    86,    87,    88,    89,    90,    91,    93,
      94,    95,    96,     0,    97,    99,   100,   102,   103,   105,
     107,     0,     0,     0,     0,     0,     0,     0,     0,   154,
     155,   156,   157,   138,   148,   134,   151,   139,   140,   141,
     142,   143,   158,   159,   160,   161,   149,   150,   162,   163,
     164,   165,   135,   166,   167,   144,   168,   152,   153,   169,
     170,   171,   145,   137,   136,   172,   173,   174,   175,   176,
     177,   178,   146,   147,   179,   180,   194,   195,   196,   197,
     198,   199,   200,   201,   202,   203,   204,   205,   206,   207,
     208,   209,   210,   211,   212,   213,   214,   217,   218,   215,
     216,   223,   224,   225,   226,   227,   228,   229,   230,   231,
     232,   236,   237,   238,   239,   240,   241,   242,   243,   244,
     245,   246,   247,   248,   249,   250,   251,   252,   253,   254,
     255,   256,   257,   258,   259,   234,   235,   260,   261,   262,
     263,   264,   265,   266,   313,   315,   319,   317,   326,   328,
     332,   330,   336,   425,   426,   340,   321,   334,   427,   381,
     342,   343,   344,   345,   346,   347,   348,   349,   350,   351,
     352,   399,   412,   411,   400,   401,   402,   403,   404,   405,
     406,   407,   408,   409,   410,   353,   354,   355,   356,   357,
     358,   359,   360,   361,   362,   363,   364,   365,   366,   367,
     368,   369,   370,   371,   372,   373,   374,   382,   383,   338,
     416,   323,   388,   389,   390,   423,   446,   448,    47,     0,
     126,   127,   128,   129,   130,   131,    48,     0,     0,     0,
      49,     0,     0,     0,     0,    50,     0,    51,   277,   277,
      52,   428,   430,   429,   431,   432,     0,     0,     0,   379,
     380,   378,   433,     0,     0,     0,   434,     0,   435,     0,
       0,     0,   437,     0,   436,   438,   439,    53,   450,    54,
      45,     0,     0,     0,    26,    27,    28,    29,    30,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,   444,   444,   455,     0,   460,   461,   462,   463,   464,
     456,   457,   458,     0,   467,   465,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,   277,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,    58,     0,     0,     0,     0,   527,   529,     0,    70,
       0,     0,     0,    77,    79,    81,    84,    92,   108,    98,
     101,   104,   106,   114,   116,   118,   110,   111,   120,   122,
     124,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,   444,   447,   449,
       0,     0,   466,   468,     0,     0,     0,   181,   182,   183,
     184,   185,   186,     0,     0,     0,     0,     0,   190,   191,
       0,     0,     0,   267,   272,   275,   273,   274,   276,   268,
     269,   270,   271,   278,     0,     0,     0,   298,   299,     0,
       0,     0,     0,   533,   534,   535,   536,   537,   538,   539,
     540,   304,     0,     0,     0,   391,     0,     0,     0,     0,
       0,     0,   310,    21,     0,    23,     0,     0,     0,    57,
       0,     0,     0,   528,   530,     0,     0,     0,    62,    61,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,   443,   442,   440,   441,   445,   492,   492,   451,
     459,   469,   470,   471,   472,     0,     0,   452,   453,   454,
       0,     0,     0,     0,   132,   475,   479,   473,     0,   481,
     482,   483,   112,   501,   502,   484,   113,   503,   133,   515,
     516,   517,   518,   519,   520,   521,   522,   523,   524,   525,
     526,     0,     0,     0,   486,   187,   488,   512,   510,     0,
       0,     0,     0,   489,     0,   490,   491,   477,     0,   478,
     192,   193,     0,   233,     0,     0,   297,   300,   301,   302,
     303,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,    65,    60,     0,
       0,     0,    71,    73,    75,   109,   115,   117,   119,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,   492,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,   531,     0,     0,     0,     0,     0,     0,
       0,     0,   474,   476,   480,   485,     0,     0,   514,   487,
       0,     0,     0,     0,     0,     0,   283,   281,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,   397,   398,     0,     0,     0,     0,    59,     0,     0,
       0,     0,     0,     0,     0,     0,     0,   492,     0,   492,
     492,     0,     0,   306,     0,   305,     0,   492,     0,     0,
     421,     0,   420,   494,   493,   498,   497,   492,   492,   508,
     509,   532,   504,   505,   492,   492,     0,     0,   511,     0,
       0,   189,     0,     0,     0,     0,     0,   279,   280,   295,
     296,   293,     0,     0,     0,     0,     0,   386,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,    67,    69,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,   308,     0,     0,   307,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,   506,   507,   513,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,   392,   392,   392,     0,
       0,   419,     0,    33,    34,     0,     0,     0,     0,   492,
       0,   492,   492,     0,     0,     0,     0,   309,     0,     0,
       0,     0,   492,     0,     0,     0,   422,     0,   496,   500,
     499,   495,   188,   219,   220,   221,     0,   294,   291,   292,
     288,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,   395,   396,   394,   417,     0,    22,     0,     0,     0,
       0,     0,     0,     0,     0,     0,   492,     0,     0,     0,
       0,     0,   341,     0,     0,     0,   324,     0,     0,     0,
       0,     0,     0,     0,   384,     0,     0,     0,     0,     0,
     393,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,   222,   289,   290,   282,   286,   287,   284,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,   121,
       0,     0,     0,     0,     0,     0,     0,     0,   492,     0,
       0,     0,     0,     0,     0,     0,     0,   424,     0,     0,
       0,     0,     0,     0,   413,     0,     0,   418,     0,     0,
       0,   314,   316,   320,   318,   327,     0,     0,   329,   333,
     331,     0,   322,   335,     0,   325,   285,     0,     0,     0,
       0,     0,     0,     0,     0,   123,   125,     0,     0,     0,
       0,     0,     0,   376,     0,     0,   414,   415,     0,   311,
       0,     0,     0,     0,     0,     0,     0,     0,   312,     0,
       0,     0,     0,     0,     0,     0,     0,     0,   377,     0,
     385,     0,     0,   337,   339,     0,   387,     0,     0,     0,
       0,     0,   375,    35
};

/* YYPGOTO[NTERM-NUM].  */
static const yytype_int16 yypgoto[] =
{
    -872,  -872,  -872,  1008,  -872,    -6,  -872,  -872,  -872,  -872,
    -872,  -872,  -872,  -872,  -872,  -872,  -872,  -872,  -872,  -872,
     975,  -872,   974,  -872,   303,   456,  -338,  -872,  -872,  -872,
    -872,  -872,  -872,  -872,  -872,  -872,  -872,  -872,  -872,  -872,
    -872,  -872,  -872,  -872,  -872,  -476,  -872,  -872,  -872,  -872,
    -872,  -872,  -872,  -872,  -872,  -872,  -872,  -872,  -872,  -872,
    -872,  -872,  -872,  -872,  -872,  -872,  -872,  -872,  -872,  -872,
    -872,  -872,  -872,  -872,  -872,  -872,  -295,  -869,  -871,  -872,
    -872,  -872,   581,  -186,   491,   242,  -585,  -678,  -639,   120,
    -872,  -872,  -872,  -872,  -872,  -872,  -872,  -872,  -872,  -872,
    -872,  -872,  -872,  -872,  -872,  -872,  -872,  -872,  -872,  -872,
    -872,  -872,  -872,  -872,  -872,  -872,  -872,  -872,  -872,  -872,
    -872,  -872,  -872,  -872,  -674,  -809,  -150,  -872,  -872,  -872,
    -872,  -872,  -872,  -872,  -872,  -872,  -872,  -872,  -872,  -872,
    -395,  -872,  -872,  -872,  -872,  -292,   618,  -581,  -872,   623,
    -291,  -872,  -466,  -511,  -872,  -872,  -708,  -492,  -472,  -753,
    -580,   518,  -872,  -872,  -515,  -872,  -449,   385,  -362,   295,
     504
};

/* YYDEFGOTO[NTERM-NUM].  */
static const yytype_int16 yydefgoto[] =
{
       0,     1,     2,    15,    16,    32,    17,    18,   354,    19,
      60,    20,    21,    22,    23,    24,    25,    26,    27,    51,
      52,    53,    54,    55,   453,   700,   463,   298,   362,   363,
     364,   575,   366,   367,   368,   369,   370,   371,   372,   374,
     375,   376,   377,   580,   299,   624,   300,   581,   301,   582,
     302,   583,   303,   584,   304,   585,   305,   586,   306,   307,
     308,   309,   513,   310,   426,   521,   311,   312,   313,   314,
     315,   316,   317,   318,   319,   429,   430,   829,   830,   536,
    1014,   320,   433,   540,   437,   793,   794,   861,   560,   859,
     321,   386,   387,   389,   388,   396,   399,  1010,   322,   390,
     391,   393,   392,   397,   323,   394,   324,   398,   325,   395,
     326,   327,   328,   329,   330,   331,   332,   333,   334,   335,
     336,   892,   337,   338,   951,   899,   770,   339,   340,   341,
     342,   343,   561,   344,   801,   345,   400,   346,   347,   497,
     498,   348,   401,   402,   349,   625,   414,   626,   415,   416,
     417,   627,   662,   629,   668,   630,   631,   654,   655,   664,
     795,   633,   418,   634,   635,   636,   656,   657,   658,   738,
     551
};

/* YYTABLE[YYPACT[STATE-NUM]] -- What to do in state STATE-NUM.  If
   positive, shift that token.  If negative, reduce the rule whose
   number is the opposite.  If YYTABLE_NINF, syntax error.  */
static const yytype_int16 yytable[] =
{
      34,   665,   826,   459,    38,   663,   667,   499,    42,   456,
     457,   733,   632,   632,   937,   939,   419,   938,   421,    33,
     422,   423,   424,   661,   431,   427,   403,   729,   730,   638,
     727,   464,   465,   900,   467,     3,   469,   470,   628,   628,
     653,    35,   660,   728,   823,   824,    36,   744,   653,   628,
     673,   768,   351,   727,   456,   457,   653,   578,    37,    28,
      29,    30,    62,    63,   456,   457,   792,   666,   727,   456,
     457,   733,   744,   456,   457,   403,   456,   457,   518,   519,
     451,   860,   562,    39,   947,   948,   949,   609,   610,   452,
     632,   632,   404,    40,   405,   406,   407,   408,   409,    41,
     579,   698,   606,    57,   615,   616,   707,   708,  1013,  1017,
     699,  1016,   863,   745,    58,   609,   628,   628,    59,   868,
     832,   833,   834,    61,   836,   837,   838,   839,   840,   934,
     677,   678,   679,   680,   533,    64,   456,   457,   745,   534,
     609,   610,   637,   637,   611,   612,   613,   614,   609,   555,
     456,   457,   864,   611,   612,   613,   614,   615,   616,   869,
      65,   742,    66,   756,   639,   640,   641,   642,   643,   644,
     645,   646,   647,   648,   649,   650,   936,  1076,   639,   640,
     641,   642,   643,   644,   645,   646,   647,   648,   649,   650,
     587,   588,   589,   590,   537,   538,   609,   610,    67,   609,
     597,   456,   457,   600,   749,   609,   696,   573,   574,   862,
     862,    68,   611,   612,   613,   614,   615,   862,   670,   671,
     637,   637,   659,   952,   953,  1012,    43,   873,   874,   352,
     672,   353,   697,   355,   875,   876,   356,   702,   703,   704,
     665,   744,   705,   825,   663,   676,   357,   831,   541,   542,
     358,   552,   553,   554,   359,   556,   557,   558,   737,   360,
     361,   684,   365,    44,    45,    46,    47,    48,    49,    50,
     851,   573,   574,   811,   602,   373,   378,   603,   820,   821,
     604,   605,   972,   379,   653,   653,   822,   822,   380,   746,
     706,   381,   382,   709,   710,   711,   609,   610,   405,   406,
     407,   408,   409,   595,   721,   383,   666,   599,   384,   611,
     612,   613,   614,   615,   616,   385,   734,   735,   896,   897,
     898,   456,   457,   736,   961,   609,   963,   964,   562,   420,
     772,   410,   411,   412,   425,   428,   743,   973,   611,   612,
     613,   614,   615,   616,   445,   432,   446,   436,   444,   639,
     640,   641,   642,   643,   644,   645,   646,   647,   648,   649,
     650,   743,   447,   448,   802,   803,   804,   665,   458,   449,
     743,   663,  1047,    31,   800,   940,   559,   450,   458,   816,
     410,   411,   412,   736,   462,   819,  1001,   458,   476,   933,
     458,   468,   617,   618,   619,   958,   959,   562,   562,   562,
     771,   562,   562,   562,   562,   562,   473,   413,   932,   490,
     474,   475,   845,   846,   653,   628,   977,   621,   822,   622,
     617,   618,   619,   477,   787,   788,   789,   790,   478,   562,
     804,   797,   500,   666,   935,   479,   562,   988,   480,   563,
     848,   849,   496,   504,   501,   617,   618,   619,   505,   506,
     458,   520,   651,   617,   618,   619,   514,   515,  1067,   535,
     914,   516,   517,   665,   458,   565,   651,   663,  1015,  1018,
     621,   539,   622,   566,   652,   507,   508,   509,   510,   511,
     512,   772,  1029,  1030,   522,   564,   568,   567,   652,   850,
     569,   852,   570,   571,   591,   572,   576,   594,   804,   403,
     865,   617,   618,   619,   617,   618,   619,   593,   925,   926,
     617,   618,   619,   577,   592,   458,   596,   601,   405,   406,
     407,   408,   409,   598,   607,   608,  1009,   674,   772,   666,
     743,   622,   690,   691,   692,   456,   457,   694,   716,   609,
     610,   695,   712,   957,   713,   891,   714,   715,  1085,  1086,
     717,   771,   611,   612,   613,   614,   615,   616,   693,   562,
     718,   909,   910,   911,   912,   719,   915,   722,   917,   723,
     725,   726,   731,   920,   732,   922,    44,    45,    46,    47,
      48,    49,    50,  1061,  1062,  1063,  1064,  1065,   739,   740,
    1068,  1069,  1070,  1071,  1072,  1073,   609,  1075,   771,   741,
     609,   617,   618,   619,   750,   609,   610,   757,   954,   611,
     612,   613,   614,   611,   612,   613,   614,   960,   611,   612,
     613,   614,   966,   751,   772,   752,   621,   753,   622,   609,
     617,   618,   619,   754,   755,   458,   759,   651,   758,   760,
    1038,    -3,   611,   612,   613,   614,   761,    43,   762,   562,
     981,   982,   983,   763,   764,   621,   987,   622,   989,   652,
     772,   765,   772,   772,   772,   766,   454,   455,   767,   460,
     461,   769,   774,  1000,   466,   777,  1003,  1004,  1005,   471,
     472,   775,  1008,   773,    44,    45,    46,    47,    48,    49,
      50,   776,   778,   901,   771,   779,  1084,   780,   781,   782,
     783,   784,   785,   786,  1031,   543,   544,   545,   546,   547,
     548,   549,   550,   791,   798,   772,   772,   796,   799,   807,
     772,   772,   808,   809,   805,  1099,   806,   835,   810,  1051,
     771,   812,   771,   771,   771,   813,   814,   815,  1108,   818,
     944,   841,   456,   457,   772,   842,   609,   610,   843,   847,
     853,   854,   880,  1122,   855,   856,   858,   866,   877,   878,
     879,   867,   870,   615,   616,   871,   872,   844,   881,  1133,
     639,   640,   641,   642,   643,   644,   645,   646,   647,   648,
     649,   650,  1090,   882,   883,   771,   771,  1093,   884,  1095,
     771,   771,   885,   886,   887,   890,   888,   889,   893,   902,
     903,   894,  1105,   895,   410,   411,   412,   904,   928,  1109,
    1110,   905,   906,   907,   771,   908,   913,   916,   918,  1118,
    1119,  1120,   919,   921,  1123,  1124,   927,   923,   440,  1126,
     924,   828,   945,  1128,   950,   942,  1023,   941,  1132,   929,
     930,   931,   943,   946,   617,   618,   619,   965,   967,   458,
     955,   620,   639,   640,   641,   642,   643,   644,   645,   646,
     647,   648,   649,   650,   968,   969,   970,   971,   974,   621,
     975,   622,  1052,   623,  1054,  1055,  1056,   481,   482,   483,
     484,   485,   486,   487,   488,   976,   978,   491,   492,   979,
     494,   495,   827,   828,   980,   984,   956,   828,   985,   990,
     986,   617,   618,   619,   992,   617,   618,   619,   434,   435,
     617,   618,   619,   991,   993,   438,   439,   994,   995,   996,
     441,   442,   443,  1011,   997,   998,   999,  1091,  1092,   523,
    1019,  1007,  1096,  1097,   617,   618,   619,   524,  1002,  1020,
     525,  1006,   526,   527,  1021,  1024,  1022,  1025,  1026,  1027,
     528,  1028,  1032,  1037,  1045,  1033,  1114,  1034,  1035,  1049,
    1036,   529,   530,   531,   532,  1039,  1040,  1041,  1043,  1044,
    1046,  1042,  1048,  1059,  1058,   489,  1050,  1053,  1060,   493,
       4,     5,     6,     7,     8,     9,    10,    11,    12,    13,
      14,  1057,  1066,  1074,  1079,  1077,  1078,  1081,  1080,  1082,
    1083,  1087,  1088,  1089,  1094,  1098,  1101,  1102,  1100,  1106,
    1107,  1111,  1103,  1112,  1104,  1113,  1116,  1115,  1117,  1121,
    1125,  1127,  1129,  1130,    56,  1131,    69,   350,   701,   857,
     962,   681,   682,   683,   503,   669,   817,   748,   502,   675,
       0,     0,     0,     0,   685,   686,     0,   687,   688,   689,
       0,   617,   618,   619,     0,     0,   458,     0,   651,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,   621,     0,   622,     0,
     652,     0,     0,     0,     0,     0,   720,     0,     0,     0,
     724,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
     747,    70,    71,    72,    73,    74,    75,    76,    77,    78,
      79,    80,    81,    82,    83,    84,    85,    86,    87,    88,
      89,    90,    91,    92,    93,    94,    95,    96,    97,    98,
      99,   100,   101,   102,   103,   104,   105,   106,   107,   108,
     109,   110,   111,   112,   113,   114,   115,   116,   117,   118,
     119,   120,   121,   122,   123,   124,   125,   126,   127,   128,
     129,   130,   131,   132,   133,   134,   135,   136,   137,   138,
     139,   140,   141,   142,   143,   144,   145,   146,   147,   148,
     149,   150,   151,   152,   153,   154,   155,   156,   157,   158,
     159,   160,   161,   162,   163,   164,   165,   166,   167,   168,
     169,   170,   171,   172,   173,   174,   175,   176,   177,   178,
     179,   180,   181,   182,   183,   184,   185,   186,   187,   188,
     189,   190,   191,   192,   193,   194,   195,   196,   197,   198,
     199,   200,   201,   202,   203,   204,   205,   206,   207,   208,
     209,   210,   211,   212,   213,   214,   215,   216,   217,   218,
     219,   220,   221,   222,   223,   224,   225,   226,   227,   228,
     229,   230,   231,   232,   233,   234,   235,   236,   237,   238,
     239,   240,   241,   242,   243,   244,   245,   246,   247,   248,
     249,   250,   251,   252,   253,   254,   255,   256,   257,   258,
     259,   260,   261,   262,   263,   264,   265,   266,   267,   268,
     269,   270,   271,   272,   273,   274,   275,   276,   277,   278,
     279,   280,   281,   282,   283,   284,   285,   286,   287,   288,
     289,   290,   291,   292,   293,   294,   295,   296,   297
};

static const yytype_int16 yycheck[] =
{
       6,   516,   755,   365,    10,   516,   517,   402,    14,     3,
       4,     5,   504,   505,   885,   886,   307,   886,   309,   319,
     311,   312,   313,   515,   319,   316,     7,   607,   608,   505,
     317,   369,   370,   842,   372,     0,   374,   375,   504,   505,
     506,   319,   514,   330,   752,   753,   319,   628,   514,   515,
     522,   690,    58,   317,     3,     4,   522,     6,   319,     3,
       4,     5,     7,     8,     3,     4,   330,   516,   317,     3,
       4,     5,   653,     3,     4,     7,     3,     4,   288,   289,
     314,   330,   444,   319,   893,   894,   895,     7,     8,   323,
     582,   583,    24,   319,    26,    27,    28,    29,    30,   319,
     462,   314,   497,     3,    24,    25,   582,   583,   979,   980,
     323,   980,   790,   628,   318,     7,   582,   583,     8,   797,
     759,   760,   761,     7,   763,   764,   765,   766,   767,   882,
     292,   293,   294,   295,   429,     8,     3,     4,   653,   430,
       7,     8,   504,   505,    20,    21,    22,    23,     7,   440,
       3,     4,   791,    20,    21,    22,    23,    24,    25,   798,
       7,   627,     7,   674,    31,    32,    33,    34,    35,    36,
      37,    38,    39,    40,    41,    42,   884,  1048,    31,    32,
      33,    34,    35,    36,    37,    38,    39,    40,    41,    42,
     481,   482,   483,   484,   286,   287,     7,     8,     7,     7,
     491,     3,     4,   494,   653,     7,   568,     3,     4,   789,
     790,   322,    20,    21,    22,    23,    24,   797,   290,   291,
     582,   583,   513,   897,   898,   978,     6,   807,   808,   320,
     521,   319,   570,   320,   814,   815,   320,   575,   576,   577,
     755,   822,   580,   754,   755,   536,   320,   758,   434,   435,
     320,   437,   438,   439,   320,   441,   442,   443,   620,   320,
     320,   552,   325,    43,    44,    45,    46,    47,    48,    49,
     781,     3,     4,     5,   332,   325,   325,   335,   750,   751,
     338,   339,   921,   313,   750,   751,   752,   753,   312,   651,
     581,   325,   325,   584,   585,   586,     7,     8,    26,    27,
      28,    29,    30,   489,   596,   325,   755,   493,   325,    20,
      21,    22,    23,    24,    25,   325,   310,   311,   307,   308,
     309,     3,     4,   317,   909,     7,   911,   912,   690,   325,
     692,   312,   313,   314,   325,   325,   628,   922,    20,    21,
      22,    23,    24,    25,   318,   325,   352,   325,   325,    31,
      32,    33,    34,    35,    36,    37,    38,    39,    40,    41,
      42,   653,     8,     6,   726,   727,   728,   882,   317,     6,
     662,   882,  1011,   317,   313,   886,   306,     6,   317,   741,
     312,   313,   314,   317,   324,   747,   966,   317,   316,   881,
     317,   315,   312,   313,   314,   906,   907,   759,   760,   761,
     692,   763,   764,   765,   766,   767,   315,   339,   880,   332,
     318,   318,   774,   775,   880,   881,   927,   337,   884,   339,
     312,   313,   314,   316,   716,   717,   718,   719,   316,   791,
     792,   723,   331,   882,   883,   316,   798,   948,   316,   445,
     778,   779,   325,   318,   331,   312,   313,   314,   318,   318,
     317,   325,   319,   312,   313,   314,   318,   318,  1038,   319,
     319,   318,   318,   978,   317,   320,   319,   978,   979,   980,
     337,   325,   339,   319,   341,   296,   297,   298,   299,   300,
     301,   843,   993,   994,   318,   318,   321,   319,   341,   780,
     314,   782,   318,   318,   332,   318,   318,   328,   860,     7,
     792,   312,   313,   314,   312,   313,   314,   335,   870,   871,
     312,   313,   314,   318,   332,   317,   333,   337,    26,    27,
      28,    29,    30,   335,   312,   312,   975,   318,   890,   978,
     822,   339,   325,   325,   318,     3,     4,     6,   333,     7,
       8,     6,   318,   905,   318,   836,   318,   318,  1059,  1060,
     333,   843,    20,    21,    22,    23,    24,    25,   564,   921,
     333,   853,   854,   855,   856,   333,   858,   318,   860,   333,
     318,   333,   331,   864,   331,   867,    43,    44,    45,    46,
      47,    48,    49,  1032,  1033,  1034,  1035,  1036,   331,   331,
    1039,  1040,  1041,  1042,  1043,  1044,     7,  1046,   890,   319,
       7,   312,   313,   314,   318,     7,     8,   320,   899,    20,
      21,    22,    23,    20,    21,    22,    23,   908,    20,    21,
      22,    23,   914,   318,   986,   318,   337,   318,   339,     7,
     312,   313,   314,   318,   318,   317,   325,   319,   318,   325,
    1002,     0,    20,    21,    22,    23,   325,     6,   318,  1011,
     941,   942,   943,   325,   325,   337,   947,   339,   949,   341,
    1022,   325,  1024,  1025,  1026,   325,   363,   364,   325,   366,
     367,   336,   321,   965,   371,   314,   968,   969,   970,   376,
     377,   321,   974,   318,    43,    44,    45,    46,    47,    48,
      49,   318,   318,   843,   986,   318,  1058,   318,   318,   318,
     332,   332,   335,   328,   995,   278,   279,   280,   281,   282,
     283,   284,   285,   325,   325,  1077,  1078,   335,   335,   312,
    1082,  1083,   312,   320,   340,  1087,   340,   332,   320,  1021,
    1022,   320,  1024,  1025,  1026,   320,   312,   312,  1100,   320,
     890,   325,     3,     4,  1106,   325,     7,     8,   318,     6,
     333,   333,   318,  1115,   333,   333,   330,   334,   320,   320,
     320,   333,   333,    24,    25,   330,   334,   773,   318,  1131,
      31,    32,    33,    34,    35,    36,    37,    38,    39,    40,
      41,    42,  1074,   318,   318,  1077,  1078,  1079,   318,  1081,
    1082,  1083,   318,   318,   325,   333,   325,   325,   325,   318,
     320,   325,  1094,   325,   312,   313,   314,   320,   340,  1101,
    1102,   321,   318,   318,  1106,   318,   334,   334,   334,  1111,
    1112,  1113,   334,   318,  1116,  1117,   318,   334,   337,  1121,
     332,   304,   318,  1125,   325,   332,   986,   335,  1130,   340,
     340,   340,   332,   332,   312,   313,   314,   318,   331,   317,
     337,   319,    31,    32,    33,    34,    35,    36,    37,    38,
      39,    40,    41,    42,   318,   318,   318,   318,   318,   337,
     333,   339,  1022,   341,  1024,  1025,  1026,   386,   387,   388,
     389,   390,   391,   392,   393,   334,   318,   396,   397,   318,
     399,   400,   303,   304,   318,   334,   902,   304,   332,   305,
     333,   312,   313,   314,   318,   312,   313,   314,   327,   328,
     312,   313,   314,   333,   318,   334,   335,   318,   318,   334,
     339,   340,   341,   318,   334,   334,   334,  1077,  1078,   294,
     318,   334,  1082,  1083,   312,   313,   314,   302,   331,   318,
     305,   332,   307,   308,   318,   318,   333,   318,   318,   313,
     315,     6,   318,   320,   334,   318,  1106,   318,   318,   335,
     318,   326,   327,   328,   329,   318,   318,   318,   318,   318,
     318,   333,   318,   318,   321,   394,   332,   334,   318,   398,
       9,    10,    11,    12,    13,    14,    15,    16,    17,    18,
      19,   334,   331,   318,   318,   333,   333,   318,   334,   318,
     318,   331,   331,   334,   318,   318,   318,   318,   331,   318,
       6,   318,   334,   318,   334,   318,   318,   321,   318,   318,
     318,   318,     6,   318,    16,   321,    51,    53,   572,   787,
     910,   540,   541,   542,   416,   517,   741,   652,   415,   535,
      -1,    -1,    -1,    -1,   553,   554,    -1,   556,   557,   558,
      -1,   312,   313,   314,    -1,    -1,   317,    -1,   319,    -1,
      -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
      -1,    -1,    -1,    -1,    -1,    -1,   337,    -1,   339,    -1,
     341,    -1,    -1,    -1,    -1,    -1,   595,    -1,    -1,    -1,
     599,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
      -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
      -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
      -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
      -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
     319,    50,    51,    52,    53,    54,    55,    56,    57,    58,
      59,    60,    61,    62,    63,    64,    65,    66,    67,    68,
      69,    70,    71,    72,    73,    74,    75,    76,    77,    78,
      79,    80,    81,    82,    83,    84,    85,    86,    87,    88,
      89,    90,    91,    92,    93,    94,    95,    96,    97,    98,
      99,   100,   101,   102,   103,   104,   105,   106,   107,   108,
     109,   110,   111,   112,   113,   114,   115,   116,   117,   118,
     119,   120,   121,   122,   123,   124,   125,   126,   127,   128,
     129,   130,   131,   132,   133,   134,   135,   136,   137,   138,
     139,   140,   141,   142,   143,   144,   145,   146,   147,   148,
     149,   150,   151,   152,   153,   154,   155,   156,   157,   158,
     159,   160,   161,   162,   163,   164,   165,   166,   167,   168,
     169,   170,   171,   172,   173,   174,   175,   176,   177,   178,
     179,   180,   181,   182,   183,   184,   185,   186,   187,   188,
     189,   190,   191,   192,   193,   194,   195,   196,   197,   198,
     199,   200,   201,   202,   203,   204,   205,   206,   207,   208,
     209,   210,   211,   212,   213,   214,   215,   216,   217,   218,
     219,   220,   221,   222,   223,   224,   225,   226,   227,   228,
     229,   230,   231,   232,   233,   234,   235,   236,   237,   238,
     239,   240,   241,   242,   243,   244,   245,   246,   247,   248,
     249,   250,   251,   252,   253,   254,   255,   256,   257,   258,
     259,   260,   261,   262,   263,   264,   265,   266,   267,   268,
     269,   270,   271,   272,   273,   274,   275,   276,   277
};

/* YYSTOS[STATE-NUM] -- The symbol kind of the accessing symbol of
   state STATE-NUM.  */
static const yytype_int16 yystos[] =
{
       0,   343,   344,     0,     9,    10,    11,    12,    13,    14,
      15,    16,    17,    18,    19,   345,   346,   348,   349,   351,
     353,   354,   355,   356,   357,   358,   359,   360,     3,     4,
       5,   317,   347,   319,   347,   319,   319,   319,   347,   319,
     319,   319,   347,     6,    43,    44,    45,    46,    47,    48,
      49,   361,   362,   363,   364,   365,   345,     3,   318,     8,
     352,     7,     7,     8,     8,     7,     7,     7,   322,   362,
      50,    51,    52,    53,    54,    55,    56,    57,    58,    59,
      60,    61,    62,    63,    64,    65,    66,    67,    68,    69,
      70,    71,    72,    73,    74,    75,    76,    77,    78,    79,
      80,    81,    82,    83,    84,    85,    86,    87,    88,    89,
      90,    91,    92,    93,    94,    95,    96,    97,    98,    99,
     100,   101,   102,   103,   104,   105,   106,   107,   108,   109,
     110,   111,   112,   113,   114,   115,   116,   117,   118,   119,
     120,   121,   122,   123,   124,   125,   126,   127,   128,   129,
     130,   131,   132,   133,   134,   135,   136,   137,   138,   139,
     140,   141,   142,   143,   144,   145,   146,   147,   148,   149,
     150,   151,   152,   153,   154,   155,   156,   157,   158,   159,
     160,   161,   162,   163,   164,   165,   166,   167,   168,   169,
     170,   171,   172,   173,   174,   175,   176,   177,   178,   179,
     180,   181,   182,   183,   184,   185,   186,   187,   188,   189,
     190,   191,   192,   193,   194,   195,   196,   197,   198,   199,
     200,   201,   202,   203,   204,   205,   206,   207,   208,   209,
     210,   211,   212,   213,   214,   215,   216,   217,   218,   219,
     220,   221,   222,   223,   224,   225,   226,   227,   228,   229,
     230,   231,   232,   233,   234,   235,   236,   237,   238,   239,
     240,   241,   242,   243,   244,   245,   246,   247,   248,   249,
     250,   251,   252,   253,   254,   255,   256,   257,   258,   259,
     260,   261,   262,   263,   264,   265,   266,   267,   268,   269,
     270,   271,   272,   273,   274,   275,   276,   277,   369,   386,
     388,   390,   392,   394,   396,   398,   400,   401,   402,   403,
     405,   408,   409,   410,   411,   412,   413,   414,   415,   416,
     423,   432,   440,   446,   448,   450,   452,   453,   454,   455,
     456,   457,   458,   459,   460,   461,   462,   464,   465,   469,
     470,   471,   472,   473,   475,   477,   479,   480,   483,   486,
     364,   347,   320,   319,   350,   320,   320,   320,   320,   320,
     320,   320,   370,   371,   372,   325,   374,   375,   376,   377,
     378,   379,   380,   325,   381,   382,   383,   384,   325,   313,
     312,   325,   325,   325,   325,   325,   433,   434,   436,   435,
     441,   442,   444,   443,   447,   451,   437,   445,   449,   438,
     478,   484,   485,     7,    24,    26,    27,    28,    29,    30,
     312,   313,   314,   339,   488,   490,   491,   492,   504,   492,
     325,   492,   492,   492,   492,   325,   406,   492,   325,   417,
     418,   418,   325,   424,   424,   424,   325,   426,   424,   424,
     426,   424,   424,   424,   325,   318,   347,     8,     6,     6,
       6,   314,   323,   366,   366,   366,     3,     4,   317,   510,
     366,   366,   324,   368,   368,   368,   366,   368,   315,   368,
     368,   366,   366,   315,   318,   318,   316,   316,   316,   316,
     316,   426,   426,   426,   426,   426,   426,   426,   426,   424,
     332,   426,   426,   424,   426,   426,   325,   481,   482,   482,
     331,   331,   491,   488,   318,   318,   318,   296,   297,   298,
     299,   300,   301,   404,   318,   318,   318,   318,   288,   289,
     325,   407,   318,   294,   302,   305,   307,   308,   315,   326,
     327,   328,   329,   418,   492,   319,   421,   286,   287,   325,
     425,   425,   425,   278,   279,   280,   281,   282,   283,   284,
     285,   512,   425,   425,   425,   492,   425,   425,   425,   306,
     430,   474,   510,   347,   318,   320,   319,   319,   321,   314,
     318,   318,   318,     3,     4,   373,   318,   318,     6,   510,
     385,   389,   391,   393,   395,   397,   399,   492,   492,   492,
     492,   332,   332,   335,   328,   425,   333,   492,   335,   425,
     492,   337,   332,   335,   338,   339,   482,   312,   312,     7,
       8,    20,    21,    22,    23,    24,    25,   312,   313,   314,
     319,   337,   339,   341,   387,   487,   489,   493,   494,   495,
     497,   498,   499,   503,   505,   506,   507,   510,   387,    31,
      32,    33,    34,    35,    36,    37,    38,    39,    40,    41,
      42,   319,   341,   494,   499,   500,   508,   509,   510,   492,
     500,   499,   494,   495,   501,   506,   508,   495,   496,   503,
     290,   291,   492,   500,   318,   512,   492,   292,   293,   294,
     295,   426,   426,   426,   492,   426,   426,   426,   426,   426,
     325,   325,   318,   347,     6,     6,   510,   368,   314,   323,
     367,   367,   368,   368,   368,   368,   492,   387,   387,   492,
     492,   492,   318,   318,   318,   318,   333,   333,   333,   333,
     426,   487,   318,   333,   426,   318,   333,   317,   330,   502,
     502,   331,   331,     5,   310,   311,   317,   510,   511,   331,
     331,   319,   494,   487,   489,   506,   510,   319,   509,   508,
     318,   318,   318,   318,   318,   318,   495,   320,   318,   325,
     325,   325,   318,   325,   325,   325,   325,   325,   430,   336,
     468,   487,   510,   318,   321,   321,   318,   314,   318,   318,
     318,   318,   318,   332,   332,   335,   328,   487,   487,   487,
     487,   325,   330,   427,   428,   502,   335,   487,   325,   335,
     313,   476,   510,   510,   510,   340,   340,   312,   312,   320,
     320,     5,   320,   320,   312,   312,   510,   511,   320,   510,
     500,   500,   494,   498,   498,   495,   501,   303,   304,   419,
     420,   495,   430,   430,   430,   332,   430,   430,   430,   430,
     430,   325,   325,   318,   347,   510,   510,     6,   368,   368,
     492,   495,   492,   333,   333,   333,   333,   427,   330,   431,
     330,   429,   502,   429,   430,   487,   334,   333,   429,   430,
     333,   330,   334,   502,   502,   502,   502,   320,   320,   320,
     318,   318,   318,   318,   318,   318,   318,   325,   325,   325,
     333,   492,   463,   325,   325,   325,   307,   308,   309,   467,
     467,   468,   318,   320,   320,   321,   318,   318,   318,   487,
     487,   487,   487,   334,   319,   487,   334,   487,   334,   334,
     492,   318,   487,   334,   332,   510,   510,   318,   340,   340,
     340,   340,   500,   499,   501,   508,   498,   420,   419,   420,
     495,   335,   332,   332,   468,   318,   332,   467,   467,   467,
     325,   466,   466,   466,   492,   337,   347,   510,   495,   495,
     492,   428,   431,   428,   428,   318,   487,   331,   318,   318,
     318,   318,   430,   428,   318,   333,   334,   495,   318,   318,
     318,   492,   492,   492,   334,   332,   333,   492,   495,   492,
     305,   333,   318,   318,   318,   318,   334,   334,   334,   334,
     487,   502,   331,   487,   487,   487,   332,   334,   487,   508,
     439,   318,   501,   420,   422,   495,   419,   420,   495,   318,
     318,   318,   333,   468,   318,   318,   318,   313,     6,   495,
     495,   492,   318,   318,   318,   318,   318,   320,   510,   318,
     318,   318,   333,   318,   318,   334,   318,   430,   318,   335,
     332,   487,   468,   334,   468,   468,   468,   334,   321,   318,
     318,   508,   508,   508,   508,   508,   331,   502,   508,   508,
     508,   508,   508,   508,   318,   508,   420,   333,   333,   318,
     334,   318,   318,   318,   510,   495,   495,   331,   331,   334,
     487,   468,   468,   487,   318,   487,   468,   468,   318,   510,
     331,   318,   318,   334,   334,   487,   318,     6,   510,   487,
     487,   318,   318,   318,   468,   321,   318,   318,   487,   487,
     487,   318,   510,   487,   487,   318,   487,   318,   487,     6,
     318,   321,   487,   510
};

/* YYR1[RULE-NUM] -- Symbol kind of the left-hand side of rule RULE-NUM.  */
static const yytype_int16 yyr1[] =
{
       0,   342,   344,   343,   345,   345,   346,   346,   346,   346,
     346,   346,   346,   346,   346,   346,   346,   347,   347,   347,
     347,   348,   349,   350,   350,   352,   351,   353,   354,   354,
     355,   356,   357,   358,   359,   360,   361,   361,   361,   361,
     361,   361,   361,   362,   362,   363,   363,   364,   364,   364,
     364,   364,   364,   364,   364,   364,   365,   366,   366,   367,
     367,   368,   368,   369,   370,   369,   371,   369,   372,   369,
     373,   369,   374,   369,   375,   369,   376,   369,   377,   369,
     378,   369,   369,   379,   369,   369,   369,   369,   369,   369,
     369,   380,   369,   369,   369,   369,   369,   381,   369,   369,
     382,   369,   369,   383,   369,   384,   369,   369,   385,   369,
     386,   386,   387,   387,   389,   388,   391,   390,   393,   392,
     395,   394,   397,   396,   399,   398,   400,   400,   400,   400,
     400,   400,   400,   400,   401,   401,   401,   401,   401,   401,
     401,   401,   401,   401,   401,   401,   401,   401,   402,   402,
     402,   402,   402,   402,   403,   403,   403,   403,   403,   403,
     403,   403,   403,   403,   403,   403,   403,   403,   403,   403,
     403,   403,   403,   403,   403,   403,   403,   403,   403,   403,
     403,   404,   404,   404,   404,   404,   404,   405,   405,   405,
     406,   406,   407,   407,   408,   408,   408,   408,   408,   408,
     408,   408,   408,   408,   408,   408,   408,   408,   408,   408,
     409,   409,   409,   409,   409,   410,   410,   411,   411,   412,
     412,   412,   412,   413,   413,   413,   413,   413,   413,   413,
     413,   413,   413,   414,   415,   415,   416,   416,   416,   416,
     416,   416,   416,   416,   416,   416,   416,   416,   416,   416,
     416,   416,   416,   416,   416,   416,   416,   416,   416,   416,
     416,   416,   416,   416,   416,   416,   416,   417,   417,   417,
     417,   417,   417,   417,   417,   417,   417,   418,   418,   419,
     420,   421,   422,   423,   423,   423,   423,   423,   423,   423,
     423,   423,   423,   423,   423,   423,   423,   423,   424,   424,
     425,   425,   425,   425,   426,   427,   428,   428,   429,   429,
     430,   431,   431,   433,   432,   434,   432,   435,   432,   436,
     432,   437,   432,   438,   439,   432,   441,   440,   442,   440,
     443,   440,   444,   440,   445,   440,   447,   446,   449,   448,
     451,   450,   452,   452,   452,   452,   452,   452,   452,   452,
     452,   452,   452,   453,   453,   453,   453,   453,   453,   453,
     453,   453,   453,   453,   454,   454,   454,   454,   454,   454,
     454,   454,   454,   454,   454,   455,   456,   457,   458,   458,
     458,   459,   460,   461,   462,   462,   463,   462,   464,   464,
     464,   465,   466,   466,   467,   467,   467,   468,   468,   469,
     470,   470,   470,   470,   470,   470,   470,   470,   470,   470,
     470,   470,   471,   472,   472,   472,   473,   474,   474,   475,
     476,   476,   476,   478,   477,   479,   479,   479,   480,   480,
     480,   480,   480,   480,   480,   480,   480,   480,   480,   480,
     481,   481,   481,   481,   482,   482,   484,   483,   485,   483,
     486,   487,   487,   487,   487,   488,   488,   488,   488,   489,
     490,   490,   490,   490,   490,   491,   491,   492,   492,   493,
     493,   493,   493,   494,   494,   495,   495,   496,   496,   497,
     497,   498,   498,   499,   499,   499,   500,   500,   500,   501,
     501,   501,   502,   502,   502,   503,   503,   504,   504,   505,
     505,   506,   506,   507,   507,   507,   507,   507,   507,   507,
     508,   508,   508,   508,   508,   509,   509,   509,   509,   509,
     509,   509,   509,   509,   509,   509,   509,   510,   510,   510,
     510,   511,   511,   512,   512,   512,   512,   512,   512,   512,
     512
};

/* YYR2[RULE-NUM] -- Number of symbols on the right-hand side of rule RULE-NUM.  */
static const yytype_int8 yyr2[] =
{
       0,     2,     0,     3,     0,     2,     1,     1,     1,     1,
       1,     1,     1,     1,     1,     1,     1,     1,     1,     2,
       1,     6,    11,     3,     0,     0,     4,     4,     4,     4,
       4,     2,     2,    10,    10,    23,     1,     1,     1,     1,
       1,     1,     1,     0,     2,     2,     1,     2,     2,     2,
       2,     2,     2,     2,     2,     1,     2,     2,     1,     2,
       1,     2,     2,     1,     0,     5,     0,     7,     0,     7,
       0,     5,     0,     5,     0,     5,     0,     3,     0,     3,
       0,     3,     1,     0,     3,     1,     1,     1,     1,     1,
       1,     0,     3,     1,     1,     1,     1,     0,     3,     1,
       0,     3,     1,     0,     3,     0,     3,     1,     0,     5,
       3,     3,     1,     1,     0,     5,     0,     5,     0,     5,
       0,    11,     0,    13,     0,    13,     1,     1,     1,     1,
       1,     1,     4,     4,     1,     1,     1,     1,     1,     1,
       1,     1,     1,     1,     1,     1,     1,     1,     1,     1,
       1,     1,     1,     1,     1,     1,     1,     1,     1,     1,
       1,     1,     1,     1,     1,     1,     1,     1,     1,     1,
       1,     1,     1,     1,     1,     1,     1,     1,     1,     1,
       1,     1,     1,     1,     1,     1,     1,     4,     8,     6,
       2,     2,     2,     2,     1,     1,     1,     1,     1,     1,
       1,     1,     1,     1,     1,     1,     1,     1,     1,     1,
       1,     1,     1,     1,     1,     1,     1,     1,     1,     8,
       8,     8,    10,     1,     1,     1,     1,     1,     1,     1,
       1,     1,     1,     4,     1,     1,     1,     1,     1,     1,
       1,     1,     1,     1,     1,     1,     1,     1,     1,     1,
       1,     1,     1,     1,     1,     1,     1,     1,     1,     1,
       1,     1,     1,     1,     1,     1,     1,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     0,     2,     1,
       1,     3,     1,     5,    10,    12,    10,    10,     8,    10,
      10,     8,     8,     6,     8,     6,     6,     4,     2,     2,
       2,     2,     2,     2,     2,     1,     1,     2,     1,     2,
       1,     8,     9,     0,    12,     0,    12,     0,    12,     0,
      12,     0,    12,     0,     0,    12,     0,    12,     0,    12,
       0,    12,     0,    12,     0,    12,     0,    17,     0,    17,
       0,     9,     1,     1,     1,     1,     1,     1,     1,     1,
       1,     1,     1,     1,     1,     1,     1,     1,     1,     1,
       1,     1,     1,     1,     1,     1,     1,     1,     1,     1,
       1,     1,     1,     1,     1,    20,    13,    16,     1,     1,
       1,     1,     1,     1,     9,    16,     0,    17,     1,     1,
       1,     3,     0,     2,     2,     2,     2,     1,     1,     1,
       1,     1,     1,     1,     1,     1,     1,     1,     1,     1,
       1,     1,     1,    11,    13,    13,     1,     6,     9,     7,
       1,     1,     3,     0,    11,     1,     1,     1,     1,     1,
       1,     1,     1,     1,     1,     1,     1,     1,     1,     1,
       2,     2,     2,     2,     0,     2,     0,     3,     0,     3,
       1,     1,     1,     1,     1,     1,     1,     1,     1,     1,
       1,     1,     1,     1,     1,     1,     2,     1,     2,     1,
       1,     1,     1,     1,     2,     1,     2,     1,     1,     1,
       2,     1,     1,     1,     1,     2,     1,     2,     1,     1,
       1,     1,     0,     2,     2,     5,     5,     5,     5,     5,
       5,     1,     1,     1,     3,     3,     4,     4,     3,     3,
       1,     3,     1,     4,     2,     1,     1,     1,     1,     1,
       1,     1,     1,     1,     1,     1,     1,     1,     2,     1,
       2,     1,     2,     1,     1,     1,     1,     1,     1,     1,
       1
};


enum { YYENOMEM = -2 };

#define yyerrok         (yyerrstatus = 0)
#define yyclearin       (yychar = YYEMPTY)

#define YYACCEPT        goto yyacceptlab
#define YYABORT         goto yyabortlab
#define YYERROR         goto yyerrorlab
#define YYNOMEM         goto yyexhaustedlab


#define YYRECOVERING()  (!!yyerrstatus)

#define YYBACKUP(Token, Value)                                    \
  do                                                              \
    if (yychar == YYEMPTY)                                        \
      {                                                           \
        yychar = (Token);                                         \
        yylval = (Value);                                         \
        YYPOPSTACK (yylen);                                       \
        yystate = *yyssp;                                         \
        goto yybackup;                                            \
      }                                                           \
    else                                                          \
      {                                                           \
        yyerror (YY_("syntax error: cannot back up")); \
        YYERROR;                                                  \
      }                                                           \
  while (0)

/* Backward compatibility with an undocumented macro.
   Use YYerror or YYUNDEF. */
#define YYERRCODE YYUNDEF


/* Enable debugging if requested.  */
#if YYDEBUG

# ifndef YYFPRINTF
#  include <stdio.h> /* INFRINGES ON USER NAME SPACE */
#  define YYFPRINTF fprintf
# endif

# define YYDPRINTF(Args)                        \
do {                                            \
  if (yydebug)                                  \
    YYFPRINTF Args;                             \
} while (0)




# define YY_SYMBOL_PRINT(Title, Kind, Value, Location)                    \
do {                                                                      \
  if (yydebug)                                                            \
    {                                                                     \
      YYFPRINTF (stderr, "%s ", Title);                                   \
      yy_symbol_print (stderr,                                            \
                  Kind, Value); \
      YYFPRINTF (stderr, "\n");                                           \
    }                                                                     \
} while (0)


/*-----------------------------------.
| Print this symbol's value on YYO.  |
`-----------------------------------*/

static void
yy_symbol_value_print (FILE *yyo,
                       yysymbol_kind_t yykind, YYSTYPE const * const yyvaluep)
{
  FILE *yyoutput = yyo;
  YY_USE (yyoutput);
  if (!yyvaluep)
    return;
  YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
  YY_USE (yykind);
  YY_IGNORE_MAYBE_UNINITIALIZED_END
}


/*---------------------------.
| Print this symbol on YYO.  |
`---------------------------*/

static void
yy_symbol_print (FILE *yyo,
                 yysymbol_kind_t yykind, YYSTYPE const * const yyvaluep)
{
  YYFPRINTF (yyo, "%s %s (",
             yykind < YYNTOKENS ? "token" : "nterm", yysymbol_name (yykind));

  yy_symbol_value_print (yyo, yykind, yyvaluep);
  YYFPRINTF (yyo, ")");
}

/*------------------------------------------------------------------.
| yy_stack_print -- Print the state stack from its BOTTOM up to its |
| TOP (included).                                                   |
`------------------------------------------------------------------*/

static void
yy_stack_print (yy_state_t *yybottom, yy_state_t *yytop)
{
  YYFPRINTF (stderr, "Stack now");
  for (; yybottom <= yytop; yybottom++)
    {
      int yybot = *yybottom;
      YYFPRINTF (stderr, " %d", yybot);
    }
  YYFPRINTF (stderr, "\n");
}

# define YY_STACK_PRINT(Bottom, Top)                            \
do {                                                            \
  if (yydebug)                                                  \
    yy_stack_print ((Bottom), (Top));                           \
} while (0)


/*------------------------------------------------.
| Report that the YYRULE is going to be reduced.  |
`------------------------------------------------*/

static void
yy_reduce_print (yy_state_t *yyssp, YYSTYPE *yyvsp,
                 int yyrule)
{
  int yylno = yyrline[yyrule];
  int yynrhs = yyr2[yyrule];
  int yyi;
  YYFPRINTF (stderr, "Reducing stack by rule %d (line %d):\n",
             yyrule - 1, yylno);
  /* The symbols being reduced.  */
  for (yyi = 0; yyi < yynrhs; yyi++)
    {
      YYFPRINTF (stderr, "   $%d = ", yyi + 1);
      yy_symbol_print (stderr,
                       YY_ACCESSING_SYMBOL (+yyssp[yyi + 1 - yynrhs]),
                       &yyvsp[(yyi + 1) - (yynrhs)]);
      YYFPRINTF (stderr, "\n");
    }
}

# define YY_REDUCE_PRINT(Rule)          \
do {                                    \
  if (yydebug)                          \
    yy_reduce_print (yyssp, yyvsp, Rule); \
} while (0)

/* Nonzero means print parse trace.  It is left uninitialized so that
   multiple parsers can coexist.  */
int yydebug;
#else /* !YYDEBUG */
# define YYDPRINTF(Args) ((void) 0)
# define YY_SYMBOL_PRINT(Title, Kind, Value, Location)
# define YY_STACK_PRINT(Bottom, Top)
# define YY_REDUCE_PRINT(Rule)
#endif /* !YYDEBUG */


/* YYINITDEPTH -- initial size of the parser's stacks.  */
#ifndef YYINITDEPTH
# define YYINITDEPTH 200
#endif

/* YYMAXDEPTH -- maximum size the stacks can grow to (effective only
   if the built-in stack extension method is used).

   Do not make this value too large; the results are undefined if
   YYSTACK_ALLOC_MAXIMUM < YYSTACK_BYTES (YYMAXDEPTH)
   evaluated with infinite-precision integer arithmetic.  */

#ifndef YYMAXDEPTH
# define YYMAXDEPTH 10000
#endif


/* Context of a parse error.  */
typedef struct
{
  yy_state_t *yyssp;
  yysymbol_kind_t yytoken;
} yypcontext_t;

/* Put in YYARG at most YYARGN of the expected tokens given the
   current YYCTX, and return the number of tokens stored in YYARG.  If
   YYARG is null, return the number of expected tokens (guaranteed to
   be less than YYNTOKENS).  Return YYENOMEM on memory exhaustion.
   Return 0 if there are more than YYARGN expected tokens, yet fill
   YYARG up to YYARGN. */
static int
yypcontext_expected_tokens (const yypcontext_t *yyctx,
                            yysymbol_kind_t yyarg[], int yyargn)
{
  /* Actual size of YYARG. */
  int yycount = 0;
  int yyn = yypact[+*yyctx->yyssp];
  if (!yypact_value_is_default (yyn))
    {
      /* Start YYX at -YYN if negative to avoid negative indexes in
         YYCHECK.  In other words, skip the first -YYN actions for
         this state because they are default actions.  */
      int yyxbegin = yyn < 0 ? -yyn : 0;
      /* Stay within bounds of both yycheck and yytname.  */
      int yychecklim = YYLAST - yyn + 1;
      int yyxend = yychecklim < YYNTOKENS ? yychecklim : YYNTOKENS;
      int yyx;
      for (yyx = yyxbegin; yyx < yyxend; ++yyx)
        if (yycheck[yyx + yyn] == yyx && yyx != YYSYMBOL_YYerror
            && !yytable_value_is_error (yytable[yyx + yyn]))
          {
            if (!yyarg)
              ++yycount;
            else if (yycount == yyargn)
              return 0;
            else
              yyarg[yycount++] = YY_CAST (yysymbol_kind_t, yyx);
          }
    }
  if (yyarg && yycount == 0 && 0 < yyargn)
    yyarg[0] = YYSYMBOL_YYEMPTY;
  return yycount;
}




#ifndef yystrlen
# if defined __GLIBC__ && defined _STRING_H
#  define yystrlen(S) (YY_CAST (YYPTRDIFF_T, strlen (S)))
# else
/* Return the length of YYSTR.  */
static YYPTRDIFF_T
yystrlen (const char *yystr)
{
  YYPTRDIFF_T yylen;
  for (yylen = 0; yystr[yylen]; yylen++)
    continue;
  return yylen;
}
# endif
#endif

#ifndef yystpcpy
# if defined __GLIBC__ && defined _STRING_H && defined _GNU_SOURCE
#  define yystpcpy stpcpy
# else
/* Copy YYSRC to YYDEST, returning the address of the terminating '\0' in
   YYDEST.  */
static char *
yystpcpy (char *yydest, const char *yysrc)
{
  char *yyd = yydest;
  const char *yys = yysrc;

  while ((*yyd++ = *yys++) != '\0')
    continue;

  return yyd - 1;
}
# endif
#endif

#ifndef yytnamerr
/* Copy to YYRES the contents of YYSTR after stripping away unnecessary
   quotes and backslashes, so that it's suitable for yyerror.  The
   heuristic is that double-quoting is unnecessary unless the string
   contains an apostrophe, a comma, or backslash (other than
   backslash-backslash).  YYSTR is taken from yytname.  If YYRES is
   null, do not copy; instead, return the length of what the result
   would have been.  */
static YYPTRDIFF_T
yytnamerr (char *yyres, const char *yystr)
{
  if (*yystr == '"')
    {
      YYPTRDIFF_T yyn = 0;
      char const *yyp = yystr;
      for (;;)
        switch (*++yyp)
          {
          case '\'':
          case ',':
            goto do_not_strip_quotes;

          case '\\':
            if (*++yyp != '\\')
              goto do_not_strip_quotes;
            else
              goto append;

          append:
          default:
            if (yyres)
              yyres[yyn] = *yyp;
            yyn++;
            break;

          case '"':
            if (yyres)
              yyres[yyn] = '\0';
            return yyn;
          }
    do_not_strip_quotes: ;
    }

  if (yyres)
    return yystpcpy (yyres, yystr) - yyres;
  else
    return yystrlen (yystr);
}
#endif


static int
yy_syntax_error_arguments (const yypcontext_t *yyctx,
                           yysymbol_kind_t yyarg[], int yyargn)
{
  /* Actual size of YYARG. */
  int yycount = 0;
  /* There are many possibilities here to consider:
     - If this state is a consistent state with a default action, then
       the only way this function was invoked is if the default action
       is an error action.  In that case, don't check for expected
       tokens because there are none.
     - The only way there can be no lookahead present (in yychar) is if
       this state is a consistent state with a default action.  Thus,
       detecting the absence of a lookahead is sufficient to determine
       that there is no unexpected or expected token to report.  In that
       case, just report a simple "syntax error".
     - Don't assume there isn't a lookahead just because this state is a
       consistent state with a default action.  There might have been a
       previous inconsistent state, consistent state with a non-default
       action, or user semantic action that manipulated yychar.
     - Of course, the expected token list depends on states to have
       correct lookahead information, and it depends on the parser not
       to perform extra reductions after fetching a lookahead from the
       scanner and before detecting a syntax error.  Thus, state merging
       (from LALR or IELR) and default reductions corrupt the expected
       token list.  However, the list is correct for canonical LR with
       one exception: it will still contain any token that will not be
       accepted due to an error action in a later state.
  */
  if (yyctx->yytoken != YYSYMBOL_YYEMPTY)
    {
      int yyn;
      if (yyarg)
        yyarg[yycount] = yyctx->yytoken;
      ++yycount;
      yyn = yypcontext_expected_tokens (yyctx,
                                        yyarg ? yyarg + 1 : yyarg, yyargn - 1);
      if (yyn == YYENOMEM)
        return YYENOMEM;
      else
        yycount += yyn;
    }
  return yycount;
}

/* Copy into *YYMSG, which is of size *YYMSG_ALLOC, an error message
   about the unexpected token YYTOKEN for the state stack whose top is
   YYSSP.

   Return 0 if *YYMSG was successfully written.  Return -1 if *YYMSG is
   not large enough to hold the message.  In that case, also set
   *YYMSG_ALLOC to the required number of bytes.  Return YYENOMEM if the
   required number of bytes is too large to store.  */
static int
yysyntax_error (YYPTRDIFF_T *yymsg_alloc, char **yymsg,
                const yypcontext_t *yyctx)
{
  enum { YYARGS_MAX = 5 };
  /* Internationalized format string. */
  const char *yyformat = YY_NULLPTR;
  /* Arguments of yyformat: reported tokens (one for the "unexpected",
     one per "expected"). */
  yysymbol_kind_t yyarg[YYARGS_MAX];
  /* Cumulated lengths of YYARG.  */
  YYPTRDIFF_T yysize = 0;

  /* Actual size of YYARG. */
  int yycount = yy_syntax_error_arguments (yyctx, yyarg, YYARGS_MAX);
  if (yycount == YYENOMEM)
    return YYENOMEM;

  switch (yycount)
    {
#define YYCASE_(N, S)                       \
      case N:                               \
        yyformat = S;                       \
        break
    default: /* Avoid compiler warnings. */
      YYCASE_(0, YY_("syntax error"));
      YYCASE_(1, YY_("syntax error, unexpected %s"));
      YYCASE_(2, YY_("syntax error, unexpected %s, expecting %s"));
      YYCASE_(3, YY_("syntax error, unexpected %s, expecting %s or %s"));
      YYCASE_(4, YY_("syntax error, unexpected %s, expecting %s or %s or %s"));
      YYCASE_(5, YY_("syntax error, unexpected %s, expecting %s or %s or %s or %s"));
#undef YYCASE_
    }

  /* Compute error message size.  Don't count the "%s"s, but reserve
     room for the terminator.  */
  yysize = yystrlen (yyformat) - 2 * yycount + 1;
  {
    int yyi;
    for (yyi = 0; yyi < yycount; ++yyi)
      {
        YYPTRDIFF_T yysize1
          = yysize + yytnamerr (YY_NULLPTR, yytname[yyarg[yyi]]);
        if (yysize <= yysize1 && yysize1 <= YYSTACK_ALLOC_MAXIMUM)
          yysize = yysize1;
        else
          return YYENOMEM;
      }
  }

  if (*yymsg_alloc < yysize)
    {
      *yymsg_alloc = 2 * yysize;
      if (! (yysize <= *yymsg_alloc
             && *yymsg_alloc <= YYSTACK_ALLOC_MAXIMUM))
        *yymsg_alloc = YYSTACK_ALLOC_MAXIMUM;
      return -1;
    }

  /* Avoid sprintf, as that infringes on the user's name space.
     Don't have undefined behavior even if the translation
     produced a string with the wrong number of "%s"s.  */
  {
    char *yyp = *yymsg;
    int yyi = 0;
    while ((*yyp = *yyformat) != '\0')
      if (*yyp == '%' && yyformat[1] == 's' && yyi < yycount)
        {
          yyp += yytnamerr (yyp, yytname[yyarg[yyi++]]);
          yyformat += 2;
        }
      else
        {
          ++yyp;
          ++yyformat;
        }
  }
  return 0;
}


/*-----------------------------------------------.
| Release the memory associated to this symbol.  |
`-----------------------------------------------*/

static void
yydestruct (const char *yymsg,
            yysymbol_kind_t yykind, YYSTYPE *yyvaluep)
{
  YY_USE (yyvaluep);
  if (!yymsg)
    yymsg = "Deleting";
  YY_SYMBOL_PRINT (yymsg, yykind, yyvaluep, yylocationp);

  YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
  YY_USE (yykind);
  YY_IGNORE_MAYBE_UNINITIALIZED_END
}


/* Lookahead token kind.  */
int yychar;

/* The semantic value of the lookahead symbol.  */
YYSTYPE yylval;
/* Number of syntax errors so far.  */
int yynerrs;




/*----------.
| yyparse.  |
`----------*/

int
yyparse (void)
{
    yy_state_fast_t yystate = 0;
    /* Number of tokens to shift before error messages enabled.  */
    int yyerrstatus = 0;

    /* Refer to the stacks through separate pointers, to allow yyoverflow
       to reallocate them elsewhere.  */

    /* Their size.  */
    YYPTRDIFF_T yystacksize = YYINITDEPTH;

    /* The state stack: array, bottom, top.  */
    yy_state_t yyssa[YYINITDEPTH];
    yy_state_t *yyss = yyssa;
    yy_state_t *yyssp = yyss;

    /* The semantic value stack: array, bottom, top.  */
    YYSTYPE yyvsa[YYINITDEPTH];
    YYSTYPE *yyvs = yyvsa;
    YYSTYPE *yyvsp = yyvs;

  int yyn;
  /* The return value of yyparse.  */
  int yyresult;
  /* Lookahead symbol kind.  */
  yysymbol_kind_t yytoken = YYSYMBOL_YYEMPTY;
  /* The variables used to return semantic value and location from the
     action routines.  */
  YYSTYPE yyval;

  /* Buffer for error messages, and its allocated size.  */
  char yymsgbuf[128];
  char *yymsg = yymsgbuf;
  YYPTRDIFF_T yymsg_alloc = sizeof yymsgbuf;

#define YYPOPSTACK(N)   (yyvsp -= (N), yyssp -= (N))

  /* The number of symbols on the RHS of the reduced rule.
     Keep to zero when no symbol should be popped.  */
  int yylen = 0;

  YYDPRINTF ((stderr, "Starting parse\n"));

  yychar = YYEMPTY; /* Cause a token to be read.  */

  goto yysetstate;


/*------------------------------------------------------------.
| yynewstate -- push a new state, which is found in yystate.  |
`------------------------------------------------------------*/
yynewstate:
  /* In all cases, when you get here, the value and location stacks
     have just been pushed.  So pushing a state here evens the stacks.  */
  yyssp++;


/*--------------------------------------------------------------------.
| yysetstate -- set current state (the top of the stack) to yystate.  |
`--------------------------------------------------------------------*/
yysetstate:
  YYDPRINTF ((stderr, "Entering state %d\n", yystate));
  YY_ASSERT (0 <= yystate && yystate < YYNSTATES);
  YY_IGNORE_USELESS_CAST_BEGIN
  *yyssp = YY_CAST (yy_state_t, yystate);
  YY_IGNORE_USELESS_CAST_END
  YY_STACK_PRINT (yyss, yyssp);

  if (yyss + yystacksize - 1 <= yyssp)
#if !defined yyoverflow && !defined YYSTACK_RELOCATE
    YYNOMEM;
#else
    {
      /* Get the current used size of the three stacks, in elements.  */
      YYPTRDIFF_T yysize = yyssp - yyss + 1;

# if defined yyoverflow
      {
        /* Give user a chance to reallocate the stack.  Use copies of
           these so that the &'s don't force the real ones into
           memory.  */
        yy_state_t *yyss1 = yyss;
        YYSTYPE *yyvs1 = yyvs;

        /* Each stack pointer address is followed by the size of the
           data in use in that stack, in bytes.  This used to be a
           conditional around just the two extra args, but that might
           be undefined if yyoverflow is a macro.  */
        yyoverflow (YY_("memory exhausted"),
                    &yyss1, yysize * YYSIZEOF (*yyssp),
                    &yyvs1, yysize * YYSIZEOF (*yyvsp),
                    &yystacksize);
        yyss = yyss1;
        yyvs = yyvs1;
      }
# else /* defined YYSTACK_RELOCATE */
      /* Extend the stack our own way.  */
      if (YYMAXDEPTH <= yystacksize)
        YYNOMEM;
      yystacksize *= 2;
      if (YYMAXDEPTH < yystacksize)
        yystacksize = YYMAXDEPTH;

      {
        yy_state_t *yyss1 = yyss;
        union yyalloc *yyptr =
          YY_CAST (union yyalloc *,
                   YYSTACK_ALLOC (YY_CAST (YYSIZE_T, YYSTACK_BYTES (yystacksize))));
        if (! yyptr)
          YYNOMEM;
        YYSTACK_RELOCATE (yyss_alloc, yyss);
        YYSTACK_RELOCATE (yyvs_alloc, yyvs);
#  undef YYSTACK_RELOCATE
        if (yyss1 != yyssa)
          YYSTACK_FREE (yyss1);
      }
# endif

      yyssp = yyss + yysize - 1;
      yyvsp = yyvs + yysize - 1;

      YY_IGNORE_USELESS_CAST_BEGIN
      YYDPRINTF ((stderr, "Stack size increased to %ld\n",
                  YY_CAST (long, yystacksize)));
      YY_IGNORE_USELESS_CAST_END

      if (yyss + yystacksize - 1 <= yyssp)
        YYABORT;
    }
#endif /* !defined yyoverflow && !defined YYSTACK_RELOCATE */


  if (yystate == YYFINAL)
    YYACCEPT;

  goto yybackup;


/*-----------.
| yybackup.  |
`-----------*/
yybackup:
  /* Do appropriate processing given the current state.  Read a
     lookahead token if we need one and don't already have one.  */

  /* First try to decide what to do without reference to lookahead token.  */
  yyn = yypact[yystate];
  if (yypact_value_is_default (yyn))
    goto yydefault;

  /* Not known => get a lookahead token if don't already have one.  */

  /* YYCHAR is either empty, or end-of-input, or a valid lookahead.  */
  if (yychar == YYEMPTY)
    {
      YYDPRINTF ((stderr, "Reading a token\n"));
      yychar = yylex ();
    }

  if (yychar <= YYEOF)
    {
      yychar = YYEOF;
      yytoken = YYSYMBOL_YYEOF;
      YYDPRINTF ((stderr, "Now at end of input.\n"));
    }
  else if (yychar == YYerror)
    {
      /* The scanner already issued an error message, process directly
         to error recovery.  But do not keep the error token as
         lookahead, it is too special and may lead us to an endless
         loop in error recovery. */
      yychar = YYUNDEF;
      yytoken = YYSYMBOL_YYerror;
      goto yyerrlab1;
    }
  else
    {
      yytoken = YYTRANSLATE (yychar);
      YY_SYMBOL_PRINT ("Next token is", yytoken, &yylval, &yylloc);
    }

  /* If the proper action on seeing token YYTOKEN is to reduce or to
     detect an error, take that action.  */
  yyn += yytoken;
  if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken)
    goto yydefault;
  yyn = yytable[yyn];
  if (yyn <= 0)
    {
      if (yytable_value_is_error (yyn))
        goto yyerrlab;
      yyn = -yyn;
      goto yyreduce;
    }

  /* Count tokens shifted since error; after three, turn off error
     status.  */
  if (yyerrstatus)
    yyerrstatus--;

  /* Shift the lookahead token.  */
  YY_SYMBOL_PRINT ("Shifting", yytoken, &yylval, &yylloc);
  yystate = yyn;
  YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
  *++yyvsp = yylval;
  YY_IGNORE_MAYBE_UNINITIALIZED_END

  /* Discard the shifted token.  */
  yychar = YYEMPTY;
  goto yynewstate;


/*-----------------------------------------------------------.
| yydefault -- do the default action for the current state.  |
`-----------------------------------------------------------*/
yydefault:
  yyn = yydefact[yystate];
  if (yyn == 0)
    goto yyerrlab;
  goto yyreduce;


/*-----------------------------.
| yyreduce -- do a reduction.  |
`-----------------------------*/
yyreduce:
  /* yyn is the number of a rule to reduce with.  */
  yylen = yyr2[yyn];

  /* If YYLEN is nonzero, implement the default value of the action:
     '$$ = $1'.

     Otherwise, the following line sets YYVAL to garbage.
     This behavior is undocumented and Bison
     users should not rely upon it.  Assigning to YYVAL
     unconditionally makes the parser a bit smaller, and it avoids a
     GCC warning that YYVAL may be used uninitialized.  */
  yyval = yyvsp[1-yylen];


  YY_REDUCE_PRINT (yyn);
  switch (yyn)
    {
  case 2: /* $@1: %empty  */
#line 688 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                   { new_shader(); }
#line 3052 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 17: /* const_val: T_FLOAT  */
#line 705 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                             { (yyval.unum) = fui((yyvsp[0].flt)); }
#line 3058 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 18: /* const_val: T_INT  */
#line 706 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                             { (yyval.unum) = (yyvsp[0].num);      }
#line 3064 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 19: /* const_val: '-' T_INT  */
#line 707 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                             { (yyval.unum) = -(yyvsp[0].num);     }
#line 3070 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 20: /* const_val: T_HEX  */
#line 708 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                             { (yyval.unum) = (yyvsp[0].unum);      }
#line 3076 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 21: /* localsize_header: T_A_LOCALSIZE const_val ',' const_val ',' const_val  */
#line 710 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                                                       {
                       variant->local_size[0] = (yyvsp[-4].unum);
                       variant->local_size[1] = (yyvsp[-2].unum);
                       variant->local_size[2] = (yyvsp[0].unum);
}
#line 3086 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 22: /* const_header: T_A_CONST '(' T_CONSTANT ')' const_val ',' const_val ',' const_val ',' const_val  */
#line 716 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                                                                                    {
                       add_const((yyvsp[-8].num), (yyvsp[-6].unum), (yyvsp[-4].unum), (yyvsp[-2].unum), (yyvsp[0].unum));
}
#line 3094 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 23: /* buf_header_addr_reg: '(' T_CONSTANT ')'  */
#line 721 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                      {
                       assert(((yyvsp[-1].num) & 0x1) == 0);  /* half-reg not allowed */
                       unsigned reg = (yyvsp[-1].num) >> 1;

                       info->buf_addr_regs[info->num_bufs - 1] = reg;
                       /* reserve space in immediates for the actual value to be plugged in later: */
                       add_const((yyvsp[-1].num), 0, 0, 0, 0);
}
#line 3107 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 25: /* $@2: %empty  */
#line 731 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                     {
                       int idx = info->num_bufs++;
                       assert(idx < MAX_BUFS);
                       info->buf_sizes[idx] = (yyvsp[0].unum);
}
#line 3117 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 27: /* invocationid_header: T_A_INVOCATIONID '(' T_REGISTER ')'  */
#line 737 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                                         {
                       assert(((yyvsp[-1].num) & 0x1) == 0);  /* half-reg not allowed */
                       unsigned reg = (yyvsp[-1].num) >> 1;
                       add_sysval(reg, 0x7, SYSTEM_VALUE_LOCAL_INVOCATION_ID);
}
#line 3127 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 28: /* wgid_header: T_A_WGID '(' T_REGISTER ')'  */
#line 743 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                               {
                       assert(((yyvsp[-1].num) & 0x1) == 0);  /* half-reg not allowed */
                       unsigned reg = (yyvsp[-1].num) >> 1;
                       assert(variant->shader->compiler->gen >= 5);
                       assert(reg >= regid(48, 0)); /* must be a high reg */
                       add_sysval(reg, 0x7, SYSTEM_VALUE_WORKGROUP_ID);
}
#line 3139 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 29: /* wgid_header: T_A_WGID '(' T_CONSTANT ')'  */
#line 750 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                               {
                       assert(((yyvsp[-1].num) & 0x1) == 0);  /* half-reg not allowed */
                       unsigned reg = (yyvsp[-1].num) >> 1;
                       assert(variant->shader->compiler->gen < 5);
                       info->wgid = reg;
}
#line 3150 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 30: /* numwg_header: T_A_NUMWG '(' T_CONSTANT ')'  */
#line 757 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                                {
                       assert(((yyvsp[-1].num) & 0x1) == 0);  /* half-reg not allowed */
                       unsigned reg = (yyvsp[-1].num) >> 1;
                       info->numwg = reg;
                       /* reserve space in immediates for the actual value to be plugged in later: */
                       if (variant->shader->compiler->gen >= 5)
                          add_const((yyvsp[-1].num), 0, 0, 0, 0);
}
#line 3163 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 31: /* branchstack_header: T_A_BRANCHSTACK const_val  */
#line 766 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                              { variant->branchstack = (yyvsp[0].unum); }
#line 3169 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 32: /* pvtmem_header: T_A_PVTMEM const_val  */
#line 768 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                    { variant->pvtmem_size = (yyvsp[0].unum); }
#line 3175 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 33: /* in_header: T_A_IN '(' T_REGISTER ')' T_IDENTIFIER '(' T_IDENTIFIER '=' integer ')'  */
#line 771 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                                                                           { }
#line 3181 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 34: /* out_header: T_A_OUT '(' T_REGISTER ')' T_IDENTIFIER '(' T_IDENTIFIER '=' integer ')'  */
#line 773 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                                                                            { }
#line 3187 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 35: /* tex_header: T_A_TEX '(' T_REGISTER ')' T_IDENTIFIER '=' integer ',' T_IDENTIFIER '=' integer ',' T_IDENTIFIER '=' integer ',' T_IDENTIFIER '=' integer ',' T_IDENTIFIER '=' integer  */
#line 780 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                                              { }
#line 3193 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 36: /* iflag: T_SY  */
#line 782 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                          { iflags.flags |= IR3_INSTR_SY; }
#line 3199 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 37: /* iflag: T_SS  */
#line 783 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                          { iflags.flags |= IR3_INSTR_SS; }
#line 3205 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 38: /* iflag: T_JP  */
#line 784 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                          { iflags.flags |= IR3_INSTR_JP; }
#line 3211 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 39: /* iflag: T_SAT  */
#line 785 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                          { iflags.flags |= IR3_INSTR_SAT; }
#line 3217 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 40: /* iflag: T_RPT  */
#line 786 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                          { iflags.repeat = (yyvsp[0].num); }
#line 3223 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 41: /* iflag: T_UL  */
#line 787 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                          { iflags.flags |= IR3_INSTR_UL; }
#line 3229 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 42: /* iflag: T_NOP  */
#line 788 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                          { iflags.nop = (yyvsp[0].tok); }
#line 3235 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 52: /* instr: iflags cat5_instr  */
#line 801 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                     { fixup_cat5_s2en(); }
#line 3241 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 56: /* label: T_IDENTIFIER ':'  */
#line 806 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                    { new_label((yyvsp[-1].str)); }
#line 3247 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 57: /* cat0_src1: '!' T_P0  */
#line 808 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                   { instr->cat0.inv1 = true; instr->cat0.comp1 = (yyvsp[0].num) >> 1; }
#line 3253 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 58: /* cat0_src1: T_P0  */
#line 809 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                   { instr->cat0.comp1 = (yyvsp[0].num) >> 1; }
#line 3259 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 59: /* cat0_src2: '!' T_P0  */
#line 811 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                   { instr->cat0.inv2 = true; instr->cat0.comp2 = (yyvsp[0].num) >> 1; }
#line 3265 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 60: /* cat0_src2: T_P0  */
#line 812 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                   { instr->cat0.comp2 = (yyvsp[0].num) >> 1; }
#line 3271 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 61: /* cat0_immed: '#' integer  */
#line 814 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                   { instr->cat0.immed = (yyvsp[0].num); }
#line 3277 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 62: /* cat0_immed: '#' T_IDENTIFIER  */
#line 815 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                    { ralloc_steal(instr, (void *)(yyvsp[0].str)); instr->cat0.target_label = (yyvsp[0].str); }
#line 3283 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 63: /* cat0_instr: T_OP_NOP  */
#line 817 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                   { new_instr(OPC_NOP); }
#line 3289 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 64: /* $@3: %empty  */
#line 818 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                   { new_instr(OPC_B)->cat0.brtype = BRANCH_PLAIN; }
#line 3295 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 66: /* $@4: %empty  */
#line 819 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                   { new_instr(OPC_B)->cat0.brtype = BRANCH_OR;    }
#line 3301 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 68: /* $@5: %empty  */
#line 820 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                   { new_instr(OPC_B)->cat0.brtype = BRANCH_AND;    }
#line 3307 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 70: /* $@6: %empty  */
#line 821 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                         { new_instr(OPC_B)->cat0.brtype = BRANCH_CONST; instr->cat0.idx = (yyvsp[0].num); }
#line 3313 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 72: /* $@7: %empty  */
#line 822 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                   { new_instr(OPC_B)->cat0.brtype = BRANCH_ANY; }
#line 3319 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 74: /* $@8: %empty  */
#line 823 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                   { new_instr(OPC_B)->cat0.brtype = BRANCH_ALL; }
#line 3325 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 76: /* $@9: %empty  */
#line 824 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                   { new_instr(OPC_B)->cat0.brtype = BRANCH_X; }
#line 3331 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 78: /* $@10: %empty  */
#line 825 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                   { new_instr(OPC_JUMP); }
#line 3337 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 80: /* $@11: %empty  */
#line 826 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                   { new_instr(OPC_CALL); }
#line 3343 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 82: /* cat0_instr: T_OP_RET  */
#line 827 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                   { new_instr(OPC_RET); }
#line 3349 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 83: /* $@12: %empty  */
#line 828 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                   { new_instr(OPC_KILL); }
#line 3355 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 85: /* cat0_instr: T_OP_END  */
#line 829 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                   { new_instr(OPC_END); }
#line 3361 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 86: /* cat0_instr: T_OP_EMIT  */
#line 830 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                   { new_instr(OPC_EMIT); }
#line 3367 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 87: /* cat0_instr: T_OP_CUT  */
#line 831 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                   { new_instr(OPC_CUT); }
#line 3373 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 88: /* cat0_instr: T_OP_CHMASK  */
#line 832 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                   { new_instr(OPC_CHMASK); }
#line 3379 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 89: /* cat0_instr: T_OP_CHSH  */
#line 833 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                   { new_instr(OPC_CHSH); }
#line 3385 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 90: /* cat0_instr: T_OP_FLOW_REV  */
#line 834 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                   { new_instr(OPC_FLOW_REV); }
#line 3391 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 91: /* $@13: %empty  */
#line 835 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                   { new_instr(OPC_BKT); }
#line 3397 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 93: /* cat0_instr: T_OP_STKS  */
#line 836 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                   { new_instr(OPC_STKS); }
#line 3403 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 94: /* cat0_instr: T_OP_STKR  */
#line 837 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                   { new_instr(OPC_STKR); }
#line 3409 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 95: /* cat0_instr: T_OP_XSET  */
#line 838 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                   { new_instr(OPC_XSET); }
#line 3415 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 96: /* cat0_instr: T_OP_XCLR  */
#line 839 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                   { new_instr(OPC_XCLR); }
#line 3421 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 97: /* $@14: %empty  */
#line 840 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                   { new_instr(OPC_GETONE); }
#line 3427 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 99: /* cat0_instr: T_OP_DBG  */
#line 841 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                   { new_instr(OPC_DBG); }
#line 3433 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 100: /* $@15: %empty  */
#line 842 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                   { new_instr(OPC_SHPS); }
#line 3439 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 102: /* cat0_instr: T_OP_SHPE  */
#line 843 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                   { new_instr(OPC_SHPE); }
#line 3445 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 103: /* $@16: %empty  */
#line 844 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                   { new_instr(OPC_PREDT); }
#line 3451 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 105: /* $@17: %empty  */
#line 845 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                   { new_instr(OPC_PREDF); }
#line 3457 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 107: /* cat0_instr: T_OP_PREDE  */
#line 846 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                   { new_instr(OPC_PREDE); }
#line 3463 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 108: /* $@18: %empty  */
#line 847 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                        { new_instr(OPC_GETLAST); }
#line 3469 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 110: /* cat1_opc: T_OP_MOV '.' T_CAT1_TYPE_TYPE  */
#line 849 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                                 {
                       parse_type_type(new_instr(OPC_MOV), (yyvsp[0].str));
}
#line 3477 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 111: /* cat1_opc: T_OP_COV '.' T_CAT1_TYPE_TYPE  */
#line 852 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                                 {
                       parse_type_type(new_instr(OPC_MOV), (yyvsp[0].str));
}
#line 3485 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 114: /* $@19: %empty  */
#line 859 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                       {
                       new_instr(OPC_MOVMSK);
                       instr->cat1.src_type = TYPE_U32;
                       instr->cat1.dst_type = TYPE_U32;
                   }
#line 3495 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 115: /* cat1_movmsk: T_OP_MOVMSK '.' T_W $@19 dst_reg  */
#line 863 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                             {
                       if (((yyvsp[-2].num) % 32) != 0)
                          yyerror("w# must be multiple of 32");
                       if ((yyvsp[-2].num) < 32)
                          yyerror("w# must be at least 32");

                       int num = (yyvsp[-2].num) / 32;

                       instr->repeat = num - 1;
                       instr->dsts[0]->wrmask = (1 << num) - 1;
                   }
#line 3511 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 116: /* $@20: %empty  */
#line 875 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                       {
                       new_instr(OPC_MOV);
                       instr->cat1.src_type = TYPE_U16;
                       instr->cat1.dst_type = TYPE_U16;
                       new_dst((61 << 3) + 2, IR3_REG_HALF);
                   }
#line 3522 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 118: /* $@21: %empty  */
#line 882 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                      {
                       new_instr(OPC_MOV);
                       instr->cat1.src_type = TYPE_S16;
                       instr->cat1.dst_type = TYPE_S16;
                       new_dst((61 << 3), IR3_REG_HALF);
                   }
#line 3533 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 120: /* $@22: %empty  */
#line 889 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                                 { parse_type_type(new_instr(OPC_SWZ), (yyvsp[0].str)); }
#line 3539 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 122: /* $@23: %empty  */
#line 891 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                                 { parse_type_type(new_instr(OPC_GAT), (yyvsp[0].str)); }
#line 3545 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 124: /* $@24: %empty  */
#line 893 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                                 { parse_type_type(new_instr(OPC_SCT), (yyvsp[0].str)); }
#line 3551 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 134: /* cat2_opc_1src: T_OP_ABSNEG_F  */
#line 905 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { new_instr(OPC_ABSNEG_F); }
#line 3557 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 135: /* cat2_opc_1src: T_OP_ABSNEG_S  */
#line 906 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { new_instr(OPC_ABSNEG_S); }
#line 3563 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 136: /* cat2_opc_1src: T_OP_CLZ_B  */
#line 907 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { new_instr(OPC_CLZ_B); }
#line 3569 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 137: /* cat2_opc_1src: T_OP_CLZ_S  */
#line 908 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { new_instr(OPC_CLZ_S); }
#line 3575 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 138: /* cat2_opc_1src: T_OP_SIGN_F  */
#line 909 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { new_instr(OPC_SIGN_F); }
#line 3581 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 139: /* cat2_opc_1src: T_OP_FLOOR_F  */
#line 910 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { new_instr(OPC_FLOOR_F); }
#line 3587 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 140: /* cat2_opc_1src: T_OP_CEIL_F  */
#line 911 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { new_instr(OPC_CEIL_F); }
#line 3593 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 141: /* cat2_opc_1src: T_OP_RNDNE_F  */
#line 912 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { new_instr(OPC_RNDNE_F); }
#line 3599 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 142: /* cat2_opc_1src: T_OP_RNDAZ_F  */
#line 913 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { new_instr(OPC_RNDAZ_F); }
#line 3605 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 143: /* cat2_opc_1src: T_OP_TRUNC_F  */
#line 914 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { new_instr(OPC_TRUNC_F); }
#line 3611 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 144: /* cat2_opc_1src: T_OP_NOT_B  */
#line 915 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { new_instr(OPC_NOT_B); }
#line 3617 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 145: /* cat2_opc_1src: T_OP_BFREV_B  */
#line 916 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { new_instr(OPC_BFREV_B); }
#line 3623 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 146: /* cat2_opc_1src: T_OP_SETRM  */
#line 917 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { new_instr(OPC_SETRM); }
#line 3629 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 147: /* cat2_opc_1src: T_OP_CBITS_B  */
#line 918 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { new_instr(OPC_CBITS_B); }
#line 3635 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 148: /* cat2_opc_2src_cnd: T_OP_CMPS_F  */
#line 920 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { new_instr(OPC_CMPS_F); }
#line 3641 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 149: /* cat2_opc_2src_cnd: T_OP_CMPS_U  */
#line 921 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { new_instr(OPC_CMPS_U); }
#line 3647 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 150: /* cat2_opc_2src_cnd: T_OP_CMPS_S  */
#line 922 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { new_instr(OPC_CMPS_S); }
#line 3653 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 151: /* cat2_opc_2src_cnd: T_OP_CMPV_F  */
#line 923 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { new_instr(OPC_CMPV_F); }
#line 3659 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 152: /* cat2_opc_2src_cnd: T_OP_CMPV_U  */
#line 924 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { new_instr(OPC_CMPV_U); }
#line 3665 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 153: /* cat2_opc_2src_cnd: T_OP_CMPV_S  */
#line 925 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { new_instr(OPC_CMPV_S); }
#line 3671 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 154: /* cat2_opc_2src: T_OP_ADD_F  */
#line 927 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { new_instr(OPC_ADD_F); }
#line 3677 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 155: /* cat2_opc_2src: T_OP_MIN_F  */
#line 928 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { new_instr(OPC_MIN_F); }
#line 3683 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 156: /* cat2_opc_2src: T_OP_MAX_F  */
#line 929 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { new_instr(OPC_MAX_F); }
#line 3689 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 157: /* cat2_opc_2src: T_OP_MUL_F  */
#line 930 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { new_instr(OPC_MUL_F); }
#line 3695 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 158: /* cat2_opc_2src: T_OP_ADD_U  */
#line 931 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { new_instr(OPC_ADD_U); }
#line 3701 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 159: /* cat2_opc_2src: T_OP_ADD_S  */
#line 932 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { new_instr(OPC_ADD_S); }
#line 3707 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 160: /* cat2_opc_2src: T_OP_SUB_U  */
#line 933 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { new_instr(OPC_SUB_U); }
#line 3713 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 161: /* cat2_opc_2src: T_OP_SUB_S  */
#line 934 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { new_instr(OPC_SUB_S); }
#line 3719 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 162: /* cat2_opc_2src: T_OP_MIN_U  */
#line 935 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { new_instr(OPC_MIN_U); }
#line 3725 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 163: /* cat2_opc_2src: T_OP_MIN_S  */
#line 936 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { new_instr(OPC_MIN_S); }
#line 3731 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 164: /* cat2_opc_2src: T_OP_MAX_U  */
#line 937 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { new_instr(OPC_MAX_U); }
#line 3737 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 165: /* cat2_opc_2src: T_OP_MAX_S  */
#line 938 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { new_instr(OPC_MAX_S); }
#line 3743 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 166: /* cat2_opc_2src: T_OP_AND_B  */
#line 939 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { new_instr(OPC_AND_B); }
#line 3749 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 167: /* cat2_opc_2src: T_OP_OR_B  */
#line 940 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { new_instr(OPC_OR_B); }
#line 3755 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 168: /* cat2_opc_2src: T_OP_XOR_B  */
#line 941 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { new_instr(OPC_XOR_B); }
#line 3761 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 169: /* cat2_opc_2src: T_OP_MUL_U24  */
#line 942 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { new_instr(OPC_MUL_U24); }
#line 3767 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 170: /* cat2_opc_2src: T_OP_MUL_S24  */
#line 943 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { new_instr(OPC_MUL_S24); }
#line 3773 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 171: /* cat2_opc_2src: T_OP_MULL_U  */
#line 944 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { new_instr(OPC_MULL_U); }
#line 3779 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 172: /* cat2_opc_2src: T_OP_SHL_B  */
#line 945 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { new_instr(OPC_SHL_B); }
#line 3785 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 173: /* cat2_opc_2src: T_OP_SHR_B  */
#line 946 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { new_instr(OPC_SHR_B); }
#line 3791 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 174: /* cat2_opc_2src: T_OP_ASHR_B  */
#line 947 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { new_instr(OPC_ASHR_B); }
#line 3797 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 175: /* cat2_opc_2src: T_OP_BARY_F  */
#line 948 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { new_instr(OPC_BARY_F); }
#line 3803 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 176: /* cat2_opc_2src: T_OP_FLAT_B  */
#line 949 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { new_instr(OPC_FLAT_B); }
#line 3809 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 177: /* cat2_opc_2src: T_OP_MGEN_B  */
#line 950 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { new_instr(OPC_MGEN_B); }
#line 3815 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 178: /* cat2_opc_2src: T_OP_GETBIT_B  */
#line 951 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { new_instr(OPC_GETBIT_B); }
#line 3821 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 179: /* cat2_opc_2src: T_OP_SHB  */
#line 952 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { new_instr(OPC_SHB); }
#line 3827 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 180: /* cat2_opc_2src: T_OP_MSAD  */
#line 953 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { new_instr(OPC_MSAD); }
#line 3833 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 181: /* cond: T_LT  */
#line 955 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { instr->cat2.condition = IR3_COND_LT; }
#line 3839 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 182: /* cond: T_LE  */
#line 956 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { instr->cat2.condition = IR3_COND_LE; }
#line 3845 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 183: /* cond: T_GT  */
#line 957 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { instr->cat2.condition = IR3_COND_GT; }
#line 3851 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 184: /* cond: T_GE  */
#line 958 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { instr->cat2.condition = IR3_COND_GE; }
#line 3857 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 185: /* cond: T_EQ  */
#line 959 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { instr->cat2.condition = IR3_COND_EQ; }
#line 3863 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 186: /* cond: T_NE  */
#line 960 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { instr->cat2.condition = IR3_COND_NE; }
#line 3869 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 190: /* cat3_dp_signedness: '.' T_MIXED  */
#line 966 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                 { instr->cat3.signedness = IR3_SRC_MIXED; }
#line 3875 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 191: /* cat3_dp_signedness: '.' T_UNSIGNED  */
#line 967 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                 { instr->cat3.signedness = IR3_SRC_UNSIGNED; }
#line 3881 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 192: /* cat3_dp_pack: '.' T_LOW  */
#line 969 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                 { instr->cat3.packed = IR3_SRC_PACKED_LOW; }
#line 3887 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 193: /* cat3_dp_pack: '.' T_HIGH  */
#line 970 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                 { instr->cat3.packed = IR3_SRC_PACKED_HIGH; }
#line 3893 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 194: /* cat3_opc: T_OP_MAD_U16  */
#line 972 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { new_instr(OPC_MAD_U16); }
#line 3899 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 195: /* cat3_opc: T_OP_MADSH_U16  */
#line 973 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { new_instr(OPC_MADSH_U16); }
#line 3905 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 196: /* cat3_opc: T_OP_MAD_S16  */
#line 974 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { new_instr(OPC_MAD_S16); }
#line 3911 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 197: /* cat3_opc: T_OP_MADSH_M16  */
#line 975 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { new_instr(OPC_MADSH_M16); }
#line 3917 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 198: /* cat3_opc: T_OP_MAD_U24  */
#line 976 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { new_instr(OPC_MAD_U24); }
#line 3923 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 199: /* cat3_opc: T_OP_MAD_S24  */
#line 977 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { new_instr(OPC_MAD_S24); }
#line 3929 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 200: /* cat3_opc: T_OP_MAD_F16  */
#line 978 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { new_instr(OPC_MAD_F16); }
#line 3935 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 201: /* cat3_opc: T_OP_MAD_F32  */
#line 979 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { new_instr(OPC_MAD_F32); }
#line 3941 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 202: /* cat3_opc: T_OP_SEL_B16  */
#line 980 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { new_instr(OPC_SEL_B16); }
#line 3947 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 203: /* cat3_opc: T_OP_SEL_B32  */
#line 981 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { new_instr(OPC_SEL_B32); }
#line 3953 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 204: /* cat3_opc: T_OP_SEL_S16  */
#line 982 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { new_instr(OPC_SEL_S16); }
#line 3959 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 205: /* cat3_opc: T_OP_SEL_S32  */
#line 983 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { new_instr(OPC_SEL_S32); }
#line 3965 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 206: /* cat3_opc: T_OP_SEL_F16  */
#line 984 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { new_instr(OPC_SEL_F16); }
#line 3971 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 207: /* cat3_opc: T_OP_SEL_F32  */
#line 985 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { new_instr(OPC_SEL_F32); }
#line 3977 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 208: /* cat3_opc: T_OP_SAD_S16  */
#line 986 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { new_instr(OPC_SAD_S16); }
#line 3983 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 209: /* cat3_opc: T_OP_SAD_S32  */
#line 987 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { new_instr(OPC_SAD_S32); }
#line 3989 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 210: /* cat3_imm_reg_opc: T_OP_SHRM  */
#line 989 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { new_instr(OPC_SHRM); }
#line 3995 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 211: /* cat3_imm_reg_opc: T_OP_SHLM  */
#line 990 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { new_instr(OPC_SHLM); }
#line 4001 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 212: /* cat3_imm_reg_opc: T_OP_SHRG  */
#line 991 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { new_instr(OPC_SHRG); }
#line 4007 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 213: /* cat3_imm_reg_opc: T_OP_SHLG  */
#line 992 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { new_instr(OPC_SHLG); }
#line 4013 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 214: /* cat3_imm_reg_opc: T_OP_ANDG  */
#line 993 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { new_instr(OPC_ANDG); }
#line 4019 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 215: /* cat3_wmm: T_OP_WMM  */
#line 995 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { new_instr(OPC_WMM); }
#line 4025 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 216: /* cat3_wmm: T_OP_WMM_ACCU  */
#line 996 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { new_instr(OPC_WMM_ACCU); }
#line 4031 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 217: /* cat3_dp: T_OP_DP2ACC  */
#line 998 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { new_instr(OPC_DP2ACC); }
#line 4037 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 218: /* cat3_dp: T_OP_DP4ACC  */
#line 999 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { new_instr(OPC_DP4ACC); }
#line 4043 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 223: /* cat4_opc: T_OP_RCP  */
#line 1006 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { new_instr(OPC_RCP); }
#line 4049 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 224: /* cat4_opc: T_OP_RSQ  */
#line 1007 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { new_instr(OPC_RSQ); }
#line 4055 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 225: /* cat4_opc: T_OP_LOG2  */
#line 1008 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { new_instr(OPC_LOG2); }
#line 4061 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 226: /* cat4_opc: T_OP_EXP2  */
#line 1009 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { new_instr(OPC_EXP2); }
#line 4067 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 227: /* cat4_opc: T_OP_SIN  */
#line 1010 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { new_instr(OPC_SIN); }
#line 4073 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 228: /* cat4_opc: T_OP_COS  */
#line 1011 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { new_instr(OPC_COS); }
#line 4079 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 229: /* cat4_opc: T_OP_SQRT  */
#line 1012 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { new_instr(OPC_SQRT); }
#line 4085 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 230: /* cat4_opc: T_OP_HRSQ  */
#line 1013 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { new_instr(OPC_HRSQ); }
#line 4091 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 231: /* cat4_opc: T_OP_HLOG2  */
#line 1014 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { new_instr(OPC_HLOG2); }
#line 4097 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 232: /* cat4_opc: T_OP_HEXP2  */
#line 1015 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { new_instr(OPC_HEXP2); }
#line 4103 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 234: /* cat5_opc_dsxypp: T_OP_DSXPP_1  */
#line 1019 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { new_instr(OPC_DSXPP_1)->cat5.type = TYPE_F32; }
#line 4109 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 235: /* cat5_opc_dsxypp: T_OP_DSYPP_1  */
#line 1020 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { new_instr(OPC_DSYPP_1)->cat5.type = TYPE_F32; }
#line 4115 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 236: /* cat5_opc: T_OP_ISAM  */
#line 1022 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { new_instr(OPC_ISAM); }
#line 4121 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 237: /* cat5_opc: T_OP_ISAML  */
#line 1023 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { new_instr(OPC_ISAML); }
#line 4127 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 238: /* cat5_opc: T_OP_ISAMM  */
#line 1024 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { new_instr(OPC_ISAMM); }
#line 4133 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 239: /* cat5_opc: T_OP_SAM  */
#line 1025 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { new_instr(OPC_SAM); }
#line 4139 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 240: /* cat5_opc: T_OP_SAMB  */
#line 1026 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { new_instr(OPC_SAMB); }
#line 4145 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 241: /* cat5_opc: T_OP_SAML  */
#line 1027 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { new_instr(OPC_SAML); }
#line 4151 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 242: /* cat5_opc: T_OP_SAMGQ  */
#line 1028 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { new_instr(OPC_SAMGQ); }
#line 4157 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 243: /* cat5_opc: T_OP_GETLOD  */
#line 1029 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { new_instr(OPC_GETLOD); }
#line 4163 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 244: /* cat5_opc: T_OP_CONV  */
#line 1030 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { new_instr(OPC_CONV); }
#line 4169 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 245: /* cat5_opc: T_OP_CONVM  */
#line 1031 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { new_instr(OPC_CONVM); }
#line 4175 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 246: /* cat5_opc: T_OP_GETSIZE  */
#line 1032 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { new_instr(OPC_GETSIZE); }
#line 4181 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 247: /* cat5_opc: T_OP_GETBUF  */
#line 1033 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { new_instr(OPC_GETBUF); }
#line 4187 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 248: /* cat5_opc: T_OP_GETPOS  */
#line 1034 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { new_instr(OPC_GETPOS); }
#line 4193 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 249: /* cat5_opc: T_OP_GETINFO  */
#line 1035 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { new_instr(OPC_GETINFO); }
#line 4199 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 250: /* cat5_opc: T_OP_DSX  */
#line 1036 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { new_instr(OPC_DSX); }
#line 4205 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 251: /* cat5_opc: T_OP_DSY  */
#line 1037 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { new_instr(OPC_DSY); }
#line 4211 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 252: /* cat5_opc: T_OP_GATHER4R  */
#line 1038 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { new_instr(OPC_GATHER4R); }
#line 4217 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 253: /* cat5_opc: T_OP_GATHER4G  */
#line 1039 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { new_instr(OPC_GATHER4G); }
#line 4223 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 254: /* cat5_opc: T_OP_GATHER4B  */
#line 1040 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { new_instr(OPC_GATHER4B); }
#line 4229 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 255: /* cat5_opc: T_OP_GATHER4A  */
#line 1041 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { new_instr(OPC_GATHER4A); }
#line 4235 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 256: /* cat5_opc: T_OP_SAMGP0  */
#line 1042 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { new_instr(OPC_SAMGP0); }
#line 4241 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 257: /* cat5_opc: T_OP_SAMGP1  */
#line 1043 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { new_instr(OPC_SAMGP1); }
#line 4247 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 258: /* cat5_opc: T_OP_SAMGP2  */
#line 1044 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { new_instr(OPC_SAMGP2); }
#line 4253 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 259: /* cat5_opc: T_OP_SAMGP3  */
#line 1045 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { new_instr(OPC_SAMGP3); }
#line 4259 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 260: /* cat5_opc: T_OP_RGETPOS  */
#line 1046 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { new_instr(OPC_RGETPOS); }
#line 4265 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 261: /* cat5_opc: T_OP_RGETINFO  */
#line 1047 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { new_instr(OPC_RGETINFO); }
#line 4271 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 262: /* cat5_opc: T_OP_BRCST_A  */
#line 1048 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { new_instr(OPC_BRCST_ACTIVE); }
#line 4277 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 263: /* cat5_opc: T_OP_QSHUFFLE_BRCST  */
#line 1049 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                       { new_instr(OPC_QUAD_SHUFFLE_BRCST); }
#line 4283 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 264: /* cat5_opc: T_OP_QSHUFFLE_H  */
#line 1050 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                       { new_instr(OPC_QUAD_SHUFFLE_HORIZ); }
#line 4289 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 265: /* cat5_opc: T_OP_QSHUFFLE_V  */
#line 1051 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                       { new_instr(OPC_QUAD_SHUFFLE_VERT); }
#line 4295 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 266: /* cat5_opc: T_OP_QSHUFFLE_DIAG  */
#line 1052 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                       { new_instr(OPC_QUAD_SHUFFLE_DIAG); }
#line 4301 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 267: /* cat5_flag: '.' T_3D  */
#line 1054 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { instr->flags |= IR3_INSTR_3D; }
#line 4307 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 268: /* cat5_flag: '.' 'a'  */
#line 1055 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { instr->flags |= IR3_INSTR_A; }
#line 4313 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 269: /* cat5_flag: '.' 'o'  */
#line 1056 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { instr->flags |= IR3_INSTR_O; }
#line 4319 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 270: /* cat5_flag: '.' 'p'  */
#line 1057 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { instr->flags |= IR3_INSTR_P; }
#line 4325 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 271: /* cat5_flag: '.' 's'  */
#line 1058 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { instr->flags |= IR3_INSTR_S; }
#line 4331 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 272: /* cat5_flag: '.' T_S2EN  */
#line 1059 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { instr->flags |= IR3_INSTR_S2EN; }
#line 4337 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 273: /* cat5_flag: '.' T_UNIFORM  */
#line 1060 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { }
#line 4343 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 274: /* cat5_flag: '.' T_NONUNIFORM  */
#line 1061 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                     { instr->flags |= IR3_INSTR_NONUNIF; }
#line 4349 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 275: /* cat5_flag: '.' T_BASE  */
#line 1062 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { instr->flags |= IR3_INSTR_B; instr->cat5.tex_base = (yyvsp[0].tok); }
#line 4355 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 276: /* cat5_flag: '.' T_W  */
#line 1063 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { instr->cat5.cluster_size = (yyvsp[0].num); }
#line 4361 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 279: /* cat5_samp: T_SAMP  */
#line 1067 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { instr->cat5.samp = (yyvsp[0].tok); }
#line 4367 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 280: /* cat5_tex: T_TEX  */
#line 1068 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { instr->cat5.tex = (yyvsp[0].tok); }
#line 4373 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 281: /* cat5_type: '(' type ')'  */
#line 1069 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { instr->cat5.type = (yyvsp[-1].type); }
#line 4379 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 282: /* cat5_a1: src_reg  */
#line 1070 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { instr->flags |= IR3_INSTR_A1EN; }
#line 4385 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 298: /* cat6_typed: '.' T_UNTYPED  */
#line 1088 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { instr->cat6.typed = 0; }
#line 4391 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 299: /* cat6_typed: '.' T_TYPED  */
#line 1089 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { instr->cat6.typed = 1; }
#line 4397 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 300: /* cat6_dim: '.' T_1D  */
#line 1091 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                             { instr->cat6.d = 1; }
#line 4403 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 301: /* cat6_dim: '.' T_2D  */
#line 1092 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                             { instr->cat6.d = 2; }
#line 4409 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 302: /* cat6_dim: '.' T_3D  */
#line 1093 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                             { instr->cat6.d = 3; }
#line 4415 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 303: /* cat6_dim: '.' T_4D  */
#line 1094 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                             { instr->cat6.d = 4; }
#line 4421 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 304: /* cat6_type: '.' type  */
#line 1096 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                             { instr->cat6.type = (yyvsp[0].type); }
#line 4427 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 305: /* cat6_imm_offset: offset  */
#line 1097 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                             { new_src(0, IR3_REG_IMMED)->iim_val = (yyvsp[0].num); }
#line 4433 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 308: /* cat6_dst_offset: offset  */
#line 1100 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                             { instr->cat6.dst_offset = (yyvsp[0].num); }
#line 4439 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 310: /* cat6_immed: integer  */
#line 1103 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                             { instr->cat6.iim_val = (yyvsp[0].num); }
#line 4445 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 311: /* cat6_stg_ldg_a6xx_offset: '+' '(' src offset ')' '<' '<' integer  */
#line 1106 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                                           {
                        assert((yyvsp[0].num) == 2);
                        new_src(0, IR3_REG_IMMED)->uim_val = 0;
                        new_src(0, IR3_REG_IMMED)->uim_val = (yyvsp[-4].num);
                    }
#line 4455 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 312: /* cat6_stg_ldg_a6xx_offset: '+' src '<' '<' integer offset '<' '<' integer  */
#line 1111 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                                                  {
                        assert((yyvsp[0].num) == 2);
                        new_src(0, IR3_REG_IMMED)->uim_val = (yyvsp[-4].num) - 2;
                        new_src(0, IR3_REG_IMMED)->uim_val = (yyvsp[-3].num);
                    }
#line 4465 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 313: /* $@25: %empty  */
#line 1117 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                              { new_instr(OPC_LDG); }
#line 4471 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 315: /* $@26: %empty  */
#line 1118 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                              { new_instr(OPC_LDG_A); }
#line 4477 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 317: /* $@27: %empty  */
#line 1119 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                              { new_instr(OPC_LDP); }
#line 4483 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 319: /* $@28: %empty  */
#line 1120 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                              { new_instr(OPC_LDL); }
#line 4489 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 321: /* $@29: %empty  */
#line 1121 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                              { new_instr(OPC_LDLW); }
#line 4495 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 323: /* $@30: %empty  */
#line 1122 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                              { new_instr(OPC_LDLV); }
#line 4501 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 324: /* $@31: %empty  */
#line 1122 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                                                                                  {
                       new_src(0, IR3_REG_IMMED)->iim_val = (yyvsp[-1].num);
                   }
#line 4509 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 326: /* $@32: %empty  */
#line 1126 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                              { new_instr(OPC_STG); dummy_dst(); }
#line 4515 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 328: /* $@33: %empty  */
#line 1127 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                              { new_instr(OPC_STG_A); dummy_dst(); }
#line 4521 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 330: /* $@34: %empty  */
#line 1128 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                             { new_instr(OPC_STP); dummy_dst(); }
#line 4527 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 332: /* $@35: %empty  */
#line 1129 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                             { new_instr(OPC_STL); dummy_dst(); }
#line 4533 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 334: /* $@36: %empty  */
#line 1130 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                             { new_instr(OPC_STLW); dummy_dst(); }
#line 4539 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 336: /* $@37: %empty  */
#line 1132 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                             { new_instr(OPC_LDIB); }
#line 4545 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 338: /* $@38: %empty  */
#line 1133 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                             { new_instr(OPC_STIB); dummy_dst(); }
#line 4551 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 340: /* $@39: %empty  */
#line 1135 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                 { new_instr(OPC_PREFETCH); new_dst(0,0); /* dummy dst */ }
#line 4557 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 342: /* cat6_atomic_opc: T_OP_ATOMIC_ADD  */
#line 1137 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                       { new_instr(OPC_ATOMIC_ADD); }
#line 4563 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 343: /* cat6_atomic_opc: T_OP_ATOMIC_SUB  */
#line 1138 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                       { new_instr(OPC_ATOMIC_SUB); }
#line 4569 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 344: /* cat6_atomic_opc: T_OP_ATOMIC_XCHG  */
#line 1139 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                       { new_instr(OPC_ATOMIC_XCHG); }
#line 4575 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 345: /* cat6_atomic_opc: T_OP_ATOMIC_INC  */
#line 1140 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                       { new_instr(OPC_ATOMIC_INC); }
#line 4581 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 346: /* cat6_atomic_opc: T_OP_ATOMIC_DEC  */
#line 1141 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                       { new_instr(OPC_ATOMIC_DEC); }
#line 4587 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 347: /* cat6_atomic_opc: T_OP_ATOMIC_CMPXCHG  */
#line 1142 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                       { new_instr(OPC_ATOMIC_CMPXCHG); }
#line 4593 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 348: /* cat6_atomic_opc: T_OP_ATOMIC_MIN  */
#line 1143 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                       { new_instr(OPC_ATOMIC_MIN); }
#line 4599 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 349: /* cat6_atomic_opc: T_OP_ATOMIC_MAX  */
#line 1144 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                       { new_instr(OPC_ATOMIC_MAX); }
#line 4605 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 350: /* cat6_atomic_opc: T_OP_ATOMIC_AND  */
#line 1145 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                       { new_instr(OPC_ATOMIC_AND); }
#line 4611 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 351: /* cat6_atomic_opc: T_OP_ATOMIC_OR  */
#line 1146 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                       { new_instr(OPC_ATOMIC_OR); }
#line 4617 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 352: /* cat6_atomic_opc: T_OP_ATOMIC_XOR  */
#line 1147 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                       { new_instr(OPC_ATOMIC_XOR); }
#line 4623 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 353: /* cat6_a3xx_atomic_opc: T_OP_ATOMIC_S_ADD  */
#line 1149 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                              { new_instr(OPC_ATOMIC_S_ADD); }
#line 4629 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 354: /* cat6_a3xx_atomic_opc: T_OP_ATOMIC_S_SUB  */
#line 1150 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                              { new_instr(OPC_ATOMIC_S_SUB); }
#line 4635 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 355: /* cat6_a3xx_atomic_opc: T_OP_ATOMIC_S_XCHG  */
#line 1151 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                              { new_instr(OPC_ATOMIC_S_XCHG); }
#line 4641 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 356: /* cat6_a3xx_atomic_opc: T_OP_ATOMIC_S_INC  */
#line 1152 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                              { new_instr(OPC_ATOMIC_S_INC); }
#line 4647 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 357: /* cat6_a3xx_atomic_opc: T_OP_ATOMIC_S_DEC  */
#line 1153 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                              { new_instr(OPC_ATOMIC_S_DEC); }
#line 4653 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 358: /* cat6_a3xx_atomic_opc: T_OP_ATOMIC_S_CMPXCHG  */
#line 1154 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                              { new_instr(OPC_ATOMIC_S_CMPXCHG); }
#line 4659 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 359: /* cat6_a3xx_atomic_opc: T_OP_ATOMIC_S_MIN  */
#line 1155 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                              { new_instr(OPC_ATOMIC_S_MIN); }
#line 4665 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 360: /* cat6_a3xx_atomic_opc: T_OP_ATOMIC_S_MAX  */
#line 1156 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                              { new_instr(OPC_ATOMIC_S_MAX); }
#line 4671 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 361: /* cat6_a3xx_atomic_opc: T_OP_ATOMIC_S_AND  */
#line 1157 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                              { new_instr(OPC_ATOMIC_S_AND); }
#line 4677 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 362: /* cat6_a3xx_atomic_opc: T_OP_ATOMIC_S_OR  */
#line 1158 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                              { new_instr(OPC_ATOMIC_S_OR); }
#line 4683 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 363: /* cat6_a3xx_atomic_opc: T_OP_ATOMIC_S_XOR  */
#line 1159 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                              { new_instr(OPC_ATOMIC_S_XOR); }
#line 4689 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 364: /* cat6_a6xx_atomic_opc: T_OP_ATOMIC_G_ADD  */
#line 1161 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                              { new_instr(OPC_ATOMIC_G_ADD); }
#line 4695 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 365: /* cat6_a6xx_atomic_opc: T_OP_ATOMIC_G_SUB  */
#line 1162 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                              { new_instr(OPC_ATOMIC_G_SUB); }
#line 4701 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 366: /* cat6_a6xx_atomic_opc: T_OP_ATOMIC_G_XCHG  */
#line 1163 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                              { new_instr(OPC_ATOMIC_G_XCHG); }
#line 4707 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 367: /* cat6_a6xx_atomic_opc: T_OP_ATOMIC_G_INC  */
#line 1164 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                              { new_instr(OPC_ATOMIC_G_INC); }
#line 4713 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 368: /* cat6_a6xx_atomic_opc: T_OP_ATOMIC_G_DEC  */
#line 1165 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                              { new_instr(OPC_ATOMIC_G_DEC); }
#line 4719 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 369: /* cat6_a6xx_atomic_opc: T_OP_ATOMIC_G_CMPXCHG  */
#line 1166 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                              { new_instr(OPC_ATOMIC_G_CMPXCHG); }
#line 4725 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 370: /* cat6_a6xx_atomic_opc: T_OP_ATOMIC_G_MIN  */
#line 1167 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                              { new_instr(OPC_ATOMIC_G_MIN); }
#line 4731 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 371: /* cat6_a6xx_atomic_opc: T_OP_ATOMIC_G_MAX  */
#line 1168 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                              { new_instr(OPC_ATOMIC_G_MAX); }
#line 4737 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 372: /* cat6_a6xx_atomic_opc: T_OP_ATOMIC_G_AND  */
#line 1169 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                              { new_instr(OPC_ATOMIC_G_AND); }
#line 4743 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 373: /* cat6_a6xx_atomic_opc: T_OP_ATOMIC_G_OR  */
#line 1170 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                              { new_instr(OPC_ATOMIC_G_OR); }
#line 4749 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 374: /* cat6_a6xx_atomic_opc: T_OP_ATOMIC_G_XOR  */
#line 1171 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                              { new_instr(OPC_ATOMIC_G_XOR); }
#line 4755 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 381: /* cat6_ibo_opc_1src: T_OP_RESINFO  */
#line 1183 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { new_instr(OPC_RESINFO); }
#line 4761 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 382: /* cat6_ibo_opc_ldgb: T_OP_LDGB  */
#line 1185 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { new_instr(OPC_LDGB); }
#line 4767 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 383: /* cat6_ibo_opc_stgb: T_OP_STGB  */
#line 1186 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { new_instr(OPC_STGB); }
#line 4773 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 386: /* $@40: %empty  */
#line 1190 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                                                                  { dummy_dst(); }
#line 4779 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 388: /* cat6_id_opc: T_OP_GETSPID  */
#line 1193 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                { new_instr(OPC_GETSPID); }
#line 4785 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 389: /* cat6_id_opc: T_OP_GETWID  */
#line 1194 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                { new_instr(OPC_GETWID); }
#line 4791 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 390: /* cat6_id_opc: T_OP_GETFIBERID  */
#line 1195 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                   { new_instr(OPC_GETFIBERID); }
#line 4797 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 393: /* cat6_bindless_base: '.' T_BASE  */
#line 1200 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                              { instr->flags |= IR3_INSTR_B; instr->cat6.base = (yyvsp[0].tok); }
#line 4803 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 396: /* cat6_bindless_mode: T_NONUNIFORM cat6_bindless_base  */
#line 1204 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                                   { instr->flags |= IR3_INSTR_NONUNIF; }
#line 4809 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 398: /* cat6_reg_or_immed: integer  */
#line 1207 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                           { new_src(0, IR3_REG_IMMED)->iim_val = (yyvsp[0].num); }
#line 4815 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 399: /* cat6_bindless_ibo_opc_1src: T_OP_RESINFO_B  */
#line 1209 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                                 { new_instr(OPC_RESINFO); }
#line 4821 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 400: /* cat6_bindless_ibo_opc_2src: T_OP_ATOMIC_B_ADD  */
#line 1211 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                                     { new_instr(OPC_ATOMIC_B_ADD); dummy_dst(); }
#line 4827 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 401: /* cat6_bindless_ibo_opc_2src: T_OP_ATOMIC_B_SUB  */
#line 1212 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                            { new_instr(OPC_ATOMIC_B_SUB); dummy_dst(); }
#line 4833 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 402: /* cat6_bindless_ibo_opc_2src: T_OP_ATOMIC_B_XCHG  */
#line 1213 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                            { new_instr(OPC_ATOMIC_B_XCHG); dummy_dst(); }
#line 4839 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 403: /* cat6_bindless_ibo_opc_2src: T_OP_ATOMIC_B_INC  */
#line 1214 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                            { new_instr(OPC_ATOMIC_B_INC); dummy_dst(); }
#line 4845 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 404: /* cat6_bindless_ibo_opc_2src: T_OP_ATOMIC_B_DEC  */
#line 1215 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                            { new_instr(OPC_ATOMIC_B_DEC); dummy_dst(); }
#line 4851 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 405: /* cat6_bindless_ibo_opc_2src: T_OP_ATOMIC_B_CMPXCHG  */
#line 1216 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                            { new_instr(OPC_ATOMIC_B_CMPXCHG); dummy_dst(); }
#line 4857 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 406: /* cat6_bindless_ibo_opc_2src: T_OP_ATOMIC_B_MIN  */
#line 1217 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                            { new_instr(OPC_ATOMIC_B_MIN); dummy_dst(); }
#line 4863 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 407: /* cat6_bindless_ibo_opc_2src: T_OP_ATOMIC_B_MAX  */
#line 1218 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                            { new_instr(OPC_ATOMIC_B_MAX); dummy_dst(); }
#line 4869 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 408: /* cat6_bindless_ibo_opc_2src: T_OP_ATOMIC_B_AND  */
#line 1219 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                            { new_instr(OPC_ATOMIC_B_AND); dummy_dst(); }
#line 4875 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 409: /* cat6_bindless_ibo_opc_2src: T_OP_ATOMIC_B_OR  */
#line 1220 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                            { new_instr(OPC_ATOMIC_B_OR); dummy_dst(); }
#line 4881 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 410: /* cat6_bindless_ibo_opc_2src: T_OP_ATOMIC_B_XOR  */
#line 1221 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                            { new_instr(OPC_ATOMIC_B_XOR); dummy_dst(); }
#line 4887 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 411: /* cat6_bindless_ibo_opc_2src: T_OP_STIB_B  */
#line 1222 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                            { new_instr(OPC_STIB); dummy_dst(); }
#line 4893 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 412: /* cat6_bindless_ibo_opc_2src_dst: T_OP_LDIB_B  */
#line 1224 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                                         { new_instr(OPC_LDIB); }
#line 4899 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 414: /* cat6_bindless_ibo: cat6_bindless_ibo_opc_2src cat6_typed cat6_dim cat6_type '.' cat6_immed '.' cat6_bindless_mode src_reg ',' cat6_reg_or_immed ',' cat6_reg_or_immed  */
#line 1227 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                                                                                                                                                      { swap(instr->srcs[0], instr->srcs[2]); }
#line 4905 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 415: /* cat6_bindless_ibo: cat6_bindless_ibo_opc_2src_dst cat6_typed cat6_dim cat6_type '.' cat6_immed '.' cat6_bindless_mode dst_reg ',' cat6_reg_or_immed ',' cat6_reg_or_immed  */
#line 1228 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                                                                                                                                                          { swap(instr->srcs[0], instr->srcs[1]); }
#line 4911 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 416: /* cat6_bindless_ldc_opc: T_OP_LDC  */
#line 1230 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                 { new_instr(OPC_LDC); }
#line 4917 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 417: /* cat6_bindless_ldc_middle: T_OFFSET '.' cat6_immed '.' cat6_bindless_mode dst_reg  */
#line 1234 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                                                               { instr->cat6.d = (yyvsp[-5].tok); }
#line 4923 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 418: /* cat6_bindless_ldc_middle: cat6_immed '.' 'k' '.' cat6_bindless_mode 'c' '[' T_A1 ']'  */
#line 1235 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                                                                   { instr->opc = OPC_LDC_K; }
#line 4929 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 419: /* cat6_bindless_ldc: cat6_bindless_ldc_opc '.' cat6_bindless_ldc_middle ',' cat6_reg_or_immed ',' cat6_reg_or_immed  */
#line 1237 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                                                                                                  {
                      instr->cat6.type = TYPE_U32;
                      /* TODO cleanup ir3 src order: */
                      swap(instr->srcs[0], instr->srcs[1]);
                   }
#line 4939 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 420: /* stc_dst: integer  */
#line 1243 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                          { new_src(0, IR3_REG_IMMED)->iim_val = (yyvsp[0].num); }
#line 4945 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 421: /* stc_dst: T_A1  */
#line 1244 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                       { new_src(0, IR3_REG_IMMED)->iim_val = 0; instr->flags |= IR3_INSTR_A1EN; }
#line 4951 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 422: /* stc_dst: T_A1 '+' integer  */
#line 1245 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                   { new_src(0, IR3_REG_IMMED)->iim_val = (yyvsp[0].num); instr->flags |= IR3_INSTR_A1EN; }
#line 4957 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 423: /* $@41: %empty  */
#line 1247 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                   { new_instr(OPC_STC); }
#line 4963 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 425: /* cat6_todo: T_OP_G2L  */
#line 1249 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                            { new_instr(OPC_G2L); }
#line 4969 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 426: /* cat6_todo: T_OP_L2G  */
#line 1250 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                            { new_instr(OPC_L2G); }
#line 4975 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 427: /* cat6_todo: T_OP_RESFMT  */
#line 1251 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                            { new_instr(OPC_RESFMT); }
#line 4981 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 440: /* cat7_scope: '.' 'w'  */
#line 1266 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                            { instr->cat7.w = true; }
#line 4987 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 441: /* cat7_scope: '.' 'r'  */
#line 1267 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                            { instr->cat7.r = true; }
#line 4993 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 442: /* cat7_scope: '.' 'l'  */
#line 1268 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                            { instr->cat7.l = true; }
#line 4999 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 443: /* cat7_scope: '.' 'g'  */
#line 1269 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                            { instr->cat7.g = true; }
#line 5005 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 446: /* $@42: %empty  */
#line 1274 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                           { new_instr(OPC_BAR); }
#line 5011 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 448: /* $@43: %empty  */
#line 1275 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                           { new_instr(OPC_FENCE); }
#line 5017 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 451: /* src: T_REGISTER  */
#line 1279 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { (yyval.reg) = new_src((yyvsp[0].num), 0); }
#line 5023 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 452: /* src: T_A0  */
#line 1280 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { (yyval.reg) = new_src((61 << 3), IR3_REG_HALF); }
#line 5029 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 453: /* src: T_A1  */
#line 1281 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { (yyval.reg) = new_src((61 << 3) + 1, IR3_REG_HALF); }
#line 5035 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 454: /* src: T_P0  */
#line 1282 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { (yyval.reg) = new_src((62 << 3) + (yyvsp[0].num), 0); }
#line 5041 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 455: /* dst: T_REGISTER  */
#line 1284 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { (yyval.reg) = new_dst((yyvsp[0].num), 0); }
#line 5047 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 456: /* dst: T_A0  */
#line 1285 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { (yyval.reg) = new_dst((61 << 3), IR3_REG_HALF); }
#line 5053 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 457: /* dst: T_A1  */
#line 1286 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { (yyval.reg) = new_dst((61 << 3) + 1, IR3_REG_HALF); }
#line 5059 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 458: /* dst: T_P0  */
#line 1287 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { (yyval.reg) = new_dst((62 << 3) + (yyvsp[0].num), 0); }
#line 5065 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 459: /* const: T_CONSTANT  */
#line 1289 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { (yyval.reg) = new_src((yyvsp[0].num), IR3_REG_CONST); }
#line 5071 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 460: /* dst_reg_flag: T_EVEN  */
#line 1291 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { instr->cat1.round = ROUND_EVEN; }
#line 5077 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 461: /* dst_reg_flag: T_POS_INFINITY  */
#line 1292 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { instr->cat1.round = ROUND_POS_INF; }
#line 5083 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 462: /* dst_reg_flag: T_NEG_INFINITY  */
#line 1293 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { instr->cat1.round = ROUND_NEG_INF; }
#line 5089 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 463: /* dst_reg_flag: T_EI  */
#line 1294 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { rflags.flags |= IR3_REG_EI; }
#line 5095 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 464: /* dst_reg_flag: T_WRMASK  */
#line 1295 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { rflags.wrmask = (yyvsp[0].num); }
#line 5101 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 467: /* dst_reg: dst  */
#line 1301 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                       { (yyvsp[0].reg)->flags |= IR3_REG_R; }
#line 5107 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 468: /* dst_reg: dst_reg_flags dst  */
#line 1302 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                       { (yyvsp[0].reg)->flags |= IR3_REG_R; }
#line 5113 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 469: /* src_reg_flag: T_ABSNEG  */
#line 1304 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { rflags.flags |= IR3_REG_ABS|IR3_REG_NEGATE; }
#line 5119 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 470: /* src_reg_flag: T_NEG  */
#line 1305 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { rflags.flags |= IR3_REG_NEGATE; }
#line 5125 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 471: /* src_reg_flag: T_ABS  */
#line 1306 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { rflags.flags |= IR3_REG_ABS; }
#line 5131 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 472: /* src_reg_flag: T_R  */
#line 1307 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                  { rflags.flags |= IR3_REG_R; }
#line 5137 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 492: /* offset: %empty  */
#line 1336 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                   { (yyval.num) = 0; }
#line 5143 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 493: /* offset: '+' integer  */
#line 1337 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                               { (yyval.num) = (yyvsp[0].num); }
#line 5149 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 494: /* offset: '-' integer  */
#line 1338 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                               { (yyval.num) = -(yyvsp[0].num); }
#line 5155 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 495: /* relative_gpr_src: 'r' '<' T_A0 offset '>'  */
#line 1340 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                            { new_src(0, IR3_REG_RELATIV)->array.offset = (yyvsp[-1].num); }
#line 5161 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 496: /* relative_gpr_src: T_HR '<' T_A0 offset '>'  */
#line 1341 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                             { new_src(0, IR3_REG_RELATIV | IR3_REG_HALF)->array.offset = (yyvsp[-1].num); }
#line 5167 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 497: /* relative_gpr_dst: 'r' '<' T_A0 offset '>'  */
#line 1343 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                            { new_dst(0, IR3_REG_RELATIV)->array.offset = (yyvsp[-1].num); }
#line 5173 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 498: /* relative_gpr_dst: T_HR '<' T_A0 offset '>'  */
#line 1344 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                             { new_dst(0, IR3_REG_RELATIV | IR3_REG_HALF)->array.offset = (yyvsp[-1].num); }
#line 5179 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 499: /* relative_const: 'c' '<' T_A0 offset '>'  */
#line 1346 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                            { new_src(0, IR3_REG_RELATIV | IR3_REG_CONST)->array.offset = (yyvsp[-1].num); }
#line 5185 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 500: /* relative_const: T_HC '<' T_A0 offset '>'  */
#line 1347 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                             { new_src(0, IR3_REG_RELATIV | IR3_REG_CONST | IR3_REG_HALF)->array.offset = (yyvsp[-1].num); }
#line 5191 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 503: /* immediate_cat1: integer  */
#line 1356 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                       { new_src(0, IR3_REG_IMMED)->iim_val = type_size(instr->cat1.src_type) < 32 ? (yyvsp[0].num) & 0xffff : (yyvsp[0].num); }
#line 5197 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 504: /* immediate_cat1: '(' integer ')'  */
#line 1357 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                       { new_src(0, IR3_REG_IMMED)->fim_val = (yyvsp[-1].num); }
#line 5203 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 505: /* immediate_cat1: '(' float ')'  */
#line 1358 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                       { new_src(0, IR3_REG_IMMED)->fim_val = (yyvsp[-1].flt); }
#line 5209 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 506: /* immediate_cat1: 'h' '(' integer ')'  */
#line 1359 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                       { new_src(0, IR3_REG_IMMED | IR3_REG_HALF)->iim_val = (yyvsp[-1].num) & 0xffff; }
#line 5215 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 507: /* immediate_cat1: 'h' '(' float ')'  */
#line 1360 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                       { new_src(0, IR3_REG_IMMED | IR3_REG_HALF)->uim_val = _mesa_float_to_half((yyvsp[-1].flt)); }
#line 5221 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 508: /* immediate_cat1: '(' T_NAN ')'  */
#line 1361 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                       { new_src(0, IR3_REG_IMMED)->fim_val = NAN; }
#line 5227 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 509: /* immediate_cat1: '(' T_INF ')'  */
#line 1362 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                       { new_src(0, IR3_REG_IMMED)->fim_val = INFINITY; }
#line 5233 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 510: /* immediate: integer  */
#line 1364 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                       { new_src(0, IR3_REG_IMMED)->iim_val = (yyvsp[0].num); }
#line 5239 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 511: /* immediate: '(' integer ')'  */
#line 1365 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                       { new_src(0, IR3_REG_IMMED)->fim_val = (yyvsp[-1].num); }
#line 5245 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 512: /* immediate: flut_immed  */
#line 1366 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                       { new_src(0, IR3_REG_IMMED)->uim_val = (yyvsp[0].num); }
#line 5251 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 513: /* immediate: 'h' '(' integer ')'  */
#line 1367 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                       { new_src(0, IR3_REG_IMMED | IR3_REG_HALF)->iim_val = (yyvsp[-1].num); }
#line 5257 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 514: /* immediate: 'h' flut_immed  */
#line 1368 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                                       { new_src(0, IR3_REG_IMMED | IR3_REG_HALF)->uim_val = (yyvsp[0].num); }
#line 5263 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 527: /* integer: T_INT  */
#line 1384 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                               { (yyval.num) = (yyvsp[0].num); }
#line 5269 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 528: /* integer: '-' T_INT  */
#line 1385 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                               { (yyval.num) = -(yyvsp[0].num); }
#line 5275 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 529: /* integer: T_HEX  */
#line 1386 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                               { (yyval.num) = (yyvsp[0].unum); }
#line 5281 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 530: /* integer: '-' T_HEX  */
#line 1387 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                               { (yyval.num) = -(yyvsp[0].unum); }
#line 5287 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 531: /* float: T_FLOAT  */
#line 1389 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                               { (yyval.flt) = (yyvsp[0].flt); }
#line 5293 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 532: /* float: '-' T_FLOAT  */
#line 1390 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                               { (yyval.flt) = -(yyvsp[0].flt); }
#line 5299 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 533: /* type: T_TYPE_F16  */
#line 1392 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                               { (yyval.type) = TYPE_F16; }
#line 5305 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 534: /* type: T_TYPE_F32  */
#line 1393 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                               { (yyval.type) = TYPE_F32; }
#line 5311 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 535: /* type: T_TYPE_U16  */
#line 1394 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                               { (yyval.type) = TYPE_U16; }
#line 5317 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 536: /* type: T_TYPE_U32  */
#line 1395 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                               { (yyval.type) = TYPE_U32; }
#line 5323 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 537: /* type: T_TYPE_S16  */
#line 1396 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                               { (yyval.type) = TYPE_S16; }
#line 5329 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 538: /* type: T_TYPE_S32  */
#line 1397 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                               { (yyval.type) = TYPE_S32; }
#line 5335 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 539: /* type: T_TYPE_U8  */
#line 1398 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                               { (yyval.type) = TYPE_U8;  }
#line 5341 "src/freedreno/ir3/ir3_parser.c"
    break;

  case 540: /* type: T_TYPE_S8  */
#line 1399 "../mesa-22.1.7/src/freedreno/ir3/ir3_parser.y"
                               { (yyval.type) = TYPE_S8;  }
#line 5347 "src/freedreno/ir3/ir3_parser.c"
    break;


#line 5351 "src/freedreno/ir3/ir3_parser.c"

      default: break;
    }
  /* User semantic actions sometimes alter yychar, and that requires
     that yytoken be updated with the new translation.  We take the
     approach of translating immediately before every use of yytoken.
     One alternative is translating here after every semantic action,
     but that translation would be missed if the semantic action invokes
     YYABORT, YYACCEPT, or YYERROR immediately after altering yychar or
     if it invokes YYBACKUP.  In the case of YYABORT or YYACCEPT, an
     incorrect destructor might then be invoked immediately.  In the
     case of YYERROR or YYBACKUP, subsequent parser actions might lead
     to an incorrect destructor call or verbose syntax error message
     before the lookahead is translated.  */
  YY_SYMBOL_PRINT ("-> $$ =", YY_CAST (yysymbol_kind_t, yyr1[yyn]), &yyval, &yyloc);

  YYPOPSTACK (yylen);
  yylen = 0;

  *++yyvsp = yyval;

  /* Now 'shift' the result of the reduction.  Determine what state
     that goes to, based on the state we popped back to and the rule
     number reduced by.  */
  {
    const int yylhs = yyr1[yyn] - YYNTOKENS;
    const int yyi = yypgoto[yylhs] + *yyssp;
    yystate = (0 <= yyi && yyi <= YYLAST && yycheck[yyi] == *yyssp
               ? yytable[yyi]
               : yydefgoto[yylhs]);
  }

  goto yynewstate;


/*--------------------------------------.
| yyerrlab -- here on detecting error.  |
`--------------------------------------*/
yyerrlab:
  /* Make sure we have latest lookahead translation.  See comments at
     user semantic actions for why this is necessary.  */
  yytoken = yychar == YYEMPTY ? YYSYMBOL_YYEMPTY : YYTRANSLATE (yychar);
  /* If not already recovering from an error, report this error.  */
  if (!yyerrstatus)
    {
      ++yynerrs;
      {
        yypcontext_t yyctx
          = {yyssp, yytoken};
        char const *yymsgp = YY_("syntax error");
        int yysyntax_error_status;
        yysyntax_error_status = yysyntax_error (&yymsg_alloc, &yymsg, &yyctx);
        if (yysyntax_error_status == 0)
          yymsgp = yymsg;
        else if (yysyntax_error_status == -1)
          {
            if (yymsg != yymsgbuf)
              YYSTACK_FREE (yymsg);
            yymsg = YY_CAST (char *,
                             YYSTACK_ALLOC (YY_CAST (YYSIZE_T, yymsg_alloc)));
            if (yymsg)
              {
                yysyntax_error_status
                  = yysyntax_error (&yymsg_alloc, &yymsg, &yyctx);
                yymsgp = yymsg;
              }
            else
              {
                yymsg = yymsgbuf;
                yymsg_alloc = sizeof yymsgbuf;
                yysyntax_error_status = YYENOMEM;
              }
          }
        yyerror (yymsgp);
        if (yysyntax_error_status == YYENOMEM)
          YYNOMEM;
      }
    }

  if (yyerrstatus == 3)
    {
      /* If just tried and failed to reuse lookahead token after an
         error, discard it.  */

      if (yychar <= YYEOF)
        {
          /* Return failure if at end of input.  */
          if (yychar == YYEOF)
            YYABORT;
        }
      else
        {
          yydestruct ("Error: discarding",
                      yytoken, &yylval);
          yychar = YYEMPTY;
        }
    }

  /* Else will try to reuse lookahead token after shifting the error
     token.  */
  goto yyerrlab1;


/*---------------------------------------------------.
| yyerrorlab -- error raised explicitly by YYERROR.  |
`---------------------------------------------------*/
yyerrorlab:
  /* Pacify compilers when the user code never invokes YYERROR and the
     label yyerrorlab therefore never appears in user code.  */
  if (0)
    YYERROR;
  ++yynerrs;

  /* Do not reclaim the symbols of the rule whose action triggered
     this YYERROR.  */
  YYPOPSTACK (yylen);
  yylen = 0;
  YY_STACK_PRINT (yyss, yyssp);
  yystate = *yyssp;
  goto yyerrlab1;


/*-------------------------------------------------------------.
| yyerrlab1 -- common code for both syntax error and YYERROR.  |
`-------------------------------------------------------------*/
yyerrlab1:
  yyerrstatus = 3;      /* Each real token shifted decrements this.  */

  /* Pop stack until we find a state that shifts the error token.  */
  for (;;)
    {
      yyn = yypact[yystate];
      if (!yypact_value_is_default (yyn))
        {
          yyn += YYSYMBOL_YYerror;
          if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror)
            {
              yyn = yytable[yyn];
              if (0 < yyn)
                break;
            }
        }

      /* Pop the current state because it cannot handle the error token.  */
      if (yyssp == yyss)
        YYABORT;


      yydestruct ("Error: popping",
                  YY_ACCESSING_SYMBOL (yystate), yyvsp);
      YYPOPSTACK (1);
      yystate = *yyssp;
      YY_STACK_PRINT (yyss, yyssp);
    }

  YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
  *++yyvsp = yylval;
  YY_IGNORE_MAYBE_UNINITIALIZED_END


  /* Shift the error token.  */
  YY_SYMBOL_PRINT ("Shifting", YY_ACCESSING_SYMBOL (yyn), yyvsp, yylsp);

  yystate = yyn;
  goto yynewstate;


/*-------------------------------------.
| yyacceptlab -- YYACCEPT comes here.  |
`-------------------------------------*/
yyacceptlab:
  yyresult = 0;
  goto yyreturnlab;


/*-----------------------------------.
| yyabortlab -- YYABORT comes here.  |
`-----------------------------------*/
yyabortlab:
  yyresult = 1;
  goto yyreturnlab;


/*-----------------------------------------------------------.
| yyexhaustedlab -- YYNOMEM (memory exhaustion) comes here.  |
`-----------------------------------------------------------*/
yyexhaustedlab:
  yyerror (YY_("memory exhausted"));
  yyresult = 2;
  goto yyreturnlab;


/*----------------------------------------------------------.
| yyreturnlab -- parsing is finished, clean up and return.  |
`----------------------------------------------------------*/
yyreturnlab:
  if (yychar != YYEMPTY)
    {
      /* Make sure we have latest lookahead translation.  See comments at
         user semantic actions for why this is necessary.  */
      yytoken = YYTRANSLATE (yychar);
      yydestruct ("Cleanup: discarding lookahead",
                  yytoken, &yylval);
    }
  /* Do not reclaim the symbols of the rule whose action triggered
     this YYABORT or YYACCEPT.  */
  YYPOPSTACK (yylen);
  YY_STACK_PRINT (yyss, yyssp);
  while (yyssp != yyss)
    {
      yydestruct ("Cleanup: popping",
                  YY_ACCESSING_SYMBOL (+*yyssp), yyvsp);
      YYPOPSTACK (1);
    }
#ifndef yyoverflow
  if (yyss != yyssa)
    YYSTACK_FREE (yyss);
#endif
  if (yymsg != yymsgbuf)
    YYSTACK_FREE (yymsg);
  return yyresult;
}

