/* A Bison parser, made by GNU Bison 1.875b. */ /* Skeleton parser for Yacc-like parsing with Bison, Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003 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 2, 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, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ /* As a special exception, when this file is copied by Bison into a Bison output file, you may use that output file without restriction. This special exception was added by the Free Software Foundation in version 1.24 of Bison. */ /* Written by Richard Stallman by simplifying the original so called ``semantic'' parser. */ /* 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. */ #define YYBISON 1 /* Skeleton name. */ #define YYSKELETON_NAME "yacc.c" /* Pure parsers. */ #define YYPURE 0 /* Using locations. */ #define YYLSP_NEEDED 0 /* Tokens. */ #ifndef YYTOKENTYPE # define YYTOKENTYPE /* Put the tokens into the symbol table, so that GDB and other debuggers know about them. */ enum yytokentype { Y_EOF = 258, Y_NL = 259, Y_INT = 260, Y_ID = 261, Y_REG = 262, Y_FP_REG = 263, Y_STR = 264, Y_FP = 265, Y_ABS_D_OP = 266, Y_ABS_PS_OP = 267, Y_ABS_S_OP = 268, Y_ADD_D_OP = 269, Y_ADD_OP = 270, Y_ADD_PS_OP = 271, Y_ADD_S_OP = 272, Y_ADDI_OP = 273, Y_ADDIU_OP = 274, Y_ADDU_OP = 275, Y_ALNV_PS_OP = 276, Y_AND_OP = 277, Y_ANDI_OP = 278, Y_BC1F_OP = 279, Y_BC1FL_OP = 280, Y_BC1T_OP = 281, Y_BC1TL_OP = 282, Y_BC2F_OP = 283, Y_BC2FL_OP = 284, Y_BC2T_OP = 285, Y_BC2TL_OP = 286, Y_BEQ_OP = 287, Y_BEQL_OP = 288, Y_BGEZ_OP = 289, Y_BGEZAL_OP = 290, Y_BGEZALL_OP = 291, Y_BGEZL_OP = 292, Y_BGTZ_OP = 293, Y_BGTZL_OP = 294, Y_BLEZ_OP = 295, Y_BLEZL_OP = 296, Y_BLTZ_OP = 297, Y_BLTZAL_OP = 298, Y_BLTZALL_OP = 299, Y_BLTZL_OP = 300, Y_BNE_OP = 301, Y_BNEL_OP = 302, Y_BREAK_OP = 303, Y_C_EQ_D_OP = 304, Y_C_EQ_PS_OP = 305, Y_C_EQ_S_OP = 306, Y_C_F_D_OP = 307, Y_C_F_PS_OP = 308, Y_C_F_S_OP = 309, Y_C_LE_D_OP = 310, Y_C_LE_PS_OP = 311, Y_C_LE_S_OP = 312, Y_C_LT_D_OP = 313, Y_C_LT_PS_OP = 314, Y_C_LT_S_OP = 315, Y_C_NGE_D_OP = 316, Y_C_NGE_PS_OP = 317, Y_C_NGE_S_OP = 318, Y_C_NGL_D_OP = 319, Y_C_NGL_PS_OP = 320, Y_C_NGL_S_OP = 321, Y_C_NGLE_D_OP = 322, Y_C_NGLE_PS_OP = 323, Y_C_NGLE_S_OP = 324, Y_C_NGT_D_OP = 325, Y_C_NGT_PS_OP = 326, Y_C_NGT_S_OP = 327, Y_C_OLE_D_OP = 328, Y_C_OLE_PS_OP = 329, Y_C_OLE_S_OP = 330, Y_C_OLT_D_OP = 331, Y_C_OLT_PS_OP = 332, Y_C_OLT_S_OP = 333, Y_C_SEQ_D_OP = 334, Y_C_SEQ_PS_OP = 335, Y_C_SEQ_S_OP = 336, Y_C_SF_D_OP = 337, Y_C_SF_PS_OP = 338, Y_C_SF_S_OP = 339, Y_C_UEQ_D_OP = 340, Y_C_UEQ_PS_OP = 341, Y_C_UEQ_S_OP = 342, Y_C_ULE_D_OP = 343, Y_C_ULE_PS_OP = 344, Y_C_ULE_S_OP = 345, Y_C_ULT_D_OP = 346, Y_C_ULT_PS_OP = 347, Y_C_ULT_S_OP = 348, Y_C_UN_D_OP = 349, Y_C_UN_PS_OP = 350, Y_C_UN_S_OP = 351, Y_CACHE_OP = 352, Y_CEIL_L_D_OP = 353, Y_CEIL_L_S_OP = 354, Y_CEIL_W_D_OP = 355, Y_CEIL_W_S_OP = 356, Y_CFC0_OP = 357, Y_CFC1_OP = 358, Y_CFC2_OP = 359, Y_CLO_OP = 360, Y_CLZ_OP = 361, Y_COP2_OP = 362, Y_CTC0_OP = 363, Y_CTC1_OP = 364, Y_CTC2_OP = 365, Y_CVT_D_L_OP = 366, Y_CVT_D_S_OP = 367, Y_CVT_D_W_OP = 368, Y_CVT_L_D_OP = 369, Y_CVT_L_S_OP = 370, Y_CVT_PS_S_OP = 371, Y_CVT_S_D_OP = 372, Y_CVT_S_L_OP = 373, Y_CVT_S_PL_OP = 374, Y_CVT_S_PU_OP = 375, Y_CVT_S_W_OP = 376, Y_CVT_W_D_OP = 377, Y_CVT_W_S_OP = 378, Y_DERET_OP = 379, Y_DI_OP = 380, Y_DIV_D_OP = 381, Y_DIV_OP = 382, Y_DIV_S_OP = 383, Y_DIVU_OP = 384, Y_EHB_OP = 385, Y_EI_OP = 386, Y_ERET_OP = 387, Y_EXT_OP = 388, Y_FLOOR_L_D_OP = 389, Y_FLOOR_L_S_OP = 390, Y_FLOOR_W_D_OP = 391, Y_FLOOR_W_S_OP = 392, Y_INS_OP = 393, Y_J_OP = 394, Y_JAL_OP = 395, Y_JALR_HB_OP = 396, Y_JALR_OP = 397, Y_JR_HB_OP = 398, Y_JR_OP = 399, Y_LB_OP = 400, Y_LBU_OP = 401, Y_LDC1_OP = 402, Y_LDC2_OP = 403, Y_LDXC1_OP = 404, Y_LH_OP = 405, Y_LHU_OP = 406, Y_LL_OP = 407, Y_LUI_OP = 408, Y_LUXC1_OP = 409, Y_LW_OP = 410, Y_LWC1_OP = 411, Y_LWC2_OP = 412, Y_LWL_OP = 413, Y_LWR_OP = 414, Y_LWXC1_OP = 415, Y_MADD_D_OP = 416, Y_MADD_OP = 417, Y_MADD_PS_OP = 418, Y_MADD_S_OP = 419, Y_MADDU_OP = 420, Y_MFC0_OP = 421, Y_MFC1_OP = 422, Y_MFC2_OP = 423, Y_MFHC1_OP = 424, Y_MFHC2_OP = 425, Y_MFHI_OP = 426, Y_MFLO_OP = 427, Y_MOV_D_OP = 428, Y_MOV_PS_OP = 429, Y_MOV_S_OP = 430, Y_MOVF_D_OP = 431, Y_MOVF_OP = 432, Y_MOVF_PS_OP = 433, Y_MOVF_S_OP = 434, Y_MOVN_D_OP = 435, Y_MOVN_OP = 436, Y_MOVN_PS_OP = 437, Y_MOVN_S_OP = 438, Y_MOVT_D_OP = 439, Y_MOVT_OP = 440, Y_MOVT_PS_OP = 441, Y_MOVT_S_OP = 442, Y_MOVZ_D_OP = 443, Y_MOVZ_OP = 444, Y_MOVZ_PS_OP = 445, Y_MOVZ_S_OP = 446, Y_MSUB_D_OP = 447, Y_MSUB_OP = 448, Y_MSUB_PS_OP = 449, Y_MSUB_S_OP = 450, Y_MSUBU_OP = 451, Y_MTC0_OP = 452, Y_MTC1_OP = 453, Y_MTC2_OP = 454, Y_MTHC1_OP = 455, Y_MTHC2_OP = 456, Y_MTHI_OP = 457, Y_MTLO_OP = 458, Y_MUL_D_OP = 459, Y_MUL_PS_OP = 460, Y_MUL_S_OP = 461, Y_MUL_OP = 462, Y_MULT_OP = 463, Y_MULTU_OP = 464, Y_NEG_D_OP = 465, Y_NEG_PS_OP = 466, Y_NEG_S_OP = 467, Y_NMADD_D_OP = 468, Y_NMADD_PS_OP = 469, Y_NMADD_S_OP = 470, Y_NMSUB_D_OP = 471, Y_NMSUB_PS_OP = 472, Y_NMSUB_S_OP = 473, Y_NOR_OP = 474, Y_OR_OP = 475, Y_ORI_OP = 476, Y_PFW_OP = 477, Y_PLL_PS_OP = 478, Y_PLU_PS_OP = 479, Y_PREF_OP = 480, Y_PREFX_OP = 481, Y_PUL_PS_OP = 482, Y_PUU_PS_OP = 483, Y_RDHWR_OP = 484, Y_RDPGPR_OP = 485, Y_RECIP_D_OP = 486, Y_RECIP_S_OP = 487, Y_RFE_OP = 488, Y_ROTR_OP = 489, Y_ROTRV_OP = 490, Y_ROUND_L_D_OP = 491, Y_ROUND_L_S_OP = 492, Y_ROUND_W_D_OP = 493, Y_ROUND_W_S_OP = 494, Y_RSQRT_D_OP = 495, Y_RSQRT_S_OP = 496, Y_SB_OP = 497, Y_SC_OP = 498, Y_SDBBP_OP = 499, Y_SDC1_OP = 500, Y_SDC2_OP = 501, Y_SDXC1_OP = 502, Y_SEB_OP = 503, Y_SEH_OP = 504, Y_SH_OP = 505, Y_SLL_OP = 506, Y_SLLV_OP = 507, Y_SLT_OP = 508, Y_SLTI_OP = 509, Y_SLTIU_OP = 510, Y_SLTU_OP = 511, Y_SQRT_D_OP = 512, Y_SQRT_S_OP = 513, Y_SRA_OP = 514, Y_SRAV_OP = 515, Y_SRL_OP = 516, Y_SRLV_OP = 517, Y_SSNOP_OP = 518, Y_SUB_D_OP = 519, Y_SUB_OP = 520, Y_SUB_PS_OP = 521, Y_SUB_S_OP = 522, Y_SUBU_OP = 523, Y_SUXC1_OP = 524, Y_SW_OP = 525, Y_SWC1_OP = 526, Y_SWC2_OP = 527, Y_SWL_OP = 528, Y_SWR_OP = 529, Y_SWXC1_OP = 530, Y_SYNC_OP = 531, Y_SYNCI_OP = 532, Y_SYSCALL_OP = 533, Y_TEQ_OP = 534, Y_TEQI_OP = 535, Y_TGE_OP = 536, Y_TGEI_OP = 537, Y_TGEIU_OP = 538, Y_TGEU_OP = 539, Y_TLBP_OP = 540, Y_TLBR_OP = 541, Y_TLBWI_OP = 542, Y_TLBWR_OP = 543, Y_TLT_OP = 544, Y_TLTI_OP = 545, Y_TLTIU_OP = 546, Y_TLTU_OP = 547, Y_TNE_OP = 548, Y_TNEI_OP = 549, Y_TRUNC_L_D_OP = 550, Y_TRUNC_L_S_OP = 551, Y_TRUNC_W_D_OP = 552, Y_TRUNC_W_S_OP = 553, Y_WRPGPR_OP = 554, Y_WSBH_OP = 555, Y_XOR_OP = 556, Y_XORI_OP = 557, Y_ABS_POP = 558, Y_B_POP = 559, Y_BAL_POP = 560, Y_BEQZ_POP = 561, Y_BGE_POP = 562, Y_BGEU_POP = 563, Y_BGT_POP = 564, Y_BGTU_POP = 565, Y_BLE_POP = 566, Y_BLEU_POP = 567, Y_BLT_POP = 568, Y_BLTU_POP = 569, Y_BNEZ_POP = 570, Y_LA_POP = 571, Y_LD_POP = 572, Y_L_D_POP = 573, Y_L_S_POP = 574, Y_LI_D_POP = 575, Y_LI_POP = 576, Y_LI_S_POP = 577, Y_MFC1_D_POP = 578, Y_MOVE_POP = 579, Y_MTC1_D_POP = 580, Y_MULO_POP = 581, Y_MULOU_POP = 582, Y_NEG_POP = 583, Y_NEGU_POP = 584, Y_NOP_POP = 585, Y_NOT_POP = 586, Y_REM_POP = 587, Y_REMU_POP = 588, Y_ROL_POP = 589, Y_ROR_POP = 590, Y_S_D_POP = 591, Y_S_S_POP = 592, Y_SD_POP = 593, Y_SEQ_POP = 594, Y_SGE_POP = 595, Y_SGEU_POP = 596, Y_SGT_POP = 597, Y_SGTU_POP = 598, Y_SLE_POP = 599, Y_SLEU_POP = 600, Y_SNE_POP = 601, Y_ULH_POP = 602, Y_ULHU_POP = 603, Y_ULW_POP = 604, Y_USH_POP = 605, Y_USW_POP = 606, Y_ALIAS_DIR = 607, Y_ALIGN_DIR = 608, Y_ASCII_DIR = 609, Y_ASCIIZ_DIR = 610, Y_ASM0_DIR = 611, Y_BGNB_DIR = 612, Y_BYTE_DIR = 613, Y_COMM_DIR = 614, Y_DATA_DIR = 615, Y_DOUBLE_DIR = 616, Y_END_DIR = 617, Y_ENDB_DIR = 618, Y_ENDR_DIR = 619, Y_ENT_DIR = 620, Y_ERR_DIR = 621, Y_EXTERN_DIR = 622, Y_FILE_DIR = 623, Y_FLOAT_DIR = 624, Y_FMASK_DIR = 625, Y_FRAME_DIR = 626, Y_GLOBAL_DIR = 627, Y_HALF_DIR = 628, Y_K_DATA_DIR = 629, Y_K_TEXT_DIR = 630, Y_LABEL_DIR = 631, Y_LCOMM_DIR = 632, Y_LIVEREG_DIR = 633, Y_LOC_DIR = 634, Y_MASK_DIR = 635, Y_NOALIAS_DIR = 636, Y_OPTIONS_DIR = 637, Y_RDATA_DIR = 638, Y_REPEAT_DIR = 639, Y_SDATA_DIR = 640, Y_SET_DIR = 641, Y_SPACE_DIR = 642, Y_STRUCT_DIR = 643, Y_TEXT_DIR = 644, Y_VERSTAMP_DIR = 645, Y_VREG_DIR = 646, Y_WORD_DIR = 647 }; #endif #define Y_EOF 258 #define Y_NL 259 #define Y_INT 260 #define Y_ID 261 #define Y_REG 262 #define Y_FP_REG 263 #define Y_STR 264 #define Y_FP 265 #define Y_ABS_D_OP 266 #define Y_ABS_PS_OP 267 #define Y_ABS_S_OP 268 #define Y_ADD_D_OP 269 #define Y_ADD_OP 270 #define Y_ADD_PS_OP 271 #define Y_ADD_S_OP 272 #define Y_ADDI_OP 273 #define Y_ADDIU_OP 274 #define Y_ADDU_OP 275 #define Y_ALNV_PS_OP 276 #define Y_AND_OP 277 #define Y_ANDI_OP 278 #define Y_BC1F_OP 279 #define Y_BC1FL_OP 280 #define Y_BC1T_OP 281 #define Y_BC1TL_OP 282 #define Y_BC2F_OP 283 #define Y_BC2FL_OP 284 #define Y_BC2T_OP 285 #define Y_BC2TL_OP 286 #define Y_BEQ_OP 287 #define Y_BEQL_OP 288 #define Y_BGEZ_OP 289 #define Y_BGEZAL_OP 290 #define Y_BGEZALL_OP 291 #define Y_BGEZL_OP 292 #define Y_BGTZ_OP 293 #define Y_BGTZL_OP 294 #define Y_BLEZ_OP 295 #define Y_BLEZL_OP 296 #define Y_BLTZ_OP 297 #define Y_BLTZAL_OP 298 #define Y_BLTZALL_OP 299 #define Y_BLTZL_OP 300 #define Y_BNE_OP 301 #define Y_BNEL_OP 302 #define Y_BREAK_OP 303 #define Y_C_EQ_D_OP 304 #define Y_C_EQ_PS_OP 305 #define Y_C_EQ_S_OP 306 #define Y_C_F_D_OP 307 #define Y_C_F_PS_OP 308 #define Y_C_F_S_OP 309 #define Y_C_LE_D_OP 310 #define Y_C_LE_PS_OP 311 #define Y_C_LE_S_OP 312 #define Y_C_LT_D_OP 313 #define Y_C_LT_PS_OP 314 #define Y_C_LT_S_OP 315 #define Y_C_NGE_D_OP 316 #define Y_C_NGE_PS_OP 317 #define Y_C_NGE_S_OP 318 #define Y_C_NGL_D_OP 319 #define Y_C_NGL_PS_OP 320 #define Y_C_NGL_S_OP 321 #define Y_C_NGLE_D_OP 322 #define Y_C_NGLE_PS_OP 323 #define Y_C_NGLE_S_OP 324 #define Y_C_NGT_D_OP 325 #define Y_C_NGT_PS_OP 326 #define Y_C_NGT_S_OP 327 #define Y_C_OLE_D_OP 328 #define Y_C_OLE_PS_OP 329 #define Y_C_OLE_S_OP 330 #define Y_C_OLT_D_OP 331 #define Y_C_OLT_PS_OP 332 #define Y_C_OLT_S_OP 333 #define Y_C_SEQ_D_OP 334 #define Y_C_SEQ_PS_OP 335 #define Y_C_SEQ_S_OP 336 #define Y_C_SF_D_OP 337 #define Y_C_SF_PS_OP 338 #define Y_C_SF_S_OP 339 #define Y_C_UEQ_D_OP 340 #define Y_C_UEQ_PS_OP 341 #define Y_C_UEQ_S_OP 342 #define Y_C_ULE_D_OP 343 #define Y_C_ULE_PS_OP 344 #define Y_C_ULE_S_OP 345 #define Y_C_ULT_D_OP 346 #define Y_C_ULT_PS_OP 347 #define Y_C_ULT_S_OP 348 #define Y_C_UN_D_OP 349 #define Y_C_UN_PS_OP 350 #define Y_C_UN_S_OP 351 #define Y_CACHE_OP 352 #define Y_CEIL_L_D_OP 353 #define Y_CEIL_L_S_OP 354 #define Y_CEIL_W_D_OP 355 #define Y_CEIL_W_S_OP 356 #define Y_CFC0_OP 357 #define Y_CFC1_OP 358 #define Y_CFC2_OP 359 #define Y_CLO_OP 360 #define Y_CLZ_OP 361 #define Y_COP2_OP 362 #define Y_CTC0_OP 363 #define Y_CTC1_OP 364 #define Y_CTC2_OP 365 #define Y_CVT_D_L_OP 366 #define Y_CVT_D_S_OP 367 #define Y_CVT_D_W_OP 368 #define Y_CVT_L_D_OP 369 #define Y_CVT_L_S_OP 370 #define Y_CVT_PS_S_OP 371 #define Y_CVT_S_D_OP 372 #define Y_CVT_S_L_OP 373 #define Y_CVT_S_PL_OP 374 #define Y_CVT_S_PU_OP 375 #define Y_CVT_S_W_OP 376 #define Y_CVT_W_D_OP 377 #define Y_CVT_W_S_OP 378 #define Y_DERET_OP 379 #define Y_DI_OP 380 #define Y_DIV_D_OP 381 #define Y_DIV_OP 382 #define Y_DIV_S_OP 383 #define Y_DIVU_OP 384 #define Y_EHB_OP 385 #define Y_EI_OP 386 #define Y_ERET_OP 387 #define Y_EXT_OP 388 #define Y_FLOOR_L_D_OP 389 #define Y_FLOOR_L_S_OP 390 #define Y_FLOOR_W_D_OP 391 #define Y_FLOOR_W_S_OP 392 #define Y_INS_OP 393 #define Y_J_OP 394 #define Y_JAL_OP 395 #define Y_JALR_HB_OP 396 #define Y_JALR_OP 397 #define Y_JR_HB_OP 398 #define Y_JR_OP 399 #define Y_LB_OP 400 #define Y_LBU_OP 401 #define Y_LDC1_OP 402 #define Y_LDC2_OP 403 #define Y_LDXC1_OP 404 #define Y_LH_OP 405 #define Y_LHU_OP 406 #define Y_LL_OP 407 #define Y_LUI_OP 408 #define Y_LUXC1_OP 409 #define Y_LW_OP 410 #define Y_LWC1_OP 411 #define Y_LWC2_OP 412 #define Y_LWL_OP 413 #define Y_LWR_OP 414 #define Y_LWXC1_OP 415 #define Y_MADD_D_OP 416 #define Y_MADD_OP 417 #define Y_MADD_PS_OP 418 #define Y_MADD_S_OP 419 #define Y_MADDU_OP 420 #define Y_MFC0_OP 421 #define Y_MFC1_OP 422 #define Y_MFC2_OP 423 #define Y_MFHC1_OP 424 #define Y_MFHC2_OP 425 #define Y_MFHI_OP 426 #define Y_MFLO_OP 427 #define Y_MOV_D_OP 428 #define Y_MOV_PS_OP 429 #define Y_MOV_S_OP 430 #define Y_MOVF_D_OP 431 #define Y_MOVF_OP 432 #define Y_MOVF_PS_OP 433 #define Y_MOVF_S_OP 434 #define Y_MOVN_D_OP 435 #define Y_MOVN_OP 436 #define Y_MOVN_PS_OP 437 #define Y_MOVN_S_OP 438 #define Y_MOVT_D_OP 439 #define Y_MOVT_OP 440 #define Y_MOVT_PS_OP 441 #define Y_MOVT_S_OP 442 #define Y_MOVZ_D_OP 443 #define Y_MOVZ_OP 444 #define Y_MOVZ_PS_OP 445 #define Y_MOVZ_S_OP 446 #define Y_MSUB_D_OP 447 #define Y_MSUB_OP 448 #define Y_MSUB_PS_OP 449 #define Y_MSUB_S_OP 450 #define Y_MSUBU_OP 451 #define Y_MTC0_OP 452 #define Y_MTC1_OP 453 #define Y_MTC2_OP 454 #define Y_MTHC1_OP 455 #define Y_MTHC2_OP 456 #define Y_MTHI_OP 457 #define Y_MTLO_OP 458 #define Y_MUL_D_OP 459 #define Y_MUL_PS_OP 460 #define Y_MUL_S_OP 461 #define Y_MUL_OP 462 #define Y_MULT_OP 463 #define Y_MULTU_OP 464 #define Y_NEG_D_OP 465 #define Y_NEG_PS_OP 466 #define Y_NEG_S_OP 467 #define Y_NMADD_D_OP 468 #define Y_NMADD_PS_OP 469 #define Y_NMADD_S_OP 470 #define Y_NMSUB_D_OP 471 #define Y_NMSUB_PS_OP 472 #define Y_NMSUB_S_OP 473 #define Y_NOR_OP 474 #define Y_OR_OP 475 #define Y_ORI_OP 476 #define Y_PFW_OP 477 #define Y_PLL_PS_OP 478 #define Y_PLU_PS_OP 479 #define Y_PREF_OP 480 #define Y_PREFX_OP 481 #define Y_PUL_PS_OP 482 #define Y_PUU_PS_OP 483 #define Y_RDHWR_OP 484 #define Y_RDPGPR_OP 485 #define Y_RECIP_D_OP 486 #define Y_RECIP_S_OP 487 #define Y_RFE_OP 488 #define Y_ROTR_OP 489 #define Y_ROTRV_OP 490 #define Y_ROUND_L_D_OP 491 #define Y_ROUND_L_S_OP 492 #define Y_ROUND_W_D_OP 493 #define Y_ROUND_W_S_OP 494 #define Y_RSQRT_D_OP 495 #define Y_RSQRT_S_OP 496 #define Y_SB_OP 497 #define Y_SC_OP 498 #define Y_SDBBP_OP 499 #define Y_SDC1_OP 500 #define Y_SDC2_OP 501 #define Y_SDXC1_OP 502 #define Y_SEB_OP 503 #define Y_SEH_OP 504 #define Y_SH_OP 505 #define Y_SLL_OP 506 #define Y_SLLV_OP 507 #define Y_SLT_OP 508 #define Y_SLTI_OP 509 #define Y_SLTIU_OP 510 #define Y_SLTU_OP 511 #define Y_SQRT_D_OP 512 #define Y_SQRT_S_OP 513 #define Y_SRA_OP 514 #define Y_SRAV_OP 515 #define Y_SRL_OP 516 #define Y_SRLV_OP 517 #define Y_SSNOP_OP 518 #define Y_SUB_D_OP 519 #define Y_SUB_OP 520 #define Y_SUB_PS_OP 521 #define Y_SUB_S_OP 522 #define Y_SUBU_OP 523 #define Y_SUXC1_OP 524 #define Y_SW_OP 525 #define Y_SWC1_OP 526 #define Y_SWC2_OP 527 #define Y_SWL_OP 528 #define Y_SWR_OP 529 #define Y_SWXC1_OP 530 #define Y_SYNC_OP 531 #define Y_SYNCI_OP 532 #define Y_SYSCALL_OP 533 #define Y_TEQ_OP 534 #define Y_TEQI_OP 535 #define Y_TGE_OP 536 #define Y_TGEI_OP 537 #define Y_TGEIU_OP 538 #define Y_TGEU_OP 539 #define Y_TLBP_OP 540 #define Y_TLBR_OP 541 #define Y_TLBWI_OP 542 #define Y_TLBWR_OP 543 #define Y_TLT_OP 544 #define Y_TLTI_OP 545 #define Y_TLTIU_OP 546 #define Y_TLTU_OP 547 #define Y_TNE_OP 548 #define Y_TNEI_OP 549 #define Y_TRUNC_L_D_OP 550 #define Y_TRUNC_L_S_OP 551 #define Y_TRUNC_W_D_OP 552 #define Y_TRUNC_W_S_OP 553 #define Y_WRPGPR_OP 554 #define Y_WSBH_OP 555 #define Y_XOR_OP 556 #define Y_XORI_OP 557 #define Y_ABS_POP 558 #define Y_B_POP 559 #define Y_BAL_POP 560 #define Y_BEQZ_POP 561 #define Y_BGE_POP 562 #define Y_BGEU_POP 563 #define Y_BGT_POP 564 #define Y_BGTU_POP 565 #define Y_BLE_POP 566 #define Y_BLEU_POP 567 #define Y_BLT_POP 568 #define Y_BLTU_POP 569 #define Y_BNEZ_POP 570 #define Y_LA_POP 571 #define Y_LD_POP 572 #define Y_L_D_POP 573 #define Y_L_S_POP 574 #define Y_LI_D_POP 575 #define Y_LI_POP 576 #define Y_LI_S_POP 577 #define Y_MFC1_D_POP 578 #define Y_MOVE_POP 579 #define Y_MTC1_D_POP 580 #define Y_MULO_POP 581 #define Y_MULOU_POP 582 #define Y_NEG_POP 583 #define Y_NEGU_POP 584 #define Y_NOP_POP 585 #define Y_NOT_POP 586 #define Y_REM_POP 587 #define Y_REMU_POP 588 #define Y_ROL_POP 589 #define Y_ROR_POP 590 #define Y_S_D_POP 591 #define Y_S_S_POP 592 #define Y_SD_POP 593 #define Y_SEQ_POP 594 #define Y_SGE_POP 595 #define Y_SGEU_POP 596 #define Y_SGT_POP 597 #define Y_SGTU_POP 598 #define Y_SLE_POP 599 #define Y_SLEU_POP 600 #define Y_SNE_POP 601 #define Y_ULH_POP 602 #define Y_ULHU_POP 603 #define Y_ULW_POP 604 #define Y_USH_POP 605 #define Y_USW_POP 606 #define Y_ALIAS_DIR 607 #define Y_ALIGN_DIR 608 #define Y_ASCII_DIR 609 #define Y_ASCIIZ_DIR 610 #define Y_ASM0_DIR 611 #define Y_BGNB_DIR 612 #define Y_BYTE_DIR 613 #define Y_COMM_DIR 614 #define Y_DATA_DIR 615 #define Y_DOUBLE_DIR 616 #define Y_END_DIR 617 #define Y_ENDB_DIR 618 #define Y_ENDR_DIR 619 #define Y_ENT_DIR 620 #define Y_ERR_DIR 621 #define Y_EXTERN_DIR 622 #define Y_FILE_DIR 623 #define Y_FLOAT_DIR 624 #define Y_FMASK_DIR 625 #define Y_FRAME_DIR 626 #define Y_GLOBAL_DIR 627 #define Y_HALF_DIR 628 #define Y_K_DATA_DIR 629 #define Y_K_TEXT_DIR 630 #define Y_LABEL_DIR 631 #define Y_LCOMM_DIR 632 #define Y_LIVEREG_DIR 633 #define Y_LOC_DIR 634 #define Y_MASK_DIR 635 #define Y_NOALIAS_DIR 636 #define Y_OPTIONS_DIR 637 #define Y_RDATA_DIR 638 #define Y_REPEAT_DIR 639 #define Y_SDATA_DIR 640 #define Y_SET_DIR 641 #define Y_SPACE_DIR 642 #define Y_STRUCT_DIR 643 #define Y_TEXT_DIR 644 #define Y_VERSTAMP_DIR 645 #define Y_VREG_DIR 646 #define Y_WORD_DIR 647 /* Copy the first part of user declarations. */ #line 432 "parser.y" #include #include "spim.h" #include "string-stream.h" #include "spim-utils.h" #include "inst.h" #include "reg.h" #include "mem.h" #include "sym-tbl.h" #include "data.h" #include "scanner.h" #include "parser.h" /* return (0) */ #define LINE_PARSE_DONE YYACCEPT /* return (1) */ #define FILE_PARSE_DONE YYABORT typedef struct ll { label *head; struct ll *tail; } label_list; /* Exported Variables: */ int data_dir; /* Non-zero means item in data segment */ int text_dir; /* Non-zero means item in text segment */ int parse_error_occurred; /* Non-zero => parse resulted in error */ /* Local functions: */ static imm_expr *branch_offset (int n_inst); static int cc_to_rt (int cc, int nd, int tf); static void check_imm_range (imm_expr*, int32, int32); static void check_uimm_range (imm_expr*, uint32, uint32); static void clear_labels (); static label_list *cons_label (label *head, label_list *tail); static void div_inst (int op, int rd, int rs, int rt, int const_divisor); static void mips32_r2_inst (); static void mult_inst (int op, int rd, int rs, int rt); static void nop_inst (); static void set_eq_inst (int op, int rd, int rs, int rt); static void set_ge_inst (int op, int rd, int rs, int rt); static void set_gt_inst (int op, int rd, int rs, int rt); static void set_le_inst (int op, int rd, int rs, int rt); static void store_word_data (int value); static void trap_inst (); static void yywarn (char*); /* Local variables: */ static int null_term; /* Non-zero means string terminate by \0 */ static void (*store_op) (); /* Function to store items in an EXPR_LST */ static label_list *this_line_labels = NULL; /* List of label for curent line */ static int noat_flag = 0; /* Non-zero means program can use $1 */ static char *input_file_name; /* Name of file being parsed */ /* Enabling traces. */ #ifndef YYDEBUG # define YYDEBUG 0 #endif /* Enabling verbose error messages. */ #ifdef YYERROR_VERBOSE # undef YYERROR_VERBOSE # define YYERROR_VERBOSE 1 #else # define YYERROR_VERBOSE 0 #endif #if ! defined (YYSTYPE) && ! defined (YYSTYPE_IS_DECLARED) typedef int YYSTYPE; # define yystype YYSTYPE /* obsolescent; will be withdrawn */ # define YYSTYPE_IS_DECLARED 1 # define YYSTYPE_IS_TRIVIAL 1 #endif /* Copy the second part of user declarations. */ /* Line 214 of yacc.c. */ #line 943 "y.tab.c" #if ! defined (yyoverflow) || YYERROR_VERBOSE /* The parser invokes alloca or malloc; define the necessary symbols. */ # if YYSTACK_USE_ALLOCA # define YYSTACK_ALLOC alloca # else # ifndef YYSTACK_USE_ALLOCA # if defined (alloca) || defined (_ALLOCA_H) # define YYSTACK_ALLOC alloca # else # ifdef __GNUC__ # define YYSTACK_ALLOC __builtin_alloca # endif # endif # endif # endif # ifdef YYSTACK_ALLOC /* Pacify GCC's `empty if-body' warning. */ # define YYSTACK_FREE(Ptr) do { /* empty */; } while (0) # else # if defined (__STDC__) || defined (__cplusplus) # include /* INFRINGES ON USER NAME SPACE */ # define YYSIZE_T size_t # endif # define YYSTACK_ALLOC malloc # define YYSTACK_FREE free # endif #endif /* ! defined (yyoverflow) || YYERROR_VERBOSE */ #if (! defined (yyoverflow) \ && (! defined (__cplusplus) \ || (YYSTYPE_IS_TRIVIAL))) /* A type that is properly aligned for any stack member. */ union yyalloc { short yyss; YYSTYPE yyvs; }; /* The size of the maximum gap between one aligned stack and the next. */ # define YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1) /* The size of an array large to enough to hold all stacks, each with N elements. */ # define YYSTACK_BYTES(N) \ ((N) * (sizeof (short) + sizeof (YYSTYPE)) \ + YYSTACK_GAP_MAXIMUM) /* Copy COUNT objects from FROM to TO. The source and destination do not overlap. */ # ifndef YYCOPY # if 1 < __GNUC__ # define YYCOPY(To, From, Count) \ __builtin_memcpy (To, From, (Count) * sizeof (*(From))) # else # define YYCOPY(To, From, Count) \ do \ { \ register YYSIZE_T yyi; \ for (yyi = 0; yyi < (Count); yyi++) \ (To)[yyi] = (From)[yyi]; \ } \ while (0) # endif # endif /* 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) \ do \ { \ YYSIZE_T yynewbytes; \ YYCOPY (&yyptr->Stack, Stack, yysize); \ Stack = &yyptr->Stack; \ yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \ yyptr += yynewbytes / sizeof (*yyptr); \ } \ while (0) #endif #if defined (__STDC__) || defined (__cplusplus) typedef signed char yysigned_char; #else typedef short yysigned_char; #endif /* YYFINAL -- State number of the termination state. */ #define YYFINAL 3 /* YYLAST -- Last index in YYTABLE. */ #define YYLAST 1391 /* YYNTOKENS -- Number of terminals. */ #define YYNTOKENS 400 /* YYNNTS -- Number of nonterminals. */ #define YYNNTS 119 /* YYNRULES -- Number of rules. */ #define YYNRULES 565 /* YYNRULES -- Number of states. */ #define YYNSTATES 836 /* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX. */ #define YYUNDEFTOK 2 #define YYMAXUTOK 647 #define YYTRANSLATE(YYX) \ ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK) /* YYTRANSLATE[YYLEX] -- Bison symbol number corresponding to YYLEX. */ static const unsigned short 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, 2, 2, 2, 2, 2, 2, 2, 395, 396, 2, 397, 2, 398, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 393, 2, 2, 394, 399, 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, 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, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392 }; #if YYDEBUG /* YYPRHS[YYN] -- Index of the first RHS symbol of rule number YYN in YYRHS. */ static const unsigned short yyprhs[] = { 0, 0, 3, 4, 7, 10, 12, 15, 19, 20, 24, 25, 29, 31, 33, 35, 39, 43, 47, 51, 55, 59, 63, 67, 71, 75, 79, 83, 87, 91, 95, 99, 103, 105, 108, 112, 114, 116, 119, 122, 124, 126, 130, 134, 138, 142, 146, 148, 150, 154, 157, 162, 167, 171, 176, 181, 185, 190, 194, 199, 203, 208, 213, 218, 223, 228, 233, 237, 241, 246, 251, 255, 259, 264, 269, 274, 279, 283, 288, 293, 298, 303, 308, 313, 319, 324, 329, 334, 339, 344, 349, 354, 359, 362, 366, 370, 374, 379, 384, 389, 394, 399, 404, 409, 414, 419, 424, 427, 430, 434, 437, 441, 445, 449, 453, 458, 463, 468, 473, 478, 481, 484, 489, 493, 497, 501, 505, 509, 514, 519, 525, 529, 534, 538, 541, 543, 545, 547, 549, 551, 553, 555, 557, 559, 561, 563, 565, 567, 569, 571, 573, 575, 577, 579, 581, 583, 585, 587, 589, 591, 593, 595, 597, 599, 601, 603, 605, 607, 609, 611, 613, 615, 617, 619, 621, 623, 625, 627, 629, 631, 633, 635, 637, 639, 641, 643, 645, 647, 649, 651, 653, 655, 657, 659, 661, 663, 665, 667, 669, 671, 673, 675, 677, 679, 681, 683, 685, 687, 689, 691, 693, 695, 697, 699, 701, 703, 705, 707, 709, 711, 713, 715, 717, 719, 721, 723, 725, 727, 729, 731, 733, 735, 737, 739, 741, 743, 745, 747, 749, 751, 753, 755, 757, 759, 761, 763, 765, 767, 769, 771, 773, 775, 777, 779, 781, 783, 785, 787, 789, 791, 793, 795, 797, 799, 801, 803, 805, 807, 809, 811, 813, 815, 817, 819, 821, 823, 825, 827, 829, 831, 833, 835, 837, 839, 841, 843, 845, 847, 849, 851, 853, 855, 857, 859, 861, 863, 865, 867, 869, 871, 873, 875, 877, 879, 881, 883, 885, 887, 889, 891, 893, 895, 897, 899, 901, 903, 905, 907, 909, 911, 913, 915, 917, 919, 921, 923, 925, 927, 929, 931, 933, 935, 937, 939, 941, 943, 945, 947, 949, 951, 953, 955, 957, 959, 961, 963, 965, 967, 969, 971, 973, 975, 977, 979, 981, 983, 985, 987, 989, 991, 993, 995, 997, 999, 1001, 1003, 1005, 1007, 1009, 1011, 1013, 1015, 1017, 1019, 1021, 1023, 1025, 1027, 1029, 1031, 1033, 1035, 1037, 1039, 1041, 1043, 1045, 1047, 1049, 1051, 1053, 1055, 1057, 1059, 1061, 1063, 1065, 1067, 1069, 1071, 1073, 1075, 1077, 1079, 1081, 1083, 1085, 1087, 1089, 1091, 1093, 1095, 1097, 1099, 1101, 1103, 1105, 1107, 1109, 1111, 1113, 1115, 1117, 1119, 1121, 1123, 1125, 1127, 1129, 1131, 1133, 1135, 1137, 1139, 1141, 1143, 1145, 1147, 1149, 1151, 1153, 1155, 1157, 1159, 1161, 1163, 1165, 1167, 1169, 1171, 1173, 1175, 1177, 1179, 1181, 1183, 1187, 1190, 1191, 1195, 1196, 1200, 1202, 1205, 1206, 1210, 1214, 1216, 1219, 1221, 1224, 1225, 1229, 1232, 1235, 1237, 1240, 1244, 1248, 1250, 1254, 1255, 1259, 1263, 1268, 1271, 1272, 1276, 1279, 1283, 1287, 1291, 1295, 1299, 1302, 1305, 1307, 1310, 1312, 1315, 1318, 1321, 1324, 1326, 1329, 1331, 1334, 1338, 1343, 1344, 1348, 1349, 1352, 1356, 1358, 1363, 1365, 1370, 1374, 1378, 1382, 1389, 1396, 1397, 1400, 1402, 1404, 1406, 1413, 1415, 1419, 1423, 1425, 1429, 1432, 1434, 1436, 1438, 1440, 1442, 1444, 1446, 1448, 1450, 1452, 1454, 1456, 1458, 1461, 1463, 1465, 1469, 1470, 1473, 1475, 1477, 1480, 1482, 1486, 1489, 1491, 1492, 1495, 1497, 1498, 1499 }; /* YYRHS -- A `-1'-separated list of the rules' RHS. */ static const short yyrhs[] = { 401, 0, -1, -1, 402, 403, -1, 404, 405, -1, 405, -1, 517, 393, -1, 517, 394, 5, -1, -1, 409, 406, 408, -1, -1, 478, 407, 408, -1, 408, -1, 4, -1, 3, -1, 410, 497, 486, -1, 413, 505, 486, -1, 414, 501, 486, -1, 411, 497, 492, -1, 316, 497, 486, -1, 321, 497, 493, -1, 320, 500, 10, -1, 322, 500, 10, -1, 349, 497, 486, -1, 412, 497, 486, -1, 415, 500, 486, -1, 416, 495, 486, -1, 417, 505, 486, -1, 351, 495, 486, -1, 350, 495, 486, -1, 418, 501, 486, -1, 419, 500, 486, -1, 420, -1, 421, 486, -1, 422, 5, 486, -1, 423, -1, 276, -1, 276, 5, -1, 48, 5, -1, 330, -1, 263, -1, 303, 497, 495, -1, 328, 497, 495, -1, 329, 497, 495, -1, 331, 497, 495, -1, 324, 497, 495, -1, 424, -1, 425, -1, 426, 497, 495, -1, 427, 497, -1, 428, 497, 495, 496, -1, 428, 497, 495, 493, -1, 428, 497, 493, -1, 429, 497, 495, 496, -1, 429, 497, 495, 5, -1, 429, 497, 5, -1, 430, 497, 495, 491, -1, 430, 497, 491, -1, 431, 497, 495, 492, -1, 431, 497, 492, -1, 432, 497, 495, 5, -1, 432, 497, 495, 496, -1, 433, 497, 495, 5, -1, 434, 497, 495, 496, -1, 435, 497, 495, 496, -1, 435, 497, 495, 493, -1, 435, 497, 493, -1, 436, 497, 495, -1, 437, 497, 495, 496, -1, 437, 497, 495, 493, -1, 437, 497, 493, -1, 438, 497, 495, -1, 438, 497, 495, 496, -1, 438, 497, 495, 493, -1, 439, 497, 495, 496, -1, 439, 497, 495, 493, -1, 444, 495, 496, -1, 445, 497, 495, 496, -1, 445, 497, 495, 493, -1, 335, 497, 495, 496, -1, 334, 497, 495, 496, -1, 335, 497, 495, 493, -1, 334, 497, 495, 493, -1, 446, 500, 502, 5, 5, -1, 440, 497, 495, 496, -1, 440, 497, 495, 493, -1, 441, 497, 495, 496, -1, 441, 497, 495, 493, -1, 442, 497, 495, 496, -1, 442, 497, 495, 493, -1, 443, 497, 495, 496, -1, 443, 497, 495, 493, -1, 447, 506, -1, 447, 504, 506, -1, 448, 495, 506, -1, 449, 495, 506, -1, 450, 495, 496, 506, -1, 450, 495, 489, 506, -1, 451, 495, 496, 506, -1, 451, 495, 489, 506, -1, 452, 495, 496, 506, -1, 452, 495, 489, 506, -1, 453, 495, 496, 506, -1, 453, 495, 489, 506, -1, 454, 495, 496, 506, -1, 454, 495, 489, 506, -1, 455, 506, -1, 455, 495, -1, 455, 497, 495, -1, 456, 506, -1, 457, 495, 491, -1, 458, 495, 496, -1, 465, 500, 501, -1, 466, 500, 501, -1, 461, 497, 495, 504, -1, 467, 500, 501, 498, -1, 469, 500, 501, 504, -1, 470, 500, 501, 504, -1, 468, 500, 501, 498, -1, 459, 498, -1, 460, 498, -1, 461, 497, 495, 496, -1, 462, 498, 505, -1, 463, 498, 505, -1, 464, 498, 505, -1, 471, 500, 502, -1, 472, 500, 502, -1, 473, 500, 501, 502, -1, 474, 500, 501, 502, -1, 475, 500, 501, 502, 503, -1, 476, 501, 502, -1, 476, 504, 501, 502, -1, 477, 501, 502, -1, 107, 493, -1, 145, -1, 146, -1, 150, -1, 151, -1, 152, -1, 155, -1, 158, -1, 159, -1, 222, -1, 317, -1, 153, -1, 347, -1, 348, -1, 148, -1, 157, -1, 147, -1, 156, -1, 318, -1, 319, -1, 149, -1, 154, -1, 160, -1, 242, -1, 243, -1, 250, -1, 270, -1, 273, -1, 274, -1, 338, -1, 272, -1, 246, -1, 336, -1, 337, -1, 271, -1, 245, -1, 247, -1, 269, -1, 275, -1, 233, -1, 278, -1, 226, -1, 277, -1, 97, -1, 225, -1, 285, -1, 286, -1, 287, -1, 288, -1, 132, -1, 124, -1, 130, -1, 244, -1, 105, -1, 106, -1, 125, -1, 131, -1, 15, -1, 20, -1, 22, -1, 301, -1, 220, -1, 253, -1, 256, -1, 252, -1, 260, -1, 262, -1, 18, -1, 19, -1, 254, -1, 255, -1, 23, -1, 221, -1, 302, -1, 251, -1, 259, -1, 261, -1, 234, -1, 235, -1, 219, -1, 229, -1, 230, -1, 248, -1, 249, -1, 299, -1, 300, -1, 265, -1, 268, -1, 127, -1, 129, -1, 332, -1, 333, -1, 326, -1, 327, -1, 344, -1, 345, -1, 342, -1, 343, -1, 340, -1, 341, -1, 339, -1, 346, -1, 208, -1, 209, -1, 162, -1, 165, -1, 193, -1, 196, -1, 207, -1, 133, -1, 138, -1, 24, -1, 25, -1, 26, -1, 27, -1, 28, -1, 29, -1, 30, -1, 31, -1, 34, -1, 37, -1, 35, -1, 36, -1, 38, -1, 39, -1, 40, -1, 41, -1, 42, -1, 45, -1, 43, -1, 44, -1, 306, -1, 315, -1, 32, -1, 33, -1, 46, -1, 47, -1, 309, -1, 310, -1, 307, -1, 308, -1, 313, -1, 314, -1, 311, -1, 312, -1, 139, -1, 144, -1, 143, -1, 140, -1, 142, -1, 141, -1, 304, -1, 305, -1, 280, -1, 282, -1, 283, -1, 290, -1, 291, -1, 294, -1, 279, -1, 281, -1, 284, -1, 289, -1, 292, -1, 293, -1, 171, -1, 172, -1, 202, -1, 203, -1, 181, -1, 189, -1, 166, -1, 167, -1, 323, -1, 168, -1, 197, -1, 198, -1, 325, -1, 199, -1, 169, -1, 170, -1, 200, -1, 201, -1, 102, -1, 103, -1, 104, -1, 108, -1, 109, -1, 110, -1, 175, -1, 173, -1, 174, -1, 177, -1, 185, -1, 180, -1, 183, -1, 188, -1, 191, -1, 182, -1, 190, -1, 176, -1, 179, -1, 184, -1, 187, -1, 178, -1, 186, -1, 13, -1, 11, -1, 100, -1, 101, -1, 112, -1, 113, -1, 117, -1, 121, -1, 122, -1, 123, -1, 136, -1, 137, -1, 212, -1, 210, -1, 238, -1, 239, -1, 257, -1, 258, -1, 297, -1, 298, -1, 12, -1, 98, -1, 99, -1, 111, -1, 114, -1, 115, -1, 116, -1, 118, -1, 119, -1, 120, -1, 134, -1, 135, -1, 211, -1, 231, -1, 232, -1, 236, -1, 237, -1, 240, -1, 241, -1, 295, -1, 296, -1, 17, -1, 14, -1, 128, -1, 126, -1, 206, -1, 204, -1, 267, -1, 264, -1, 16, -1, 205, -1, 223, -1, 224, -1, 227, -1, 228, -1, 21, -1, 161, -1, 163, -1, 164, -1, 192, -1, 194, -1, 195, -1, 213, -1, 214, -1, 215, -1, 216, -1, 217, -1, 218, -1, 54, -1, 96, -1, 51, -1, 87, -1, 78, -1, 75, -1, 93, -1, 90, -1, 84, -1, 69, -1, 81, -1, 66, -1, 60, -1, 63, -1, 57, -1, 72, -1, 52, -1, 94, -1, 49, -1, 85, -1, 76, -1, 73, -1, 91, -1, 88, -1, 82, -1, 67, -1, 79, -1, 64, -1, 58, -1, 61, -1, 55, -1, 70, -1, 50, -1, 53, -1, 59, -1, 56, -1, 62, -1, 65, -1, 68, -1, 71, -1, 74, -1, 77, -1, 80, -1, 83, -1, 86, -1, 89, -1, 92, -1, 95, -1, 352, 7, 7, -1, 353, 511, -1, -1, 354, 479, 507, -1, -1, 355, 480, 507, -1, 356, -1, 357, 5, -1, -1, 358, 481, 512, -1, 359, 517, 511, -1, 360, -1, 360, 5, -1, 374, -1, 374, 5, -1, -1, 361, 482, 513, -1, 362, 514, -1, 363, 5, -1, 364, -1, 365, 517, -1, 365, 517, 5, -1, 367, 517, 511, -1, 366, -1, 368, 5, 9, -1, -1, 369, 483, 513, -1, 370, 5, 5, -1, 371, 499, 5, 499, -1, 372, 517, -1, -1, 373, 484, 512, -1, 376, 517, -1, 377, 517, 511, -1, 378, 5, 5, -1, 379, 5, 5, -1, 380, 5, 5, -1, 381, 7, 7, -1, 382, 517, -1, 384, 511, -1, 383, -1, 383, 5, -1, 385, -1, 385, 5, -1, 386, 517, -1, 387, 511, -1, 388, 511, -1, 389, -1, 389, 5, -1, 375, -1, 375, 5, -1, 390, 5, 5, -1, 391, 499, 5, 5, -1, -1, 392, 485, 512, -1, -1, 487, 488, -1, 395, 499, 396, -1, 494, -1, 494, 395, 499, 396, -1, 6, -1, 6, 395, 499, 396, -1, 6, 397, 494, -1, 494, 397, 517, -1, 6, 398, 494, -1, 6, 397, 494, 395, 499, 396, -1, 6, 398, 494, 395, 499, 396, -1, -1, 490, 493, -1, 493, -1, 493, -1, 494, -1, 395, 494, 396, 399, 399, 5, -1, 517, -1, 6, 397, 494, -1, 6, 398, 494, -1, 5, -1, 5, 397, 5, -1, 5, 5, -1, 499, -1, 499, -1, 499, -1, 499, -1, 7, -1, 503, -1, 503, -1, 503, -1, 8, -1, 5, -1, 7, -1, 8, -1, 517, -1, 507, 508, -1, 508, -1, 9, -1, 9, 393, 5, -1, -1, 510, 511, -1, 5, -1, 517, -1, 512, 509, -1, 509, -1, 509, 393, 5, -1, 513, 10, -1, 10, -1, -1, 515, 516, -1, 517, -1, -1, -1, 518, 6, -1 }; /* YYRLINE[YYN] -- source line where rule number YYN was defined. */ static const unsigned short yyrline[] = { 0, 508, 508, 508, 510, 511, 515, 526, 538, 537, 544, 543, 549, 553, 558, 567, 583, 593, 603, 609, 623, 629, 640, 650, 674, 702, 708, 724, 735, 759, 784, 795, 801, 807, 813, 819, 825, 830, 836, 844, 850, 856, 866, 872, 878, 884, 890, 896, 902, 909, 915, 920, 926, 933, 938, 943, 949, 954, 960, 965, 971, 978, 984, 989, 995, 1000, 1017, 1036, 1042, 1047, 1063, 1080, 1089, 1095, 1108, 1113, 1127, 1133, 1138, 1147, 1156, 1165, 1177, 1189, 1195, 1200, 1211, 1216, 1228, 1233, 1244, 1249, 1260, 1271, 1283, 1289, 1296, 1301, 1325, 1332, 1355, 1362, 1371, 1378, 1387, 1394, 1417, 1426, 1434, 1443, 1450, 1456, 1462, 1468, 1474, 1480, 1486, 1492, 1498, 1504, 1510, 1516, 1522, 1539, 1545, 1551, 1557, 1563, 1569, 1575, 1581, 1587, 1593, 1599, 1607, 1608, 1609, 1610, 1611, 1612, 1613, 1614, 1615, 1616, 1619, 1622, 1623, 1626, 1627, 1630, 1631, 1632, 1633, 1636, 1637, 1638, 1641, 1642, 1643, 1644, 1645, 1646, 1647, 1650, 1651, 1652, 1653, 1656, 1657, 1660, 1661, 1662, 1665, 1671, 1674, 1675, 1678, 1679, 1682, 1683, 1684, 1685, 1688, 1696, 1697, 1698, 1701, 1702, 1705, 1706, 1711, 1712, 1713, 1714, 1715, 1716, 1717, 1720, 1721, 1722, 1725, 1726, 1727, 1728, 1731, 1732, 1733, 1736, 1737, 1738, 1741, 1744, 1750, 1753, 1754, 1755, 1756, 1757, 1758, 1761, 1762, 1765, 1766, 1767, 1768, 1771, 1772, 1775, 1776, 1779, 1780, 1783, 1784, 1787, 1788, 1791, 1792, 1793, 1794, 1795, 1796, 1799, 1802, 1803, 1806, 1807, 1808, 1809, 1810, 1811, 1812, 1813, 1816, 1817, 1818, 1819, 1820, 1821, 1822, 1823, 1824, 1825, 1826, 1827, 1830, 1831, 1834, 1835, 1836, 1837, 1840, 1841, 1843, 1844, 1846, 1847, 1849, 1850, 1853, 1854, 1855, 1856, 1857, 1858, 1861, 1862, 1866, 1867, 1868, 1869, 1870, 1871, 1874, 1875, 1876, 1877, 1878, 1879, 1883, 1884, 1887, 1888, 1891, 1892, 1895, 1896, 1897, 1898, 1899, 1900, 1901, 1902, 1905, 1906, 1907, 1908, 1911, 1912, 1913, 1914, 1915, 1916, 1921, 1922, 1925, 1929, 1930, 1934, 1935, 1936, 1937, 1940, 1941, 1945, 1946, 1947, 1948, 1951, 1952, 1955, 1956, 1957, 1958, 1959, 1960, 1961, 1962, 1963, 1964, 1965, 1966, 1967, 1968, 1969, 1970, 1971, 1972, 1973, 1974, 1977, 1978, 1979, 1980, 1981, 1982, 1983, 1984, 1985, 1986, 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2010, 2011, 2012, 2013, 2014, 2015, 2018, 2019, 2020, 2021, 2022, 2023, 2024, 2025, 2026, 2027, 2028, 2029, 2030, 2033, 2034, 2035, 2036, 2037, 2038, 2039, 2040, 2041, 2042, 2043, 2044, 2045, 2046, 2047, 2048, 2049, 2050, 2051, 2052, 2053, 2054, 2055, 2056, 2057, 2058, 2059, 2060, 2061, 2062, 2063, 2064, 2067, 2068, 2069, 2070, 2071, 2072, 2073, 2074, 2075, 2076, 2077, 2078, 2079, 2080, 2081, 2082, 2087, 2089, 2094, 2094, 2100, 2100, 2107, 2109, 2113, 2112, 2121, 2133, 2140, 2149, 2156, 2166, 2165, 2177, 2179, 2181, 2183, 2185, 2188, 2194, 2200, 2204, 2203, 2215, 2217, 2220, 2228, 2227, 2239, 2250, 2257, 2260, 2262, 2264, 2266, 2268, 2274, 2281, 2290, 2297, 2306, 2315, 2324, 2330, 2337, 2346, 2353, 2362, 2364, 2368, 2367, 2378, 2378, 2380, 2385, 2390, 2395, 2401, 2407, 2413, 2418, 2424, 2430, 2438, 2438, 2440, 2446, 2453, 2458, 2463, 2468, 2474, 2482, 2484, 2487, 2497, 2499, 2501, 2503, 2505, 2514, 2516, 2518, 2520, 2528, 2536, 2538, 2543, 2549, 2550, 2554, 2559, 2570, 2570, 2572, 2574, 2588, 2592, 2596, 2606, 2610, 2617, 2617, 2619, 2620, 2624, 2624 }; #endif #if YYDEBUG || YYERROR_VERBOSE /* YYTNME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM. First, the terminals, then, starting at YYNTOKENS, nonterminals. */ static const char *const yytname[] = { "$end", "error", "$undefined", "Y_EOF", "Y_NL", "Y_INT", "Y_ID", "Y_REG", "Y_FP_REG", "Y_STR", "Y_FP", "Y_ABS_D_OP", "Y_ABS_PS_OP", "Y_ABS_S_OP", "Y_ADD_D_OP", "Y_ADD_OP", "Y_ADD_PS_OP", "Y_ADD_S_OP", "Y_ADDI_OP", "Y_ADDIU_OP", "Y_ADDU_OP", "Y_ALNV_PS_OP", "Y_AND_OP", "Y_ANDI_OP", "Y_BC1F_OP", "Y_BC1FL_OP", "Y_BC1T_OP", "Y_BC1TL_OP", "Y_BC2F_OP", "Y_BC2FL_OP", "Y_BC2T_OP", "Y_BC2TL_OP", "Y_BEQ_OP", "Y_BEQL_OP", "Y_BGEZ_OP", "Y_BGEZAL_OP", "Y_BGEZALL_OP", "Y_BGEZL_OP", "Y_BGTZ_OP", "Y_BGTZL_OP", "Y_BLEZ_OP", "Y_BLEZL_OP", "Y_BLTZ_OP", "Y_BLTZAL_OP", "Y_BLTZALL_OP", "Y_BLTZL_OP", "Y_BNE_OP", "Y_BNEL_OP", "Y_BREAK_OP", "Y_C_EQ_D_OP", "Y_C_EQ_PS_OP", "Y_C_EQ_S_OP", "Y_C_F_D_OP", "Y_C_F_PS_OP", "Y_C_F_S_OP", "Y_C_LE_D_OP", "Y_C_LE_PS_OP", "Y_C_LE_S_OP", "Y_C_LT_D_OP", "Y_C_LT_PS_OP", "Y_C_LT_S_OP", "Y_C_NGE_D_OP", "Y_C_NGE_PS_OP", "Y_C_NGE_S_OP", "Y_C_NGL_D_OP", "Y_C_NGL_PS_OP", "Y_C_NGL_S_OP", "Y_C_NGLE_D_OP", "Y_C_NGLE_PS_OP", "Y_C_NGLE_S_OP", "Y_C_NGT_D_OP", "Y_C_NGT_PS_OP", "Y_C_NGT_S_OP", "Y_C_OLE_D_OP", "Y_C_OLE_PS_OP", "Y_C_OLE_S_OP", "Y_C_OLT_D_OP", "Y_C_OLT_PS_OP", "Y_C_OLT_S_OP", "Y_C_SEQ_D_OP", "Y_C_SEQ_PS_OP", "Y_C_SEQ_S_OP", "Y_C_SF_D_OP", "Y_C_SF_PS_OP", "Y_C_SF_S_OP", "Y_C_UEQ_D_OP", "Y_C_UEQ_PS_OP", "Y_C_UEQ_S_OP", "Y_C_ULE_D_OP", "Y_C_ULE_PS_OP", "Y_C_ULE_S_OP", "Y_C_ULT_D_OP", "Y_C_ULT_PS_OP", "Y_C_ULT_S_OP", "Y_C_UN_D_OP", "Y_C_UN_PS_OP", "Y_C_UN_S_OP", "Y_CACHE_OP", "Y_CEIL_L_D_OP", "Y_CEIL_L_S_OP", "Y_CEIL_W_D_OP", "Y_CEIL_W_S_OP", "Y_CFC0_OP", "Y_CFC1_OP", "Y_CFC2_OP", "Y_CLO_OP", "Y_CLZ_OP", "Y_COP2_OP", "Y_CTC0_OP", "Y_CTC1_OP", "Y_CTC2_OP", "Y_CVT_D_L_OP", "Y_CVT_D_S_OP", "Y_CVT_D_W_OP", "Y_CVT_L_D_OP", "Y_CVT_L_S_OP", "Y_CVT_PS_S_OP", "Y_CVT_S_D_OP", "Y_CVT_S_L_OP", "Y_CVT_S_PL_OP", "Y_CVT_S_PU_OP", "Y_CVT_S_W_OP", "Y_CVT_W_D_OP", "Y_CVT_W_S_OP", "Y_DERET_OP", "Y_DI_OP", "Y_DIV_D_OP", "Y_DIV_OP", "Y_DIV_S_OP", "Y_DIVU_OP", "Y_EHB_OP", "Y_EI_OP", "Y_ERET_OP", "Y_EXT_OP", "Y_FLOOR_L_D_OP", "Y_FLOOR_L_S_OP", "Y_FLOOR_W_D_OP", "Y_FLOOR_W_S_OP", "Y_INS_OP", "Y_J_OP", "Y_JAL_OP", "Y_JALR_HB_OP", "Y_JALR_OP", "Y_JR_HB_OP", "Y_JR_OP", "Y_LB_OP", "Y_LBU_OP", "Y_LDC1_OP", "Y_LDC2_OP", "Y_LDXC1_OP", "Y_LH_OP", "Y_LHU_OP", "Y_LL_OP", "Y_LUI_OP", "Y_LUXC1_OP", "Y_LW_OP", "Y_LWC1_OP", "Y_LWC2_OP", "Y_LWL_OP", "Y_LWR_OP", "Y_LWXC1_OP", "Y_MADD_D_OP", "Y_MADD_OP", "Y_MADD_PS_OP", "Y_MADD_S_OP", "Y_MADDU_OP", "Y_MFC0_OP", "Y_MFC1_OP", "Y_MFC2_OP", "Y_MFHC1_OP", "Y_MFHC2_OP", "Y_MFHI_OP", "Y_MFLO_OP", "Y_MOV_D_OP", "Y_MOV_PS_OP", "Y_MOV_S_OP", "Y_MOVF_D_OP", "Y_MOVF_OP", "Y_MOVF_PS_OP", "Y_MOVF_S_OP", "Y_MOVN_D_OP", "Y_MOVN_OP", "Y_MOVN_PS_OP", "Y_MOVN_S_OP", "Y_MOVT_D_OP", "Y_MOVT_OP", "Y_MOVT_PS_OP", "Y_MOVT_S_OP", "Y_MOVZ_D_OP", "Y_MOVZ_OP", "Y_MOVZ_PS_OP", "Y_MOVZ_S_OP", "Y_MSUB_D_OP", "Y_MSUB_OP", "Y_MSUB_PS_OP", "Y_MSUB_S_OP", "Y_MSUBU_OP", "Y_MTC0_OP", "Y_MTC1_OP", "Y_MTC2_OP", "Y_MTHC1_OP", "Y_MTHC2_OP", "Y_MTHI_OP", "Y_MTLO_OP", "Y_MUL_D_OP", "Y_MUL_PS_OP", "Y_MUL_S_OP", "Y_MUL_OP", "Y_MULT_OP", "Y_MULTU_OP", "Y_NEG_D_OP", "Y_NEG_PS_OP", "Y_NEG_S_OP", "Y_NMADD_D_OP", "Y_NMADD_PS_OP", "Y_NMADD_S_OP", "Y_NMSUB_D_OP", "Y_NMSUB_PS_OP", "Y_NMSUB_S_OP", "Y_NOR_OP", "Y_OR_OP", "Y_ORI_OP", "Y_PFW_OP", "Y_PLL_PS_OP", "Y_PLU_PS_OP", "Y_PREF_OP", "Y_PREFX_OP", "Y_PUL_PS_OP", "Y_PUU_PS_OP", "Y_RDHWR_OP", "Y_RDPGPR_OP", "Y_RECIP_D_OP", "Y_RECIP_S_OP", "Y_RFE_OP", "Y_ROTR_OP", "Y_ROTRV_OP", "Y_ROUND_L_D_OP", "Y_ROUND_L_S_OP", "Y_ROUND_W_D_OP", "Y_ROUND_W_S_OP", "Y_RSQRT_D_OP", "Y_RSQRT_S_OP", "Y_SB_OP", "Y_SC_OP", "Y_SDBBP_OP", "Y_SDC1_OP", "Y_SDC2_OP", "Y_SDXC1_OP", "Y_SEB_OP", "Y_SEH_OP", "Y_SH_OP", "Y_SLL_OP", "Y_SLLV_OP", "Y_SLT_OP", "Y_SLTI_OP", "Y_SLTIU_OP", "Y_SLTU_OP", "Y_SQRT_D_OP", "Y_SQRT_S_OP", "Y_SRA_OP", "Y_SRAV_OP", "Y_SRL_OP", "Y_SRLV_OP", "Y_SSNOP_OP", "Y_SUB_D_OP", "Y_SUB_OP", "Y_SUB_PS_OP", "Y_SUB_S_OP", "Y_SUBU_OP", "Y_SUXC1_OP", "Y_SW_OP", "Y_SWC1_OP", "Y_SWC2_OP", "Y_SWL_OP", "Y_SWR_OP", "Y_SWXC1_OP", "Y_SYNC_OP", "Y_SYNCI_OP", "Y_SYSCALL_OP", "Y_TEQ_OP", "Y_TEQI_OP", "Y_TGE_OP", "Y_TGEI_OP", "Y_TGEIU_OP", "Y_TGEU_OP", "Y_TLBP_OP", "Y_TLBR_OP", "Y_TLBWI_OP", "Y_TLBWR_OP", "Y_TLT_OP", "Y_TLTI_OP", "Y_TLTIU_OP", "Y_TLTU_OP", "Y_TNE_OP", "Y_TNEI_OP", "Y_TRUNC_L_D_OP", "Y_TRUNC_L_S_OP", "Y_TRUNC_W_D_OP", "Y_TRUNC_W_S_OP", "Y_WRPGPR_OP", "Y_WSBH_OP", "Y_XOR_OP", "Y_XORI_OP", "Y_ABS_POP", "Y_B_POP", "Y_BAL_POP", "Y_BEQZ_POP", "Y_BGE_POP", "Y_BGEU_POP", "Y_BGT_POP", "Y_BGTU_POP", "Y_BLE_POP", "Y_BLEU_POP", "Y_BLT_POP", "Y_BLTU_POP", "Y_BNEZ_POP", "Y_LA_POP", "Y_LD_POP", "Y_L_D_POP", "Y_L_S_POP", "Y_LI_D_POP", "Y_LI_POP", "Y_LI_S_POP", "Y_MFC1_D_POP", "Y_MOVE_POP", "Y_MTC1_D_POP", "Y_MULO_POP", "Y_MULOU_POP", "Y_NEG_POP", "Y_NEGU_POP", "Y_NOP_POP", "Y_NOT_POP", "Y_REM_POP", "Y_REMU_POP", "Y_ROL_POP", "Y_ROR_POP", "Y_S_D_POP", "Y_S_S_POP", "Y_SD_POP", "Y_SEQ_POP", "Y_SGE_POP", "Y_SGEU_POP", "Y_SGT_POP", "Y_SGTU_POP", "Y_SLE_POP", "Y_SLEU_POP", "Y_SNE_POP", "Y_ULH_POP", "Y_ULHU_POP", "Y_ULW_POP", "Y_USH_POP", "Y_USW_POP", "Y_ALIAS_DIR", "Y_ALIGN_DIR", "Y_ASCII_DIR", "Y_ASCIIZ_DIR", "Y_ASM0_DIR", "Y_BGNB_DIR", "Y_BYTE_DIR", "Y_COMM_DIR", "Y_DATA_DIR", "Y_DOUBLE_DIR", "Y_END_DIR", "Y_ENDB_DIR", "Y_ENDR_DIR", "Y_ENT_DIR", "Y_ERR_DIR", "Y_EXTERN_DIR", "Y_FILE_DIR", "Y_FLOAT_DIR", "Y_FMASK_DIR", "Y_FRAME_DIR", "Y_GLOBAL_DIR", "Y_HALF_DIR", "Y_K_DATA_DIR", "Y_K_TEXT_DIR", "Y_LABEL_DIR", "Y_LCOMM_DIR", "Y_LIVEREG_DIR", "Y_LOC_DIR", "Y_MASK_DIR", "Y_NOALIAS_DIR", "Y_OPTIONS_DIR", "Y_RDATA_DIR", "Y_REPEAT_DIR", "Y_SDATA_DIR", "Y_SET_DIR", "Y_SPACE_DIR", "Y_STRUCT_DIR", "Y_TEXT_DIR", "Y_VERSTAMP_DIR", "Y_VREG_DIR", "Y_WORD_DIR", "':'", "'='", "'('", "')'", "'+'", "'-'", "'>'", "$accept", "LINE", "@1", "LBL_CMD", "OPT_LBL", "CMD", "@2", "@3", "TERM", "ASM_CODE", "LOAD_OPS", "LOADI_OPS", "ULOADH_POPS", "LOADC_OPS", "LOADFP_OPS", "LOADFP_INDEX_OPS", "STORE_OPS", "STOREC_OPS", "STOREFP_OPS", "STOREFP_INDEX_OPS", "SYS_OPS", "PREFETCH_OPS", "CACHE_OPS", "TLB_OPS", "NULLARY_OPS", "NULLARY_OPS_REV2", "COUNT_LEADING_OPS", "UNARY_OPS_REV2", "BINARYI_OPS", "BINARYIR_OPS", "BINARY_ARITHI_OPS", "BINARY_LOGICALI_OPS", "SHIFT_OPS", "SHIFT_OPS_REV2", "SHIFTV_OPS_REV2", "BINARY_OPS", "BINARY_OPS_REV2", "SUB_OPS", "DIV_POPS", "MUL_POPS", "SET_LE_POPS", "SET_GT_POPS", "SET_GE_POPS", "SET_EQ_POPS", "MULT_OPS", "MULT_OPS3", "BF_OPS_REV2", "BR_COP_OPS", "UNARY_BR_OPS", "UNARY_BR_POPS", "BINARY_BR_OPS", "BR_GT_POPS", "BR_GE_POPS", "BR_LT_POPS", "BR_LE_POPS", "J_OPS", "B_OPS", "UNARY_TRAP_OPS", "BINARY_TRAP_OPS", "MOVE_FROM_HILO_OPS", "MOVE_TO_HILO_OPS", "MOVEC_OPS", "MOVE_COP_OPS", "MOVE_COP_OPS_REV2", "CTL_COP_OPS", "FP_MOVE_OPS", "FP_MOVE_OPS_REV2", "FP_MOVEC_OPS", "FP_MOVEC_OPS_REV2", "FP_MOVECC_OPS", "FP_MOVECC_OPS_REV2", "FP_UNARY_OPS", "FP_UNARY_OPS_REV2", "FP_BINARY_OPS", "FP_BINARY_OPS_REV2", "FP_TERNARY_OPS_REV2", "FP_CMP_OPS", "FP_CMP_OPS_REV2", "ASM_DIRECTIVE", "@4", "@5", "@6", "@7", "@8", "@9", "@10", "ADDRESS", "@11", "ADDR", "BR_IMM32", "@12", "IMM16", "UIMM16", "IMM32", "ABS_ADDR", "SRC1", "SRC2", "DEST", "REG", "REGISTER", "F_DEST", "F_SRC1", "F_SRC2", "FP_REGISTER", "CC_REG", "COP_REG", "LABEL", "STR_LST", "STR", "EXPRESSION", "@13", "EXPR", "EXPR_LST", "FP_EXPR_LST", "OPTIONAL_ID", "@14", "OPT_ID", "ID", "@15", 0 }; #endif # ifdef YYPRINT /* YYTOKNUM[YYLEX-NUM] -- Internal token number corresponding to token YYLEX-NUM. */ static const unsigned short yytoknum[] = { 0, 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, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 58, 61, 40, 41, 43, 45, 62 }; # endif /* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */ static const unsigned short yyr1[] = { 0, 400, 402, 401, 403, 403, 404, 404, 406, 405, 407, 405, 405, 408, 408, 409, 409, 409, 409, 409, 409, 409, 409, 409, 409, 409, 409, 409, 409, 409, 409, 409, 409, 409, 409, 409, 409, 409, 409, 409, 409, 409, 409, 409, 409, 409, 409, 409, 409, 409, 409, 409, 409, 409, 409, 409, 409, 409, 409, 409, 409, 409, 409, 409, 409, 409, 409, 409, 409, 409, 409, 409, 409, 409, 409, 409, 409, 409, 409, 409, 409, 409, 409, 409, 409, 409, 409, 409, 409, 409, 409, 409, 409, 409, 409, 409, 409, 409, 409, 409, 409, 409, 409, 409, 409, 409, 409, 409, 409, 409, 409, 409, 409, 409, 409, 409, 409, 409, 409, 409, 409, 409, 409, 409, 409, 409, 409, 409, 409, 409, 409, 409, 409, 409, 410, 410, 410, 410, 410, 410, 410, 410, 410, 410, 411, 412, 412, 413, 413, 414, 414, 414, 414, 415, 415, 415, 416, 416, 416, 416, 416, 416, 416, 417, 417, 417, 417, 418, 418, 419, 419, 419, 420, 420, 421, 421, 422, 422, 423, 423, 423, 423, 424, 425, 425, 425, 426, 426, 427, 427, 428, 428, 428, 428, 428, 428, 428, 429, 429, 429, 430, 430, 430, 430, 431, 431, 431, 432, 432, 432, 433, 434, 435, 436, 436, 436, 436, 436, 436, 437, 437, 438, 438, 438, 438, 439, 439, 440, 440, 441, 441, 442, 442, 443, 443, 444, 444, 444, 444, 444, 444, 445, 446, 446, 447, 447, 447, 447, 447, 447, 447, 447, 448, 448, 448, 448, 448, 448, 448, 448, 448, 448, 448, 448, 449, 449, 450, 450, 450, 450, 451, 451, 452, 452, 453, 453, 454, 454, 455, 455, 455, 455, 455, 455, 456, 456, 457, 457, 457, 457, 457, 457, 458, 458, 458, 458, 458, 458, 459, 459, 460, 460, 461, 461, 462, 462, 462, 462, 462, 462, 462, 462, 463, 463, 463, 463, 464, 464, 464, 464, 464, 464, 465, 465, 466, 461, 461, 467, 467, 467, 467, 468, 468, 469, 469, 469, 469, 470, 470, 471, 471, 471, 471, 471, 471, 471, 471, 471, 471, 471, 471, 471, 471, 471, 471, 471, 471, 471, 471, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 473, 473, 473, 473, 473, 473, 473, 473, 474, 474, 474, 474, 474, 474, 475, 475, 475, 475, 475, 475, 475, 475, 475, 475, 475, 475, 475, 476, 476, 476, 476, 476, 476, 476, 476, 476, 476, 476, 476, 476, 476, 476, 476, 476, 476, 476, 476, 476, 476, 476, 476, 476, 476, 476, 476, 476, 476, 476, 476, 477, 477, 477, 477, 477, 477, 477, 477, 477, 477, 477, 477, 477, 477, 477, 477, 478, 478, 479, 478, 480, 478, 478, 478, 481, 478, 478, 478, 478, 478, 478, 482, 478, 478, 478, 478, 478, 478, 478, 478, 478, 483, 478, 478, 478, 478, 484, 478, 478, 478, 478, 478, 478, 478, 478, 478, 478, 478, 478, 478, 478, 478, 478, 478, 478, 478, 478, 478, 478, 485, 478, 487, 486, 488, 488, 488, 488, 488, 488, 488, 488, 488, 488, 490, 489, 491, 492, 493, 493, 493, 493, 493, 494, 494, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 505, 506, 507, 507, 508, 508, 510, 509, 511, 511, 512, 512, 512, 513, 513, 515, 514, 516, 516, 518, 517 }; /* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN. */ static const unsigned char yyr2[] = { 0, 2, 0, 2, 2, 1, 2, 3, 0, 3, 0, 3, 1, 1, 1, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 1, 2, 3, 1, 1, 2, 2, 1, 1, 3, 3, 3, 3, 3, 1, 1, 3, 2, 4, 4, 3, 4, 4, 3, 4, 3, 4, 3, 4, 4, 4, 4, 4, 4, 3, 3, 4, 4, 3, 3, 4, 4, 4, 4, 3, 4, 4, 4, 4, 4, 4, 5, 4, 4, 4, 4, 4, 4, 4, 4, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 2, 2, 3, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 2, 2, 4, 3, 3, 3, 3, 3, 4, 4, 5, 3, 4, 3, 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, 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, 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, 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, 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, 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, 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, 3, 2, 0, 3, 0, 3, 1, 2, 0, 3, 3, 1, 2, 1, 2, 0, 3, 2, 2, 1, 2, 3, 3, 1, 3, 0, 3, 3, 4, 2, 0, 3, 2, 3, 3, 3, 3, 3, 2, 2, 1, 2, 1, 2, 2, 2, 2, 1, 2, 1, 2, 3, 4, 0, 3, 0, 2, 3, 1, 4, 1, 4, 3, 3, 3, 6, 6, 0, 2, 1, 1, 1, 6, 1, 3, 3, 1, 3, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 3, 0, 2, 1, 1, 2, 1, 3, 2, 1, 0, 2, 1, 0, 0, 2 }; /* YYDEFACT[STATE-NAME] -- Default rule to reduce with in state STATE-NUM when YYTABLE doesn't specify something else to do. Zero means the default is an error. */ static const unsigned short yydefact[] = { 2, 0, 564, 1, 14, 13, 340, 359, 339, 381, 190, 388, 380, 200, 201, 191, 394, 192, 204, 244, 245, 246, 247, 248, 249, 250, 251, 266, 267, 252, 254, 255, 253, 256, 257, 258, 259, 260, 262, 263, 261, 268, 269, 0, 425, 439, 409, 423, 440, 407, 437, 442, 421, 435, 441, 419, 436, 443, 420, 434, 444, 418, 432, 445, 416, 438, 446, 422, 428, 447, 412, 427, 448, 411, 433, 449, 417, 431, 450, 415, 426, 451, 410, 430, 452, 414, 429, 453, 413, 424, 454, 408, 176, 360, 361, 341, 342, 316, 317, 318, 186, 187, 0, 319, 320, 321, 362, 343, 344, 363, 364, 365, 345, 366, 367, 368, 346, 347, 348, 183, 188, 383, 221, 382, 222, 184, 189, 182, 242, 369, 370, 349, 350, 243, 278, 281, 283, 282, 280, 279, 134, 135, 149, 147, 153, 136, 137, 138, 144, 154, 139, 150, 148, 140, 141, 155, 395, 237, 396, 397, 238, 304, 305, 307, 312, 313, 298, 299, 323, 324, 322, 333, 325, 337, 334, 327, 302, 331, 328, 335, 326, 338, 336, 329, 303, 332, 330, 398, 239, 399, 400, 240, 308, 309, 311, 314, 315, 300, 301, 385, 389, 384, 241, 235, 236, 352, 371, 351, 401, 402, 403, 404, 405, 406, 212, 194, 205, 142, 390, 391, 177, 174, 392, 393, 213, 214, 372, 373, 172, 210, 211, 374, 375, 353, 354, 376, 377, 156, 157, 185, 168, 164, 169, 215, 216, 158, 207, 197, 195, 202, 203, 196, 355, 356, 208, 198, 209, 199, 40, 387, 219, 386, 220, 170, 159, 167, 163, 160, 161, 171, 36, 175, 173, 292, 286, 293, 287, 288, 294, 178, 179, 180, 181, 295, 289, 290, 296, 297, 291, 378, 379, 357, 358, 217, 218, 193, 206, 0, 284, 285, 264, 272, 273, 270, 271, 276, 277, 274, 275, 265, 0, 143, 151, 152, 0, 0, 0, 306, 0, 310, 225, 226, 0, 0, 39, 0, 223, 224, 0, 0, 165, 166, 162, 233, 231, 232, 229, 230, 227, 228, 234, 145, 146, 0, 0, 0, 0, 564, 457, 459, 461, 0, 463, 564, 466, 470, 560, 0, 474, 564, 478, 564, 0, 480, 0, 0, 564, 485, 468, 504, 564, 564, 0, 0, 0, 0, 564, 495, 564, 497, 564, 564, 564, 502, 0, 0, 508, 3, 0, 5, 12, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 32, 510, 0, 35, 46, 47, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 564, 0, 0, 0, 0, 0, 0, 0, 564, 564, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 0, 0, 38, 531, 0, 0, 133, 526, 528, 37, 538, 0, 536, 510, 542, 0, 539, 0, 0, 0, 0, 0, 0, 0, 0, 510, 510, 534, 510, 0, 553, 456, 554, 0, 0, 462, 551, 564, 467, 0, 472, 563, 473, 475, 564, 0, 0, 0, 0, 484, 551, 469, 505, 487, 564, 0, 0, 0, 0, 493, 496, 494, 498, 499, 500, 501, 503, 0, 0, 551, 4, 0, 510, 0, 510, 544, 545, 510, 510, 540, 510, 510, 510, 510, 510, 33, 0, 510, 0, 49, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 543, 564, 92, 546, 564, 564, 522, 522, 522, 522, 522, 107, 0, 534, 106, 109, 0, 0, 119, 537, 120, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 565, 533, 0, 0, 0, 0, 41, 19, 21, 20, 22, 45, 42, 43, 44, 0, 0, 23, 29, 28, 455, 549, 458, 548, 460, 556, 564, 464, 465, 559, 471, 561, 562, 476, 477, 479, 481, 482, 0, 486, 488, 489, 490, 491, 492, 506, 0, 509, 9, 15, 18, 525, 24, 16, 17, 25, 26, 27, 30, 31, 515, 0, 511, 513, 34, 48, 52, 0, 55, 0, 57, 524, 0, 59, 0, 0, 0, 0, 66, 0, 67, 70, 0, 71, 0, 0, 0, 0, 0, 76, 535, 0, 0, 541, 93, 94, 95, 564, 0, 564, 564, 564, 564, 564, 564, 564, 564, 564, 108, 110, 111, 0, 122, 123, 124, 112, 113, 0, 0, 0, 0, 125, 126, 0, 0, 0, 130, 0, 132, 11, 7, 532, 529, 530, 0, 82, 80, 81, 79, 0, 547, 0, 552, 555, 558, 483, 507, 0, 0, 0, 0, 0, 564, 51, 50, 54, 53, 56, 58, 60, 61, 62, 63, 65, 64, 69, 68, 73, 72, 75, 74, 85, 84, 87, 86, 89, 88, 91, 90, 78, 77, 0, 97, 523, 96, 99, 98, 101, 100, 103, 102, 105, 104, 121, 114, 115, 118, 116, 117, 127, 128, 0, 131, 0, 550, 557, 0, 517, 519, 512, 0, 518, 83, 129, 0, 516, 0, 0, 514, 527, 0, 0, 520, 521 }; /* YYDEFGOTO[NTERM-NUM]. */ static const short yydefgoto[] = { -1, 1, 2, 387, 388, 389, 532, 609, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 494, 495, 497, 500, 507, 511, 530, 546, 547, 674, 709, 710, 682, 662, 663, 468, 487, 701, 472, 588, 488, 476, 539, 704, 477, 571, 538, 572, 634, 635, 637, 638, 492, 639, 642, 501, 502, 643, 469, 462 }; /* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing STATE-NUM. */ #define YYPACT_NINF -606 static const short yypact[] = { -606, 32, 752, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, 12, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, 6, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, 35, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, 38, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, 38, -606, -606, -606, 44, 38, 44, -606, 38, -606, -606, -606, 38, 38, -606, 38, -606, -606, 38, 38, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, 38, 38, 38, 54, 59, -606, -606, -606, 66, -606, -606, 86, -606, -606, 91, -606, -606, -606, -606, 92, -606, 93, 38, -606, -606, 94, 98, -606, -606, 99, 100, 101, 83, -606, 102, 59, 103, -606, 59, 59, 104, 105, 38, -606, -606, 752, -606, -606, -606, 38, 38, 38, 74, 44, 44, 38, 74, 44, 44, -606, -606, 107, -606, -606, -606, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 44, 108, 38, 38, 38, 38, 38, 38, 38, 38, -606, 38, 38, 38, 38, 38, 38, 38, 38, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 42, 44, -606, -310, 109, -606, -3, -312, 129, -606, -606, -606, -606, -606, 38, -606, -606, -606, 131, -606, 6, 132, 38, 38, 38, 38, 38, 38, -606, -606, -606, -606, 136, -606, -606, -606, 135, 135, -606, -606, 59, -606, 138, -606, 151, -606, 154, 59, 152, 138, 155, 157, -606, -606, -606, -606, -606, 59, 158, 159, 161, 160, -606, -606, -606, -606, -606, -606, -606, -606, 163, 164, -606, -606, 85, -606, 6, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, 14, -606, 38, -606, 3, 17, 3, 3, 38, 38, 38, 3, 38, 3, 38, 38, 38, 38, 38, 38, 38, 38, 44, -606, -606, -606, -606, -606, -606, 38, 38, 38, 38, 38, -606, 38, 165, -606, -606, 6, 38, -606, -606, -606, 38, 74, 74, 74, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 85, -606, 166, -606, -606, 168, 129, 129, -282, -606, -606, -606, -606, -606, -606, -606, -606, -606, 3, 3, -606, -606, -606, -606, -223, 135, -606, 135, -219, 59, 89, -606, -606, 169, -606, -606, -606, -606, -606, 169, -606, 38, 89, -606, -606, -606, -606, -606, -606, 173, 89, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -335, 38, -606, -328, -606, -606, -606, 3, -606, 63, -606, -606, 6, -606, 6, 67, 180, 38, -606, 3, -606, -606, 3, 3, 3, 3, 3, 3, 3, -606, -606, 3, 184, -606, -606, -606, -606, -606, 6, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, 70, -606, -606, -606, -606, -606, 38, 38, 108, 108, -606, -606, 44, 44, 44, -606, 44, -606, -606, -606, -606, -606, -606, -209, -606, -606, -606, -606, 186, -606, 187, -606, -606, -606, -606, -606, 38, 129, 129, -203, 38, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, 189, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, 44, -606, -204, -606, -606, -200, -198, -197, -606, -196, -606, -606, -606, 194, -606, 38, 38, -606, -606, -195, -174, -606, -606 }; /* YYPGOTO[NTERM-NUM]. */ static const short yypgoto[] = { -606, -606, -606, -606, -606, -165, -606, -606, -517, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -606, -23, -606, -606, -521, -606, -573, -540, -101, -460, 800, -440, 231, -417, -292, 25, -379, -553, -393, -454, -360, -394, -268, -558, -605, -606, -340, -495, -278, -606, -606, -606, -2, -606 }; /* YYTABLE[YYPACT[STATE-NUM]]. What to do in state STATE-NUM. If positive, shift that token. If negative, reduce the rule which number is the opposite. If zero, do what YYDEFACT says. If YYTABLE_NINF, syntax error. */ #define YYTABLE_NINF -565 static const short yytable[] = { 461, 467, 613, 540, 607, 473, 617, 540, 464, 465, 471, 464, 465, 721, 685, 660, 651, 463, 473, 464, 672, 544, 680, 473, 471, 590, 473, 592, 593, 594, 473, 473, 3, 473, 755, 659, 473, 473, 522, 543, 470, 525, 526, 584, 585, 471, 755, 570, 733, 734, 475, 473, 475, 738, 755, 740, 712, 714, 716, 718, 759, 490, 760, 761, 491, 540, 540, 763, 767, 764, 471, 496, 771, 509, 471, 570, 752, 471, 752, 606, 608, 536, 537, 610, 611, 615, 616, 675, 4, 5, 519, 499, 741, 529, -551, -551, 503, 506, 508, 512, 473, 473, 473, 513, 516, 517, 518, 521, 523, 527, 528, 769, 548, 570, 746, 612, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 464, 473, 711, 713, 715, 717, 719, 620, 622, 632, 633, 583, 770, 722, 641, 589, 589, 473, 589, 589, 589, 744, 745, -564, 640, 645, 649, 647, 650, 653, 654, 646, 655, 656, 657, 658, 751, 742, -536, 743, 753, 652, 705, 706, 758, 756, 707, 708, 811, 812, 813, 773, 814, 748, 750, 793, 815, 816, 817, 821, 824, 826, 827, 828, 829, 831, 830, 834, 540, 540, 540, 540, 540, 540, 705, 705, 540, 540, 540, 705, 540, 705, 727, 728, 729, 730, 731, 732, 835, 531, 735, 736, 737, 636, 739, 648, 0, 0, 724, 725, 726, 0, 0, 0, 0, 766, 0, 768, 0, 0, 0, 0, 0, 772, 0, 774, 0, 776, 0, 0, 778, 780, 782, 784, 786, 788, 790, 0, 0, 792, 0, 0, 0, 0, 0, 806, 0, 0, 0, 0, 0, 702, 0, 809, 810, 0, 0, 0, 0, 805, 702, 702, 702, 702, 702, 0, 0, 0, 0, 0, 0, 702, 0, 0, 754, 0, 819, 820, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 807, 808, 0, 794, 0, 796, 797, 798, 799, 800, 801, 802, 803, 804, 0, 0, 0, 0, 0, 0, 0, 0, 0, 702, 702, 0, 0, 0, 0, 479, 705, 705, 705, 493, 705, 0, 0, 0, 0, 498, 0, 0, 0, 0, 0, 504, 757, 505, 0, 0, 0, 0, 510, 0, 0, 0, 514, 515, 0, 0, 0, 0, 520, 0, 493, 621, 524, 493, 493, 762, 0, 0, 0, 0, 0, 702, 0, 702, 0, 0, 0, 0, 614, 702, 0, 702, 466, 702, 0, 466, 702, 702, 702, 702, 702, 702, 702, 673, 0, 702, 0, 0, 0, 0, 0, 0, 0, 0, 825, 0, 541, 0, 0, 0, 545, 573, 0, 0, 0, 702, 0, 0, 0, 573, 573, 589, 589, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 678, 619, 683, 569, 0, 0, 0, 690, 0, 693, 0, 0, 0, 629, 630, 0, 631, 818, 0, 0, 0, 822, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 0, 0, 683, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 493, 0, 0, 0, 644, 0, 0, 493, 0, 0, 0, 0, 0, 0, 661, 0, 664, 493, 0, 665, 666, 0, 667, 668, 669, 670, 671, 0, 0, 676, 747, 749, 0, 0, 0, 0, 0, 0, 0, 0, 832, 833, 0, 0, 0, 474, 0, 0, 0, 0, 478, 0, 0, 480, 0, 0, 0, 481, 482, 0, 483, 0, 0, 484, 485, 0, 0, 0, 0, 0, 0, 0, 0, 573, 0, 0, 573, 573, 486, 0, 0, 0, 765, 0, 0, 0, 0, 683, 0, 0, 0, 0, 0, 0, 775, 0, 0, 777, 779, 781, 783, 785, 787, 789, 0, 0, 791, 0, 0, 0, 0, 0, 0, 795, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 533, 534, 535, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 493, 0, 0, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 0, 568, 0, 0, 0, 0, 0, 0, 0, 0, 0, 582, 0, 0, 0, 0, 0, 591, 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, 573, 0, 573, 573, 573, 573, 573, 573, 573, 573, 573, 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, 4, 5, 0, 0, 0, 0, 0, 823, 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, 0, 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, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 489, 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, 0, 0, 0, 542, 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, 567, 0, 0, 0, 574, 575, 576, 577, 578, 579, 580, 581, 0, 586, 587, 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, 618, 0, 0, 0, 0, 0, 0, 0, 623, 624, 625, 626, 627, 628, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 677, 0, 679, 681, 684, 686, 687, 688, 689, 691, 692, 694, 695, 696, 697, 698, 699, 700, 0, 703, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 720, 0, 0, 0, 0, 0, 0, 0, 0, 723 }; static const short yycheck[] = { 2, 102, 5, 396, 458, 297, 466, 400, 5, 6, 7, 5, 6, 586, 554, 532, 511, 5, 310, 5, 6, 400, 5, 315, 7, 442, 318, 444, 445, 446, 322, 323, 0, 325, 639, 530, 328, 329, 378, 399, 5, 381, 382, 437, 438, 7, 651, 5, 601, 602, 8, 343, 8, 606, 659, 608, 577, 578, 579, 580, 395, 7, 397, 398, 5, 458, 459, 395, 5, 397, 7, 5, 5, 365, 7, 5, 634, 7, 636, 458, 459, 7, 8, 393, 394, 397, 398, 547, 3, 4, 7, 5, 609, 385, 5, 6, 5, 5, 5, 5, 392, 393, 394, 5, 5, 5, 5, 5, 5, 5, 5, 684, 5, 5, 396, 6, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 5, 427, 576, 577, 578, 579, 580, 10, 10, 7, 9, 437, 686, 587, 10, 441, 442, 443, 444, 445, 446, 615, 616, 6, 498, 5, 5, 9, 5, 5, 5, 505, 5, 7, 5, 5, 393, 5, 7, 5, 393, 515, 569, 571, 5, 10, 574, 575, 735, 736, 737, 5, 739, 627, 628, 5, 399, 5, 5, 396, 5, 399, 396, 395, 395, 5, 396, 396, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 595, 596, 597, 598, 599, 600, 396, 388, 603, 604, 605, 495, 607, 507, -1, -1, 592, 593, 594, -1, -1, -1, -1, 679, -1, 681, -1, -1, -1, -1, -1, 687, -1, 689, -1, 691, -1, -1, 694, 695, 696, 697, 698, 699, 700, -1, -1, 703, -1, -1, -1, -1, -1, 723, -1, -1, -1, -1, -1, 567, -1, 731, 732, -1, -1, -1, -1, 723, 576, 577, 578, 579, 580, -1, -1, -1, -1, -1, -1, 587, -1, -1, 638, -1, 760, 761, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 729, 730, -1, 709, -1, 711, 712, 713, 714, 715, 716, 717, 718, 719, -1, -1, -1, -1, -1, -1, -1, -1, -1, 627, 628, -1, -1, -1, -1, 316, 735, 736, 737, 347, 739, -1, -1, -1, -1, 353, -1, -1, -1, -1, -1, 359, 650, 361, -1, -1, -1, -1, 366, -1, -1, -1, 370, 371, -1, -1, -1, -1, 376, -1, 378, 478, 380, 381, 382, 673, -1, -1, -1, -1, -1, 679, -1, 681, -1, -1, -1, -1, 397, 687, -1, 689, 395, 691, -1, 395, 694, 695, 696, 697, 698, 699, 700, 395, -1, 703, -1, -1, -1, -1, -1, -1, -1, -1, 813, -1, 397, -1, -1, -1, 401, 429, -1, -1, -1, 723, -1, -1, -1, 437, 438, 729, 730, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 551, 474, 553, 428, -1, -1, -1, 558, -1, 560, -1, -1, -1, 486, 487, -1, 489, 759, -1, -1, -1, 763, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, -1, -1, 586, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 498, -1, -1, -1, 502, -1, -1, 505, -1, -1, -1, -1, -1, -1, 533, -1, 535, 515, -1, 538, 539, -1, 541, 542, 543, 544, 545, -1, -1, 548, 627, 628, -1, -1, -1, -1, -1, -1, -1, -1, 828, 829, -1, -1, -1, 310, -1, -1, -1, -1, 315, -1, -1, 318, -1, -1, -1, 322, 323, -1, 325, -1, -1, 328, 329, -1, -1, -1, -1, -1, -1, -1, -1, 571, -1, -1, 574, 575, 343, -1, -1, -1, 679, -1, -1, -1, -1, 684, -1, -1, -1, -1, -1, -1, 691, -1, -1, 694, 695, 696, 697, 698, 699, 700, -1, -1, 703, -1, -1, -1, -1, -1, -1, 710, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 392, 393, 394, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 638, -1, -1, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, -1, 427, -1, -1, -1, -1, -1, -1, -1, -1, -1, 437, -1, -1, -1, -1, -1, 443, -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, 709, -1, 711, 712, 713, 714, 715, 716, 717, 718, 719, -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, 3, 4, -1, -1, -1, -1, -1, 764, 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, -1, 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, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 345, -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, 398, -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, 426, -1, -1, -1, 430, 431, 432, 433, 434, 435, 436, 437, -1, 439, 440, -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, 472, -1, -1, -1, -1, -1, -1, -1, 480, 481, 482, 483, 484, 485, -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, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 549, -1, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, -1, 568, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 582, -1, -1, -1, -1, -1, -1, -1, -1, 591 }; /* YYSTOS[STATE-NUM] -- The (internal number of the) accessing symbol of state STATE-NUM. */ static const unsigned short yystos[] = { 0, 401, 402, 0, 3, 4, 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, 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, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 403, 404, 405, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 517, 518, 5, 5, 6, 395, 493, 494, 517, 5, 7, 497, 499, 497, 8, 500, 503, 497, 500, 497, 497, 497, 497, 497, 497, 497, 495, 499, 495, 7, 5, 511, 517, 479, 480, 5, 481, 517, 5, 482, 514, 515, 5, 517, 517, 5, 483, 5, 499, 517, 484, 5, 5, 517, 517, 5, 5, 5, 7, 517, 5, 511, 5, 517, 511, 511, 5, 5, 499, 485, 405, 406, 497, 497, 497, 7, 8, 505, 501, 503, 500, 495, 505, 501, 500, 486, 487, 5, 497, 497, 497, 497, 497, 497, 497, 497, 497, 497, 497, 497, 497, 497, 497, 497, 497, 497, 495, 497, 500, 5, 504, 506, 517, 495, 495, 495, 495, 495, 495, 495, 495, 497, 499, 506, 506, 495, 495, 498, 499, 498, 497, 498, 498, 498, 500, 500, 500, 500, 500, 500, 500, 500, 500, 500, 500, 501, 504, 501, 407, 393, 394, 6, 5, 397, 397, 398, 494, 495, 486, 10, 493, 10, 495, 495, 495, 495, 495, 495, 486, 486, 486, 7, 9, 507, 508, 507, 509, 510, 512, 511, 10, 513, 516, 517, 5, 511, 9, 513, 5, 5, 512, 511, 5, 5, 5, 7, 5, 5, 512, 408, 486, 492, 493, 486, 486, 486, 486, 486, 486, 486, 486, 6, 395, 488, 494, 486, 495, 493, 495, 5, 495, 491, 493, 495, 492, 495, 495, 495, 495, 493, 495, 495, 493, 495, 495, 495, 495, 495, 495, 495, 496, 499, 495, 502, 503, 506, 506, 506, 489, 490, 496, 489, 496, 489, 496, 489, 496, 489, 496, 495, 491, 496, 495, 505, 505, 505, 501, 501, 501, 501, 501, 501, 502, 502, 501, 501, 501, 502, 501, 502, 408, 5, 5, 494, 494, 396, 493, 496, 493, 496, 393, 508, 393, 511, 509, 10, 499, 5, 395, 397, 398, 499, 395, 397, 493, 496, 5, 496, 491, 492, 5, 496, 5, 496, 493, 496, 493, 496, 493, 496, 493, 496, 493, 496, 493, 496, 493, 496, 493, 496, 493, 496, 5, 506, 493, 506, 506, 506, 506, 506, 506, 506, 506, 506, 496, 504, 498, 498, 504, 504, 502, 502, 502, 502, 399, 5, 5, 499, 494, 494, 396, 499, 517, 5, 503, 399, 396, 395, 395, 396, 5, 499, 499, 396, 396 }; #if ! defined (YYSIZE_T) && defined (__SIZE_TYPE__) # define YYSIZE_T __SIZE_TYPE__ #endif #if ! defined (YYSIZE_T) && defined (size_t) # define YYSIZE_T size_t #endif #if ! defined (YYSIZE_T) # if defined (__STDC__) || defined (__cplusplus) # include /* INFRINGES ON USER NAME SPACE */ # define YYSIZE_T size_t # endif #endif #if ! defined (YYSIZE_T) # define YYSIZE_T unsigned int #endif #define yyerrok (yyerrstatus = 0) #define yyclearin (yychar = YYEMPTY) #define YYEMPTY (-2) #define YYEOF 0 #define YYACCEPT goto yyacceptlab #define YYABORT goto yyabortlab #define YYERROR goto yyerrlab1 /* Like YYERROR except do call yyerror. This remains here temporarily to ease the transition to the new meaning of YYERROR, for GCC. Once GCC version 2 has supplanted version 1, this can go. */ #define YYFAIL goto yyerrlab #define YYRECOVERING() (!!yyerrstatus) #define YYBACKUP(Token, Value) \ do \ if (yychar == YYEMPTY && yylen == 1) \ { \ yychar = (Token); \ yylval = (Value); \ yytoken = YYTRANSLATE (yychar); \ YYPOPSTACK; \ goto yybackup; \ } \ else \ { \ yyerror ("syntax error: cannot back up");\ YYERROR; \ } \ while (0) #define YYTERROR 1 #define YYERRCODE 256 /* YYLLOC_DEFAULT -- Compute the default location (before the actions are run). */ #ifndef YYLLOC_DEFAULT # define YYLLOC_DEFAULT(Current, Rhs, N) \ Current.first_line = Rhs[1].first_line; \ Current.first_column = Rhs[1].first_column; \ Current.last_line = Rhs[N].last_line; \ Current.last_column = Rhs[N].last_column; #endif /* YYLEX -- calling `yylex' with the right arguments. */ #ifdef YYLEX_PARAM # define YYLEX yylex (YYLEX_PARAM) #else # define YYLEX yylex () #endif /* Enable debugging if requested. */ #if YYDEBUG # ifndef YYFPRINTF # include /* INFRINGES ON USER NAME SPACE */ # define YYFPRINTF fprintf # endif # define YYDPRINTF(Args) \ do { \ if (yydebug) \ YYFPRINTF Args; \ } while (0) # define YYDSYMPRINT(Args) \ do { \ if (yydebug) \ yysymprint Args; \ } while (0) # define YYDSYMPRINTF(Title, Token, Value, Location) \ do { \ if (yydebug) \ { \ YYFPRINTF (stderr, "%s ", Title); \ yysymprint (stderr, \ Token, Value); \ YYFPRINTF (stderr, "\n"); \ } \ } while (0) /*------------------------------------------------------------------. | yy_stack_print -- Print the state stack from its BOTTOM up to its | | TOP (cinluded). | `------------------------------------------------------------------*/ #if defined (__STDC__) || defined (__cplusplus) static void yy_stack_print (short *bottom, short *top) #else static void yy_stack_print (bottom, top) short *bottom; short *top; #endif { YYFPRINTF (stderr, "Stack now"); for (/* Nothing. */; bottom <= top; ++bottom) YYFPRINTF (stderr, " %d", *bottom); 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. | `------------------------------------------------*/ #if defined (__STDC__) || defined (__cplusplus) static void yy_reduce_print (int yyrule) #else static void yy_reduce_print (yyrule) int yyrule; #endif { int yyi; unsigned int yylno = yyrline[yyrule]; YYFPRINTF (stderr, "Reducing stack by rule %d (line %u), ", yyrule - 1, yylno); /* Print the symbols being reduced, and their result. */ for (yyi = yyprhs[yyrule]; 0 <= yyrhs[yyi]; yyi++) YYFPRINTF (stderr, "%s ", yytname [yyrhs[yyi]]); YYFPRINTF (stderr, "-> %s\n", yytname [yyr1[yyrule]]); } # define YY_REDUCE_PRINT(Rule) \ do { \ if (yydebug) \ yy_reduce_print (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) # define YYDSYMPRINT(Args) # define YYDSYMPRINTF(Title, Token, 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 SIZE_MAX < YYSTACK_BYTES (YYMAXDEPTH) evaluated with infinite-precision integer arithmetic. */ #if YYMAXDEPTH == 0 # undef YYMAXDEPTH #endif #ifndef YYMAXDEPTH # define YYMAXDEPTH 10000 #endif #if YYERROR_VERBOSE # ifndef yystrlen # if defined (__GLIBC__) && defined (_STRING_H) # define yystrlen strlen # else /* Return the length of YYSTR. */ static YYSIZE_T # if defined (__STDC__) || defined (__cplusplus) yystrlen (const char *yystr) # else yystrlen (yystr) const char *yystr; # endif { register const char *yys = yystr; while (*yys++ != '\0') continue; return yys - yystr - 1; } # 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 * # if defined (__STDC__) || defined (__cplusplus) yystpcpy (char *yydest, const char *yysrc) # else yystpcpy (yydest, yysrc) char *yydest; const char *yysrc; # endif { register char *yyd = yydest; register const char *yys = yysrc; while ((*yyd++ = *yys++) != '\0') continue; return yyd - 1; } # endif # endif #endif /* !YYERROR_VERBOSE */ #if YYDEBUG /*--------------------------------. | Print this symbol on YYOUTPUT. | `--------------------------------*/ #if defined (__STDC__) || defined (__cplusplus) static void yysymprint (FILE *yyoutput, int yytype, YYSTYPE *yyvaluep) #else static void yysymprint (yyoutput, yytype, yyvaluep) FILE *yyoutput; int yytype; YYSTYPE *yyvaluep; #endif { /* Pacify ``unused variable'' warnings. */ (void) yyvaluep; if (yytype < YYNTOKENS) { YYFPRINTF (yyoutput, "token %s (", yytname[yytype]); # ifdef YYPRINT YYPRINT (yyoutput, yytoknum[yytype], *yyvaluep); # endif } else YYFPRINTF (yyoutput, "nterm %s (", yytname[yytype]); switch (yytype) { default: break; } YYFPRINTF (yyoutput, ")"); } #endif /* ! YYDEBUG */ /*-----------------------------------------------. | Release the memory associated to this symbol. | `-----------------------------------------------*/ #if defined (__STDC__) || defined (__cplusplus) static void yydestruct (int yytype, YYSTYPE *yyvaluep) #else static void yydestruct (yytype, yyvaluep) int yytype; YYSTYPE *yyvaluep; #endif { /* Pacify ``unused variable'' warnings. */ (void) yyvaluep; switch (yytype) { default: break; } } /* Prevent warnings from -Wmissing-prototypes. */ #ifdef YYPARSE_PARAM # if defined (__STDC__) || defined (__cplusplus) int yyparse (void *YYPARSE_PARAM); # else int yyparse (); # endif #else /* ! YYPARSE_PARAM */ #if defined (__STDC__) || defined (__cplusplus) int yyparse (void); #else int yyparse (); #endif #endif /* ! YYPARSE_PARAM */ /* The lookahead symbol. */ int yychar; /* The semantic value of the lookahead symbol. */ YYSTYPE yylval; /* Number of syntax errors so far. */ int yynerrs; /*----------. | yyparse. | `----------*/ #ifdef YYPARSE_PARAM # if defined (__STDC__) || defined (__cplusplus) int yyparse (void *YYPARSE_PARAM) # else int yyparse (YYPARSE_PARAM) void *YYPARSE_PARAM; # endif #else /* ! YYPARSE_PARAM */ #if defined (__STDC__) || defined (__cplusplus) int yyparse (void) #else int yyparse () #endif #endif { register int yystate; register int yyn; int yyresult; /* Number of tokens to shift before error messages enabled. */ int yyerrstatus; /* Lookahead token as an internal (translated) token number. */ int yytoken = 0; /* Three stacks and their tools: `yyss': related to states, `yyvs': related to semantic values, `yyls': related to locations. Refer to the stacks thru separate pointers, to allow yyoverflow to reallocate them elsewhere. */ /* The state stack. */ short yyssa[YYINITDEPTH]; short *yyss = yyssa; register short *yyssp; /* The semantic value stack. */ YYSTYPE yyvsa[YYINITDEPTH]; YYSTYPE *yyvs = yyvsa; register YYSTYPE *yyvsp; #define YYPOPSTACK (yyvsp--, yyssp--) YYSIZE_T yystacksize = YYINITDEPTH; /* The variables used to return semantic value and location from the action routines. */ YYSTYPE yyval; /* When reducing, the number of symbols on the RHS of the reduced rule. */ int yylen; YYDPRINTF ((stderr, "Starting parse\n")); yystate = 0; yyerrstatus = 0; yynerrs = 0; yychar = YYEMPTY; /* Cause a token to be read. */ /* Initialize stack pointers. Waste one element of value and location stack so that they stay on the same level as the state stack. The wasted elements are never initialized. */ yyssp = yyss; yyvsp = yyvs; 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: *yyssp = yystate; if (yyss + yystacksize - 1 <= yyssp) { /* Get the current used size of the three stacks, in elements. */ YYSIZE_T yysize = yyssp - yyss + 1; #ifdef 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. */ YYSTYPE *yyvs1 = yyvs; short *yyss1 = yyss; /* 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 ("parser stack overflow", &yyss1, yysize * sizeof (*yyssp), &yyvs1, yysize * sizeof (*yyvsp), &yystacksize); yyss = yyss1; yyvs = yyvs1; } #else /* no yyoverflow */ # ifndef YYSTACK_RELOCATE goto yyoverflowlab; # else /* Extend the stack our own way. */ if (YYMAXDEPTH <= yystacksize) goto yyoverflowlab; yystacksize *= 2; if (YYMAXDEPTH < yystacksize) yystacksize = YYMAXDEPTH; { short *yyss1 = yyss; union yyalloc *yyptr = (union yyalloc *) YYSTACK_ALLOC (YYSTACK_BYTES (yystacksize)); if (! yyptr) goto yyoverflowlab; YYSTACK_RELOCATE (yyss); YYSTACK_RELOCATE (yyvs); # undef YYSTACK_RELOCATE if (yyss1 != yyssa) YYSTACK_FREE (yyss1); } # endif #endif /* no yyoverflow */ yyssp = yyss + yysize - 1; yyvsp = yyvs + yysize - 1; YYDPRINTF ((stderr, "Stack size increased to %lu\n", (unsigned long int) yystacksize)); if (yyss + yystacksize - 1 <= yyssp) YYABORT; } YYDPRINTF ((stderr, "Entering state %d\n", yystate)); 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. */ /* yyresume: */ /* First try to decide what to do without reference to lookahead token. */ yyn = yypact[yystate]; if (yyn == YYPACT_NINF) goto yydefault; /* Not known => get a lookahead token if don't already have one. */ /* YYCHAR is either YYEMPTY or YYEOF or a valid lookahead symbol. */ if (yychar == YYEMPTY) { YYDPRINTF ((stderr, "Reading a token: ")); yychar = YYLEX; } if (yychar <= YYEOF) { yychar = yytoken = YYEOF; YYDPRINTF ((stderr, "Now at end of input.\n")); } else { yytoken = YYTRANSLATE (yychar); YYDSYMPRINTF ("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 (yyn == 0 || yyn == YYTABLE_NINF) goto yyerrlab; yyn = -yyn; goto yyreduce; } if (yyn == YYFINAL) YYACCEPT; /* Shift the lookahead token. */ YYDPRINTF ((stderr, "Shifting token %s, ", yytname[yytoken])); /* Discard the token being shifted unless it is eof. */ if (yychar != YYEOF) yychar = YYEMPTY; *++yyvsp = yylval; /* Count tokens shifted since error; after three, turn off error status. */ if (yyerrstatus) yyerrstatus--; yystate = yyn; 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: #line 508 "parser.y" {parse_error_occurred = 0; scanner_start_line (); } break; case 6: #line 515 "parser.y" { this_line_labels = cons_label (record_label ((char*)yyvsp[-1].p, text_dir ? current_text_pc () : current_data_pc (), 0), this_line_labels); free ((char*)yyvsp[-1].p); } break; case 7: #line 527 "parser.y" { label *l = record_label ((char*)yyvsp[-2].p, (mem_addr)yyvsp[0].i, 1); free ((char*)yyvsp[-2].p); l->const_flag = 1; clear_labels (); } break; case 8: #line 538 "parser.y" { clear_labels (); } break; case 10: #line 544 "parser.y" { clear_labels (); } break; case 13: #line 554 "parser.y" { LINE_PARSE_DONE; } break; case 14: #line 559 "parser.y" { clear_labels (); FILE_PARSE_DONE; } break; case 15: #line 568 "parser.y" { i_type_inst (yyvsp[-2].i == Y_LD_POP ? Y_LW_OP : yyvsp[-2].i, yyvsp[-1].i, addr_expr_reg ((addr_expr *)yyvsp[0].p), addr_expr_imm ((addr_expr *)yyvsp[0].p)); if (yyvsp[-2].i == Y_LD_POP) i_type_inst_free (Y_LW_OP, yyvsp[-1].i + 1, addr_expr_reg ((addr_expr *)yyvsp[0].p), incr_expr_offset (addr_expr_imm ((addr_expr *)yyvsp[0].p), 4)); free (((addr_expr *)yyvsp[0].p)->imm); free ((addr_expr *)yyvsp[0].p); } break; case 16: #line 584 "parser.y" { i_type_inst (yyvsp[-2].i, yyvsp[-1].i, addr_expr_reg ((addr_expr *)yyvsp[0].p), addr_expr_imm ((addr_expr *)yyvsp[0].p)); free (((addr_expr *)yyvsp[0].p)->imm); free ((addr_expr *)yyvsp[0].p); } break; case 17: #line 594 "parser.y" { i_type_inst (yyvsp[-2].i, yyvsp[-1].i, addr_expr_reg ((addr_expr *)yyvsp[0].p), addr_expr_imm ((addr_expr *)yyvsp[0].p)); free (((addr_expr *)yyvsp[0].p)->imm); free ((addr_expr *)yyvsp[0].p); } break; case 18: #line 604 "parser.y" { i_type_inst_free (yyvsp[-2].i, yyvsp[-1].i, 0, (imm_expr *)yyvsp[0].p); } break; case 19: #line 610 "parser.y" { if (addr_expr_reg ((addr_expr *)yyvsp[0].p)) i_type_inst (Y_ADDI_OP, yyvsp[-1].i, addr_expr_reg ((addr_expr *)yyvsp[0].p), addr_expr_imm ((addr_expr *)yyvsp[0].p)); else i_type_inst (Y_ORI_OP, yyvsp[-1].i, 0, addr_expr_imm ((addr_expr *)yyvsp[0].p)); free (((addr_expr *)yyvsp[0].p)->imm); free ((addr_expr *)yyvsp[0].p); } break; case 20: #line 624 "parser.y" { i_type_inst_free (Y_ORI_OP, yyvsp[-1].i, 0, (imm_expr *)yyvsp[0].p); } break; case 21: #line 630 "parser.y" { int *x = (int *) yyvsp[0].p; i_type_inst (Y_ORI_OP, 1, 0, const_imm_expr (*x)); r_co_type_inst (Y_MTC1_OP, 0, yyvsp[-1].i, 1); i_type_inst (Y_ORI_OP, 1, 0, const_imm_expr (*(x+1))); r_co_type_inst (Y_MTC1_OP, 0, yyvsp[-1].i + 1, 1); } break; case 22: #line 641 "parser.y" { float x = (float) *((double *) yyvsp[0].p); int *y = (int *) &x; i_type_inst (Y_ORI_OP, 1, 0, const_imm_expr (*y)); r_co_type_inst (Y_MTC1_OP, 0, yyvsp[-1].i, 1); } break; case 23: #line 651 "parser.y" { #ifdef BIGENDIAN i_type_inst (Y_LWL_OP, yyvsp[-1].i, addr_expr_reg ((addr_expr *)yyvsp[0].p), addr_expr_imm ((addr_expr *)yyvsp[0].p)); i_type_inst_free (Y_LWR_OP, yyvsp[-1].i, addr_expr_reg ((addr_expr *)yyvsp[0].p), incr_expr_offset (addr_expr_imm ((addr_expr *)yyvsp[0].p), 3)); #else i_type_inst_free (Y_LWL_OP, yyvsp[-1].i, addr_expr_reg ((addr_expr *)yyvsp[0].p), incr_expr_offset (addr_expr_imm ((addr_expr *)yyvsp[0].p), 3)); i_type_inst (Y_LWR_OP, yyvsp[-1].i, addr_expr_reg ((addr_expr *)yyvsp[0].p), addr_expr_imm ((addr_expr *)yyvsp[0].p)); #endif free (((addr_expr *)yyvsp[0].p)->imm); free ((addr_expr *)yyvsp[0].p); } break; case 24: #line 675 "parser.y" { #ifdef BIGENDIAN i_type_inst ((yyvsp[-2].i == Y_ULH_POP ? Y_LB_OP : Y_LBU_OP), yyvsp[-1].i, addr_expr_reg ((addr_expr *)yyvsp[0].p), addr_expr_imm ((addr_expr *)yyvsp[0].p)); i_type_inst_free (Y_LBU_OP, 1, addr_expr_reg ((addr_expr *)yyvsp[0].p), incr_expr_offset (addr_expr_imm ((addr_expr *)yyvsp[0].p), 1)); #else i_type_inst_free ((yyvsp[-2].i == Y_ULH_POP ? Y_LB_OP : Y_LBU_OP), yyvsp[-1].i, addr_expr_reg ((addr_expr *)yyvsp[0].p), incr_expr_offset (addr_expr_imm ((addr_expr *)yyvsp[0].p), 1)); i_type_inst (Y_LBU_OP, 1, addr_expr_reg ((addr_expr *)yyvsp[0].p), addr_expr_imm ((addr_expr *)yyvsp[0].p)); #endif r_sh_type_inst (Y_SLL_OP, yyvsp[-1].i, yyvsp[-1].i, 8); r_type_inst (Y_OR_OP, yyvsp[-1].i, yyvsp[-1].i, 1); free (((addr_expr *)yyvsp[0].p)->imm); free ((addr_expr *)yyvsp[0].p); } break; case 25: #line 703 "parser.y" { mips32_r2_inst (); } break; case 26: #line 709 "parser.y" { i_type_inst (yyvsp[-2].i == Y_SD_POP ? Y_SW_OP : yyvsp[-2].i, yyvsp[-1].i, addr_expr_reg ((addr_expr *)yyvsp[0].p), addr_expr_imm ((addr_expr *)yyvsp[0].p)); if (yyvsp[-2].i == Y_SD_POP) i_type_inst_free (Y_SW_OP, yyvsp[-1].i + 1, addr_expr_reg ((addr_expr *)yyvsp[0].p), incr_expr_offset (addr_expr_imm ((addr_expr *)yyvsp[0].p), 4)); free (((addr_expr *)yyvsp[0].p)->imm); free ((addr_expr *)yyvsp[0].p); } break; case 27: #line 725 "parser.y" { i_type_inst (yyvsp[-2].i, yyvsp[-1].i, addr_expr_reg ((addr_expr *)yyvsp[0].p), addr_expr_imm ((addr_expr *)yyvsp[0].p)); free (((addr_expr *)yyvsp[0].p)->imm); free ((addr_expr *)yyvsp[0].p); } break; case 28: #line 736 "parser.y" { #ifdef BIGENDIAN i_type_inst (Y_SWL_OP, yyvsp[-1].i, addr_expr_reg ((addr_expr *)yyvsp[0].p), addr_expr_imm ((addr_expr *)yyvsp[0].p)); i_type_inst_free (Y_SWR_OP, yyvsp[-1].i, addr_expr_reg ((addr_expr *)yyvsp[0].p), incr_expr_offset (addr_expr_imm ((addr_expr *)yyvsp[0].p), 3)); #else i_type_inst_free (Y_SWL_OP, yyvsp[-1].i, addr_expr_reg ((addr_expr *)yyvsp[0].p), incr_expr_offset (addr_expr_imm ((addr_expr *)yyvsp[0].p), 3)); i_type_inst (Y_SWR_OP, yyvsp[-1].i, addr_expr_reg ((addr_expr *)yyvsp[0].p), addr_expr_imm ((addr_expr *)yyvsp[0].p)); #endif free (((addr_expr *)yyvsp[0].p)->imm); free ((addr_expr *)yyvsp[0].p); } break; case 29: #line 760 "parser.y" { i_type_inst (Y_SB_OP, yyvsp[-1].i, addr_expr_reg ((addr_expr *)yyvsp[0].p), addr_expr_imm ((addr_expr *)yyvsp[0].p)); /* ROL SRC, SRC, 8 */ r_sh_type_inst (Y_SLL_OP, 1, yyvsp[-1].i, 24); r_sh_type_inst (Y_SRL_OP, yyvsp[-1].i, yyvsp[-1].i, 8); r_type_inst (Y_OR_OP, yyvsp[-1].i, yyvsp[-1].i, 1); i_type_inst_free (Y_SB_OP, yyvsp[-1].i, addr_expr_reg ((addr_expr *)yyvsp[0].p), incr_expr_offset (addr_expr_imm ((addr_expr *)yyvsp[0].p), 1)); /* ROR SRC, SRC, 8 */ r_sh_type_inst (Y_SRL_OP, 1, yyvsp[-1].i, 24); r_sh_type_inst (Y_SLL_OP, yyvsp[-1].i, yyvsp[-1].i, 8); r_type_inst (Y_OR_OP, yyvsp[-1].i, yyvsp[-1].i, 1); free (((addr_expr *)yyvsp[0].p)->imm); free ((addr_expr *)yyvsp[0].p); } break; case 30: #line 785 "parser.y" { i_type_inst (yyvsp[-2].i, yyvsp[-1].i, addr_expr_reg ((addr_expr *)yyvsp[0].p), addr_expr_imm ((addr_expr *)yyvsp[0].p)); free (((addr_expr *)yyvsp[0].p)->imm); free ((addr_expr *)yyvsp[0].p); } break; case 31: #line 796 "parser.y" { mips32_r2_inst (); } break; case 32: #line 802 "parser.y" { r_type_inst (yyvsp[0].i, 0, 0, 0); } break; case 33: #line 808 "parser.y" { mips32_r2_inst (); } break; case 34: #line 814 "parser.y" { i_type_inst_free (yyvsp[-2].i, yyvsp[-1].i, 0, (imm_expr *)yyvsp[0].p); } break; case 35: #line 820 "parser.y" { r_type_inst (yyvsp[0].i, 0, 0, 0); } break; case 36: #line 826 "parser.y" { r_type_inst (yyvsp[0].i, 0, 0, 0); } break; case 37: #line 831 "parser.y" { r_type_inst (yyvsp[-1].i, yyvsp[0].i, 0, 0); } break; case 38: #line 837 "parser.y" { if (yyvsp[0].i == 1) yyerror ("Breakpoint 1 is reserved for debugger"); r_type_inst (yyvsp[-1].i, yyvsp[0].i, 0, 0); } break; case 39: #line 845 "parser.y" { nop_inst (); } break; case 40: #line 851 "parser.y" { r_sh_type_inst (Y_SLL_OP, 0, 0, 1); /* SLL r0 r0 1 */ } break; case 41: #line 857 "parser.y" { if (yyvsp[-1].i != yyvsp[0].i) r_type_inst (Y_ADDU_OP, yyvsp[-1].i, 0, yyvsp[0].i); i_type_inst_free (Y_BGEZ_OP, 0, yyvsp[0].i, branch_offset (2)); r_type_inst (Y_SUB_OP, yyvsp[-1].i, 0, yyvsp[0].i); } break; case 42: #line 867 "parser.y" { r_type_inst (Y_SUB_OP, yyvsp[-1].i, 0, yyvsp[0].i); } break; case 43: #line 873 "parser.y" { r_type_inst (Y_SUBU_OP, yyvsp[-1].i, 0, yyvsp[0].i); } break; case 44: #line 879 "parser.y" { r_type_inst (Y_NOR_OP, yyvsp[-1].i, yyvsp[0].i, 0); } break; case 45: #line 885 "parser.y" { r_type_inst (Y_ADDU_OP, yyvsp[-1].i, 0, yyvsp[0].i); } break; case 46: #line 891 "parser.y" { r_type_inst (yyvsp[0].i, 0, 0, 0); } break; case 47: #line 897 "parser.y" { mips32_r2_inst (); } break; case 48: #line 903 "parser.y" { /* RT must be equal to RD */ r_type_inst (yyvsp[-2].i, yyvsp[-1].i, yyvsp[0].i, yyvsp[-1].i); } break; case 49: #line 910 "parser.y" { mips32_r2_inst (); } break; case 50: #line 916 "parser.y" { r_type_inst (yyvsp[-3].i, yyvsp[-2].i, yyvsp[-1].i, yyvsp[0].i); } break; case 51: #line 921 "parser.y" { i_type_inst_free (op_to_imm_op (yyvsp[-3].i), yyvsp[-2].i, yyvsp[-1].i, (imm_expr *)yyvsp[0].p); } break; case 52: #line 927 "parser.y" { i_type_inst_free (op_to_imm_op (yyvsp[-2].i), yyvsp[-1].i, yyvsp[-1].i, (imm_expr *)yyvsp[0].p); } break; case 53: #line 934 "parser.y" { r_type_inst (yyvsp[-3].i, yyvsp[-2].i, yyvsp[0].i, yyvsp[-1].i); } break; case 54: #line 939 "parser.y" { r_sh_type_inst (op_to_imm_op (yyvsp[-3].i), yyvsp[-2].i, yyvsp[-1].i, yyvsp[0].i); } break; case 55: #line 944 "parser.y" { r_sh_type_inst (op_to_imm_op (yyvsp[-2].i), yyvsp[-1].i, yyvsp[-1].i, yyvsp[0].i); } break; case 56: #line 950 "parser.y" { i_type_inst_free (yyvsp[-3].i, yyvsp[-2].i, yyvsp[-1].i, (imm_expr *)yyvsp[0].p); } break; case 57: #line 955 "parser.y" { i_type_inst_free (yyvsp[-2].i, yyvsp[-1].i, yyvsp[-1].i, (imm_expr *)yyvsp[0].p); } break; case 58: #line 961 "parser.y" { i_type_inst_free (yyvsp[-3].i, yyvsp[-2].i, yyvsp[-1].i, (imm_expr *)yyvsp[0].p); } break; case 59: #line 966 "parser.y" { i_type_inst_free (yyvsp[-2].i, yyvsp[-1].i, yyvsp[-1].i, (imm_expr *)yyvsp[0].p); } break; case 60: #line 972 "parser.y" { if ((yyvsp[0].i < 0) || (31 < yyvsp[0].i)) yywarn ("Shift distance can only be in the range 0..31"); r_sh_type_inst (yyvsp[-3].i, yyvsp[-2].i, yyvsp[-1].i, yyvsp[0].i); } break; case 61: #line 979 "parser.y" { r_type_inst (imm_op_to_op (yyvsp[-3].i), yyvsp[-2].i, yyvsp[0].i, yyvsp[-1].i); } break; case 62: #line 985 "parser.y" { mips32_r2_inst (); } break; case 63: #line 990 "parser.y" { mips32_r2_inst (); } break; case 64: #line 996 "parser.y" { r_type_inst (yyvsp[-3].i, yyvsp[-2].i, yyvsp[-1].i, yyvsp[0].i); } break; case 65: #line 1001 "parser.y" { if (bare_machine && !accept_pseudo_insts) yyerror ("Immediate form not allowed in bare machine"); else { if (!zero_imm ((imm_expr *)yyvsp[0].p)) /* Use $at */ i_type_inst (Y_ORI_OP, 1, 0, (imm_expr *)yyvsp[0].p); r_type_inst (yyvsp[-3].i, yyvsp[-2].i, yyvsp[-1].i, (zero_imm ((imm_expr *)yyvsp[0].p) ? 0 : 1)); } free ((imm_expr *)yyvsp[0].p); } break; case 66: #line 1018 "parser.y" { check_uimm_range ((imm_expr *)yyvsp[0].p, UIMM_MIN, UIMM_MAX); if (bare_machine && !accept_pseudo_insts) yyerror ("Immediate form not allowed in bare machine"); else { if (!zero_imm ((imm_expr *)yyvsp[0].p)) /* Use $at */ i_type_inst (Y_ORI_OP, 1, 0, (imm_expr *)yyvsp[0].p); r_type_inst (yyvsp[-2].i, yyvsp[-1].i, yyvsp[-1].i, (zero_imm ((imm_expr *)yyvsp[0].p) ? 0 : 1)); } free ((imm_expr *)yyvsp[0].p); } break; case 67: #line 1037 "parser.y" { mips32_r2_inst (); } break; case 68: #line 1043 "parser.y" { r_type_inst (yyvsp[-3].i, yyvsp[-2].i, yyvsp[-1].i, yyvsp[0].i); } break; case 69: #line 1048 "parser.y" { int val = eval_imm_expr ((imm_expr *)yyvsp[0].p); if (bare_machine && !accept_pseudo_insts) yyerror ("Immediate form not allowed in bare machine"); else i_type_inst (yyvsp[-3].i == Y_SUB_OP ? Y_ADDI_OP : yyvsp[-3].i == Y_SUBU_OP ? Y_ADDIU_OP : (fatal_error ("Bad SUB_OP\n"), 0), yyvsp[-2].i, yyvsp[-1].i, make_imm_expr (-val, NULL, 0)); free ((imm_expr *)yyvsp[0].p); } break; case 70: #line 1064 "parser.y" { int val = eval_imm_expr ((imm_expr *)yyvsp[0].p); if (bare_machine && !accept_pseudo_insts) yyerror ("Immediate form not allowed in bare machine"); else i_type_inst (yyvsp[-2].i == Y_SUB_OP ? Y_ADDI_OP : yyvsp[-2].i == Y_SUBU_OP ? Y_ADDIU_OP : (fatal_error ("Bad SUB_OP\n"), 0), yyvsp[-1].i, yyvsp[-1].i, make_imm_expr (-val, NULL, 0)); free ((imm_expr *)yyvsp[0].p); } break; case 71: #line 1081 "parser.y" { /* The hardware divide operation (ignore 1st arg) */ if (yyvsp[-2].i != Y_DIV_OP && yyvsp[-2].i != Y_DIVU_OP) yyerror ("REM requires 3 arguments"); else r_type_inst (yyvsp[-2].i, 0, yyvsp[-1].i, yyvsp[0].i); } break; case 72: #line 1090 "parser.y" { /* Pseudo divide operations */ div_inst (yyvsp[-3].i, yyvsp[-2].i, yyvsp[-1].i, yyvsp[0].i, 0); } break; case 73: #line 1096 "parser.y" { if (zero_imm ((imm_expr *)yyvsp[0].p)) yyerror ("Divide by zero"); else { /* Use $at */ i_type_inst_free (Y_ORI_OP, 1, 0, (imm_expr *)yyvsp[0].p); div_inst (yyvsp[-3].i, yyvsp[-2].i, yyvsp[-1].i, 1, 1); } } break; case 74: #line 1109 "parser.y" { mult_inst (yyvsp[-3].i, yyvsp[-2].i, yyvsp[-1].i, yyvsp[0].i); } break; case 75: #line 1114 "parser.y" { if (zero_imm ((imm_expr *)yyvsp[0].p)) /* Optimize: n * 0 == 0 */ i_type_inst_free (Y_ORI_OP, yyvsp[-2].i, 0, (imm_expr *)yyvsp[0].p); else { /* Use $at */ i_type_inst_free (Y_ORI_OP, 1, 0, (imm_expr *)yyvsp[0].p); mult_inst (yyvsp[-3].i, yyvsp[-2].i, yyvsp[-1].i, 1); } } break; case 76: #line 1128 "parser.y" { r_type_inst (yyvsp[-2].i, 0, yyvsp[-1].i, yyvsp[0].i); } break; case 77: #line 1134 "parser.y" { r_type_inst (yyvsp[-3].i, yyvsp[-2].i, yyvsp[-1].i, yyvsp[0].i); } break; case 78: #line 1139 "parser.y" { /* Special case, for backward compatibility with pseudo-op MULT instruction */ i_type_inst_free (Y_ORI_OP, 1, 0, (imm_expr *)yyvsp[0].p); /* Use $at */ r_type_inst (yyvsp[-3].i, yyvsp[-2].i, yyvsp[-1].i, 1); } break; case 79: #line 1148 "parser.y" { r_type_inst (Y_SUBU_OP, 1, 0, yyvsp[0].i); r_type_inst (Y_SLLV_OP, 1, 1, yyvsp[-1].i); r_type_inst (Y_SRLV_OP, yyvsp[-2].i, yyvsp[0].i, yyvsp[-1].i); r_type_inst (Y_OR_OP, yyvsp[-2].i, yyvsp[-2].i, 1); } break; case 80: #line 1157 "parser.y" { r_type_inst (Y_SUBU_OP, 1, 0, yyvsp[0].i); r_type_inst (Y_SRLV_OP, 1, 1, yyvsp[-1].i); r_type_inst (Y_SLLV_OP, yyvsp[-2].i, yyvsp[0].i, yyvsp[-1].i); r_type_inst (Y_OR_OP, yyvsp[-2].i, yyvsp[-2].i, 1); } break; case 81: #line 1166 "parser.y" { long dist = eval_imm_expr ((imm_expr *)yyvsp[0].p); check_imm_range ((imm_expr *)yyvsp[0].p, 0, 31); r_sh_type_inst (Y_SLL_OP, 1, yyvsp[-1].i, -dist); r_sh_type_inst (Y_SRL_OP, yyvsp[-2].i, yyvsp[-1].i, dist); r_type_inst (Y_OR_OP, yyvsp[-2].i, yyvsp[-2].i, 1); free ((imm_expr *)yyvsp[0].p); } break; case 82: #line 1178 "parser.y" { long dist = eval_imm_expr ((imm_expr *)yyvsp[0].p); check_imm_range ((imm_expr *)yyvsp[0].p, 0, 31); r_sh_type_inst (Y_SRL_OP, 1, yyvsp[-1].i, -dist); r_sh_type_inst (Y_SLL_OP, yyvsp[-2].i, yyvsp[-1].i, dist); r_type_inst (Y_OR_OP, yyvsp[-2].i, yyvsp[-2].i, 1); free ((imm_expr *)yyvsp[0].p); } break; case 83: #line 1190 "parser.y" { mips32_r2_inst (); } break; case 84: #line 1196 "parser.y" { set_le_inst (yyvsp[-3].i, yyvsp[-2].i, yyvsp[-1].i, yyvsp[0].i); } break; case 85: #line 1201 "parser.y" { if (!zero_imm ((imm_expr *)yyvsp[0].p)) /* Use $at */ i_type_inst (Y_ORI_OP, 1, 0, (imm_expr *)yyvsp[0].p); set_le_inst (yyvsp[-3].i, yyvsp[-2].i, yyvsp[-1].i, (zero_imm ((imm_expr *)yyvsp[0].p) ? 0 : 1)); free ((imm_expr *)yyvsp[0].p); } break; case 86: #line 1212 "parser.y" { set_gt_inst (yyvsp[-3].i, yyvsp[-2].i, yyvsp[-1].i, yyvsp[0].i); } break; case 87: #line 1217 "parser.y" { if (!zero_imm ((imm_expr *)yyvsp[0].p)) /* Use $at */ i_type_inst (Y_ORI_OP, 1, 0, (imm_expr *)yyvsp[0].p); set_gt_inst (yyvsp[-3].i, yyvsp[-2].i, yyvsp[-1].i, (zero_imm ((imm_expr *)yyvsp[0].p) ? 0 : 1)); free ((imm_expr *)yyvsp[0].p); } break; case 88: #line 1229 "parser.y" { set_ge_inst (yyvsp[-3].i, yyvsp[-2].i, yyvsp[-1].i, yyvsp[0].i); } break; case 89: #line 1234 "parser.y" { if (!zero_imm ((imm_expr *)yyvsp[0].p)) /* Use $at */ i_type_inst (Y_ORI_OP, 1, 0, (imm_expr *)yyvsp[0].p); set_ge_inst (yyvsp[-3].i, yyvsp[-2].i, yyvsp[-1].i, (zero_imm ((imm_expr *)yyvsp[0].p) ? 0 : 1)); free ((imm_expr *)yyvsp[0].p); } break; case 90: #line 1245 "parser.y" { set_eq_inst (yyvsp[-3].i, yyvsp[-2].i, yyvsp[-1].i, yyvsp[0].i); } break; case 91: #line 1250 "parser.y" { if (!zero_imm ((imm_expr *)yyvsp[0].p)) /* Use $at */ i_type_inst (Y_ORI_OP, 1, 0, (imm_expr *)yyvsp[0].p); set_eq_inst (yyvsp[-3].i, yyvsp[-2].i, yyvsp[-1].i, (zero_imm ((imm_expr *)yyvsp[0].p) ? 0 : 1)); free ((imm_expr *)yyvsp[0].p); } break; case 92: #line 1261 "parser.y" { /* RS and RT fields contain information on test */ int nd = opcode_is_nullified_branch (yyvsp[-1].i); int tf = opcode_is_true_branch (yyvsp[-1].i); i_type_inst_free (yyvsp[-1].i, cc_to_rt (0, nd, tf), BIN_RS (yyvsp[-1].i), (imm_expr *)yyvsp[0].p); } break; case 93: #line 1272 "parser.y" { /* RS and RT fields contain information on test */ int nd = opcode_is_nullified_branch (yyvsp[-2].i); int tf = opcode_is_true_branch (yyvsp[-2].i); i_type_inst_free (yyvsp[-2].i, cc_to_rt (yyvsp[-1].i, nd, tf), BIN_RS (yyvsp[-2].i), (imm_expr *)yyvsp[0].p); } break; case 94: #line 1284 "parser.y" { i_type_inst_free (yyvsp[-2].i, 0, yyvsp[-1].i, (imm_expr *)yyvsp[0].p); } break; case 95: #line 1290 "parser.y" { i_type_inst_free (yyvsp[-2].i == Y_BEQZ_POP ? Y_BEQ_OP : Y_BNE_OP, 0, yyvsp[-1].i, (imm_expr *)yyvsp[0].p); } break; case 96: #line 1297 "parser.y" { i_type_inst_free (yyvsp[-3].i, yyvsp[-1].i, yyvsp[-2].i, (imm_expr *)yyvsp[0].p); } break; case 97: #line 1302 "parser.y" { if (bare_machine && !accept_pseudo_insts) yyerror ("Immediate form not allowed in bare machine"); else { if (zero_imm ((imm_expr *)yyvsp[-1].p)) i_type_inst (yyvsp[-3].i, yyvsp[-2].i, (zero_imm ((imm_expr *)yyvsp[-1].p) ? 0 : 1), (imm_expr *)yyvsp[0].p); else { /* Use $at */ i_type_inst (Y_ORI_OP, 1, 0, (imm_expr *)yyvsp[-1].p); i_type_inst (yyvsp[-3].i, yyvsp[-2].i, (zero_imm ((imm_expr *)yyvsp[-1].p) ? 0 : 1), (imm_expr *)yyvsp[0].p); } } free ((imm_expr *)yyvsp[-1].p); free ((imm_expr *)yyvsp[0].p); } break; case 98: #line 1326 "parser.y" { r_type_inst (yyvsp[-3].i == Y_BGT_POP ? Y_SLT_OP : Y_SLTU_OP, 1, yyvsp[-1].i, yyvsp[-2].i); /* Use $at */ i_type_inst_free (Y_BNE_OP, 0, 1, (imm_expr *)yyvsp[0].p); } break; case 99: #line 1333 "parser.y" { if (yyvsp[-3].i == Y_BGT_POP) { /* Use $at */ i_type_inst_free (Y_SLTI_OP, 1, yyvsp[-2].i, incr_expr_offset ((imm_expr *)yyvsp[-1].p, 1)); i_type_inst (Y_BEQ_OP, 0, 1, (imm_expr *)yyvsp[0].p); } else { /* Use $at */ /* Can't add 1 to immediate since 0xffffffff+1 = 0 < 1 */ i_type_inst (Y_ORI_OP, 1, 0, (imm_expr *)yyvsp[-1].p); i_type_inst_free (Y_BEQ_OP, yyvsp[-2].i, 1, branch_offset (3)); r_type_inst (Y_SLTU_OP, 1, yyvsp[-2].i, 1); i_type_inst (Y_BEQ_OP, 0, 1, (imm_expr *)yyvsp[0].p); } free ((imm_expr *)yyvsp[-1].p); free ((imm_expr *)yyvsp[0].p); } break; case 100: #line 1356 "parser.y" { r_type_inst (yyvsp[-3].i == Y_BGE_POP ? Y_SLT_OP : Y_SLTU_OP, 1, yyvsp[-2].i, yyvsp[-1].i); /* Use $at */ i_type_inst_free (Y_BEQ_OP, 0, 1, (imm_expr *)yyvsp[0].p); } break; case 101: #line 1363 "parser.y" { i_type_inst (yyvsp[-3].i == Y_BGE_POP ? Y_SLTI_OP : Y_SLTIU_OP, 1, yyvsp[-2].i, (imm_expr *)yyvsp[-1].p); /* Use $at */ i_type_inst_free (Y_BEQ_OP, 0, 1, (imm_expr *)yyvsp[0].p); free ((imm_expr *)yyvsp[-1].p); } break; case 102: #line 1372 "parser.y" { r_type_inst (yyvsp[-3].i == Y_BLT_POP ? Y_SLT_OP : Y_SLTU_OP, 1, yyvsp[-2].i, yyvsp[-1].i); /* Use $at */ i_type_inst_free (Y_BNE_OP, 0, 1, (imm_expr *)yyvsp[0].p); } break; case 103: #line 1379 "parser.y" { i_type_inst (yyvsp[-3].i == Y_BLT_POP ? Y_SLTI_OP : Y_SLTIU_OP, 1, yyvsp[-2].i, (imm_expr *)yyvsp[-1].p); /* Use $at */ i_type_inst_free (Y_BNE_OP, 0, 1, (imm_expr *)yyvsp[0].p); free ((imm_expr *)yyvsp[-1].p); } break; case 104: #line 1388 "parser.y" { r_type_inst (yyvsp[-3].i == Y_BLE_POP ? Y_SLT_OP : Y_SLTU_OP, 1, yyvsp[-1].i, yyvsp[-2].i); /* Use $at */ i_type_inst_free (Y_BEQ_OP, 0, 1, (imm_expr *)yyvsp[0].p); } break; case 105: #line 1395 "parser.y" { if (yyvsp[-3].i == Y_BLE_POP) { /* Use $at */ i_type_inst_free (Y_SLTI_OP, 1, yyvsp[-2].i, incr_expr_offset ((imm_expr *)yyvsp[-1].p, 1)); i_type_inst (Y_BNE_OP, 0, 1, (imm_expr *)yyvsp[0].p); } else { /* Use $at */ /* Can't add 1 to immediate since 0xffffffff+1 = 0 < 1 */ i_type_inst (Y_ORI_OP, 1, 0, (imm_expr *)yyvsp[-1].p); i_type_inst (Y_BEQ_OP, yyvsp[-2].i, 1, (imm_expr *)yyvsp[0].p); r_type_inst (Y_SLTU_OP, 1, yyvsp[-2].i, 1); i_type_inst (Y_BNE_OP, 0, 1, (imm_expr *)yyvsp[0].p); } free ((imm_expr *)yyvsp[-1].p); free ((imm_expr *)yyvsp[0].p); } break; case 106: #line 1418 "parser.y" { if ((yyvsp[-1].i == Y_J_OP) || (yyvsp[-1].i == Y_JR_OP)) j_type_inst (Y_J_OP, (imm_expr *)yyvsp[0].p); else if ((yyvsp[-1].i == Y_JAL_OP) || (yyvsp[-1].i == Y_JALR_OP)) j_type_inst (Y_JAL_OP, (imm_expr *)yyvsp[0].p); free ((imm_expr *)yyvsp[0].p); } break; case 107: #line 1427 "parser.y" { if ((yyvsp[-1].i == Y_J_OP) || (yyvsp[-1].i == Y_JR_OP)) r_type_inst (Y_JR_OP, 0, yyvsp[0].i, 0); else if ((yyvsp[-1].i == Y_JAL_OP) || (yyvsp[-1].i == Y_JALR_OP)) r_type_inst (Y_JALR_OP, 31, yyvsp[0].i, 0); } break; case 108: #line 1435 "parser.y" { if ((yyvsp[-2].i == Y_J_OP) || (yyvsp[-2].i == Y_JR_OP)) r_type_inst (Y_JR_OP, 0, yyvsp[0].i, 0); else if ((yyvsp[-2].i == Y_JAL_OP) || (yyvsp[-2].i == Y_JALR_OP)) r_type_inst (Y_JALR_OP, yyvsp[-1].i, yyvsp[0].i, 0); } break; case 109: #line 1444 "parser.y" { i_type_inst_free ((yyvsp[-1].i == Y_BAL_POP ? Y_BGEZAL_OP : Y_BGEZ_OP), 0, 0, (imm_expr *)yyvsp[0].p); } break; case 110: #line 1451 "parser.y" { i_type_inst_free (yyvsp[-2].i, 0, yyvsp[-1].i, (imm_expr *)yyvsp[0].p); } break; case 111: #line 1457 "parser.y" { r_type_inst (yyvsp[-2].i, 0, yyvsp[-1].i, yyvsp[0].i); } break; case 112: #line 1463 "parser.y" { r_co_type_inst (yyvsp[-2].i, yyvsp[-1].i, yyvsp[0].i, 0); } break; case 113: #line 1469 "parser.y" { mips32_r2_inst (); } break; case 114: #line 1475 "parser.y" { r_type_inst (yyvsp[-3].i, yyvsp[-2].i, yyvsp[-1].i, cc_to_rt (yyvsp[0].i, 0, 0)); } break; case 115: #line 1481 "parser.y" { r_co_type_inst (yyvsp[-3].i, yyvsp[-2].i, yyvsp[-1].i, yyvsp[0].i); } break; case 116: #line 1487 "parser.y" { r_co_type_inst (yyvsp[-3].i, yyvsp[-2].i, yyvsp[-1].i, cc_to_rt (yyvsp[0].i, 0, 0)); } break; case 117: #line 1493 "parser.y" { mips32_r2_inst (); } break; case 118: #line 1499 "parser.y" { mips32_r2_inst (); } break; case 119: #line 1505 "parser.y" { r_type_inst (yyvsp[-1].i, yyvsp[0].i, 0, 0); } break; case 120: #line 1511 "parser.y" { r_type_inst (yyvsp[-1].i, 0, yyvsp[0].i, 0); } break; case 121: #line 1517 "parser.y" { r_type_inst (yyvsp[-3].i, yyvsp[-2].i, yyvsp[-1].i, yyvsp[0].i); } break; case 122: #line 1523 "parser.y" { if (yyvsp[-2].i == Y_MFC1_D_POP) { r_co_type_inst (Y_MFC1_OP, 0, yyvsp[0].i, yyvsp[-1].i); r_co_type_inst (Y_MFC1_OP, 0, yyvsp[0].i + 1, yyvsp[-1].i + 1); } else if (yyvsp[-2].i == Y_MTC1_D_POP) { r_co_type_inst (Y_MTC1_OP, 0, yyvsp[0].i, yyvsp[-1].i); r_co_type_inst (Y_MTC1_OP, 0, yyvsp[0].i + 1, yyvsp[-1].i + 1); } else r_co_type_inst (yyvsp[-2].i, 0, yyvsp[0].i, yyvsp[-1].i); } break; case 123: #line 1540 "parser.y" { mips32_r2_inst (); } break; case 124: #line 1546 "parser.y" { r_co_type_inst (yyvsp[-2].i, 0, yyvsp[0].i, yyvsp[-1].i); } break; case 125: #line 1552 "parser.y" { r_co_type_inst (yyvsp[-2].i, yyvsp[-1].i, yyvsp[0].i, 0); } break; case 126: #line 1558 "parser.y" { mips32_r2_inst (); } break; case 127: #line 1564 "parser.y" { r_co_type_inst (yyvsp[-3].i, yyvsp[-2].i, yyvsp[-1].i, yyvsp[0].i); } break; case 128: #line 1570 "parser.y" { mips32_r2_inst (); } break; case 129: #line 1576 "parser.y" { mips32_r2_inst (); } break; case 130: #line 1582 "parser.y" { r_cond_type_inst (yyvsp[-2].i, yyvsp[-1].i, yyvsp[0].i, 0); } break; case 131: #line 1588 "parser.y" { r_cond_type_inst (yyvsp[-3].i, yyvsp[-1].i, yyvsp[0].i, yyvsp[-2].i); } break; case 132: #line 1594 "parser.y" { mips32_r2_inst (); } break; case 133: #line 1600 "parser.y" { i_type_inst_free (yyvsp[-1].i, 0, 0, (imm_expr *)yyvsp[0].p); } break; case 151: #line 1632 "parser.y" { yyval.i = Y_LDC1_OP; } break; case 152: #line 1633 "parser.y" { yyval.i = Y_LWC1_OP; } break; case 165: #line 1652 "parser.y" { yyval.i = Y_SDC1_OP; } break; case 166: #line 1653 "parser.y" { yyval.i = Y_SWC1_OP; } break; case 172: #line 1666 "parser.y" { #ifdef MIPS1 yywarn ("RFE should only be used when SPIM is compiled as a MIPS-I processor"); #endif } break; case 182: #line 1689 "parser.y" { #ifdef MIPS1 yywarn ("ERET should only be used when SPIM is compiled as a MIPS32 processor"); #endif } break; case 280: #line 1855 "parser.y" { yywarn ("Warning:IPS32 Rev 2 '.HB' extension is not implemented and is ignored"); } break; case 283: #line 1858 "parser.y" { yywarn ("Warning:IPS32 Rev 2 '.HB' extension is not implemented and is ignored"); } break; case 456: #line 2090 "parser.y" { align_data (yyvsp[0].i); } break; case 457: #line 2094 "parser.y" {null_term = 0;} break; case 458: #line 2095 "parser.y" { if (text_dir) yyerror ("Can't put data in text segment"); } break; case 459: #line 2100 "parser.y" {null_term = 1;} break; case 460: #line 2101 "parser.y" { if (text_dir) yyerror ("Can't put data in text segment"); } break; case 463: #line 2113 "parser.y" {store_op = store_byte;} break; case 464: #line 2115 "parser.y" { if (text_dir) yyerror ("Can't put data in text segment"); } break; case 465: #line 2122 "parser.y" { align_data (2); if (lookup_label ((char*)yyvsp[-1].p)->addr == 0) { (void)record_label ((char*)yyvsp[-1].p, current_data_pc (), 1); free ((char*)yyvsp[-1].p); } increment_data_pc (yyvsp[0].i); } break; case 466: #line 2134 "parser.y" { user_kernel_data_segment (0); data_dir = 1; text_dir = 0; enable_data_alignment (); } break; case 467: #line 2141 "parser.y" { user_kernel_data_segment (0); data_dir = 1; text_dir = 0; enable_data_alignment (); set_data_pc (yyvsp[0].i); } break; case 468: #line 2150 "parser.y" { user_kernel_data_segment (1); data_dir = 1; text_dir = 0; enable_data_alignment (); } break; case 469: #line 2157 "parser.y" { user_kernel_data_segment (1); data_dir = 1; text_dir = 0; enable_data_alignment (); set_data_pc (yyvsp[0].i); } break; case 470: #line 2166 "parser.y" { store_op = store_double; if (data_dir) set_data_alignment (3); } break; case 471: #line 2171 "parser.y" { if (text_dir) yyerror ("Can't put data in text segment"); } break; case 477: #line 2189 "parser.y" { extern_directive ((char*)yyvsp[-1].p, yyvsp[0].i); } break; case 478: #line 2195 "parser.y" { fatal_error ("File contains an .err directive\n"); } break; case 480: #line 2204 "parser.y" { store_op = store_float; if (data_dir) set_data_alignment (2); } break; case 481: #line 2209 "parser.y" { if (text_dir) yyerror ("Can't put data in text segment"); } break; case 484: #line 2221 "parser.y" { (void)make_label_global ((char*)yyvsp[0].p); free ((char*)yyvsp[0].p); } break; case 485: #line 2228 "parser.y" { store_op = store_half; if (data_dir) set_data_alignment (1); } break; case 486: #line 2233 "parser.y" { if (text_dir) yyerror ("Can't put data in text segment"); } break; case 487: #line 2240 "parser.y" { (void)record_label ((char*)yyvsp[0].p, text_dir ? current_text_pc () : current_data_pc (), 1); free ((char*)yyvsp[0].p); } break; case 488: #line 2251 "parser.y" { lcomm_directive ((char*)yyvsp[-1].p, yyvsp[0].i); } break; case 494: #line 2269 "parser.y" { yyerror ("Warning: repeat directive ignored"); } break; case 495: #line 2275 "parser.y" { user_kernel_data_segment (0); data_dir = 1; text_dir = 0; enable_data_alignment (); } break; case 496: #line 2282 "parser.y" { user_kernel_data_segment (0); data_dir = 1; text_dir = 0; enable_data_alignment (); set_data_pc (yyvsp[0].i); } break; case 497: #line 2291 "parser.y" { user_kernel_data_segment (0); data_dir = 1; text_dir = 0; enable_data_alignment (); } break; case 498: #line 2298 "parser.y" { user_kernel_data_segment (0); data_dir = 1; text_dir = 0; enable_data_alignment (); set_data_pc (yyvsp[0].i); } break; case 499: #line 2307 "parser.y" { if (streq ((char*)yyvsp[0].p, "noat")) noat_flag = 1; else if (streq ((char*)yyvsp[0].p, "at")) noat_flag = 0; } break; case 500: #line 2316 "parser.y" { if (data_dir) increment_data_pc (yyvsp[0].i); else if (text_dir) increment_text_pc (yyvsp[0].i); } break; case 501: #line 2325 "parser.y" { yyerror ("Warning: struct directive ignored"); } break; case 502: #line 2331 "parser.y" { user_kernel_text_segment (0); data_dir = 0; text_dir = 1; enable_data_alignment (); } break; case 503: #line 2338 "parser.y" { user_kernel_text_segment (0); data_dir = 0; text_dir = 1; enable_data_alignment (); set_text_pc (yyvsp[0].i); } break; case 504: #line 2347 "parser.y" { user_kernel_text_segment (1); data_dir = 0; text_dir = 1; enable_data_alignment (); } break; case 505: #line 2354 "parser.y" { user_kernel_text_segment (1); data_dir = 0; text_dir = 1; enable_data_alignment (); set_text_pc (yyvsp[0].i); } break; case 508: #line 2368 "parser.y" { store_op = store_word_data; if (data_dir) set_data_alignment (2); } break; case 510: #line 2378 "parser.y" {only_id = 1;} break; case 511: #line 2378 "parser.y" {only_id = 0; yyval = yyvsp[0];} break; case 512: #line 2381 "parser.y" { yyval.p = make_addr_expr (0, NULL, yyvsp[-1].i); } break; case 513: #line 2386 "parser.y" { yyval.p = make_addr_expr (yyvsp[0].i, NULL, 0); } break; case 514: #line 2391 "parser.y" { yyval.p = make_addr_expr (yyvsp[-3].i, NULL, yyvsp[-1].i); } break; case 515: #line 2396 "parser.y" { yyval.p = make_addr_expr (0, (char*)yyvsp[0].p, 0); free ((char*)yyvsp[0].p); } break; case 516: #line 2402 "parser.y" { yyval.p = make_addr_expr (0, (char*)yyvsp[-3].p, yyvsp[-1].i); free ((char*)yyvsp[-3].p); } break; case 517: #line 2408 "parser.y" { yyval.p = make_addr_expr (yyvsp[0].i, (char*)yyvsp[-2].p, 0); free ((char*)yyvsp[-2].p); } break; case 518: #line 2414 "parser.y" { yyval.p = make_addr_expr (yyvsp[-2].i, (char*)yyvsp[0].p, 0); } break; case 519: #line 2419 "parser.y" { yyval.p = make_addr_expr (- yyvsp[0].i, (char*)yyvsp[-2].p, 0); free ((char*)yyvsp[-2].p); } break; case 520: #line 2425 "parser.y" { yyval.p = make_addr_expr (yyvsp[-3].i, (char*)yyvsp[-5].p, yyvsp[-1].i); free ((char*)yyvsp[-5].p); } break; case 521: #line 2431 "parser.y" { yyval.p = make_addr_expr (- yyvsp[-3].i, (char*)yyvsp[-5].p, yyvsp[-1].i); free ((char*)yyvsp[-5].p); } break; case 522: #line 2438 "parser.y" {only_id = 1;} break; case 523: #line 2438 "parser.y" {only_id = 0; yyval = yyvsp[0];} break; case 524: #line 2441 "parser.y" { check_imm_range (yyvsp[0].p, IMM_MIN, IMM_MAX); yyval = yyvsp[0]; } break; case 525: #line 2447 "parser.y" { check_uimm_range (yyvsp[0].p, UIMM_MIN, UIMM_MAX); yyval = yyvsp[0]; } break; case 526: #line 2454 "parser.y" { yyval.p = make_imm_expr (yyvsp[0].i, NULL, 0); } break; case 527: #line 2459 "parser.y" { yyval.p = make_imm_expr (yyvsp[-4].i >> yyvsp[0].i, NULL, 0); } break; case 528: #line 2464 "parser.y" { yyval.p = make_imm_expr (0, (char*)yyvsp[0].p, 0); } break; case 529: #line 2469 "parser.y" { yyval.p = make_imm_expr (yyvsp[0].i, (char*)yyvsp[-2].p, 0); free ((char*)yyvsp[-2].p); } break; case 530: #line 2475 "parser.y" { yyval.p = make_imm_expr (- yyvsp[0].i, (char*)yyvsp[-2].p, 0); free ((char*)yyvsp[-2].p); } break; case 532: #line 2485 "parser.y" {yyval.i = yyvsp[-2].i + yyvsp[0].i;} break; case 533: #line 2488 "parser.y" { /* This is actually: Y_INT '-' Y_INT, since the binary subtract operator gets scanned as a unary negation operator. */ if (yyvsp[0].i >= 0) yyerror ("Syntax error"); yyval.i = yyvsp[-1].i - -yyvsp[0].i; } break; case 538: #line 2506 "parser.y" { if (yyvsp[0].i < 0 || yyvsp[0].i > 31) yyerror ("Register number out of range"); if (yyvsp[0].i == 1 && !bare_machine && !noat_flag) yyerror ("Register 1 is reserved for assembler"); yyval = yyvsp[0]; } break; case 542: #line 2521 "parser.y" { if (yyvsp[0].i < 0 || yyvsp[0].i > 31) yyerror ("FP register number out of range"); yyval = yyvsp[0]; } break; case 543: #line 2529 "parser.y" { if (yyvsp[0].i < 0 || yyvsp[0].i > 7) yyerror ("CC register number out of range"); yyval = yyvsp[0]; } break; case 546: #line 2544 "parser.y" { yyval.p = make_imm_expr (-(int)current_text_pc (), (char*)yyvsp[0].p, 1); } break; case 549: #line 2555 "parser.y" { store_string ((char*)yyvsp[0].p, y_str_length, null_term); free ((char*)yyvsp[0].p); } break; case 550: #line 2560 "parser.y" { int i; for (i = 0; i < yyvsp[0].i; i ++) store_string ((char*)yyvsp[-2].p, y_str_length, null_term); free ((char*)yyvsp[-2].p); } break; case 551: #line 2570 "parser.y" {only_id = 1;} break; case 552: #line 2570 "parser.y" {only_id = 0; yyval = yyvsp[0];} break; case 554: #line 2575 "parser.y" { label *l = lookup_label ((char*)yyvsp[0].p); if (l->addr == 0) { record_data_uses_symbol (current_data_pc (), l); yyval.p = NULL; } else yyval.i = l->addr; } break; case 555: #line 2589 "parser.y" { store_op (yyvsp[0].p); } break; case 556: #line 2593 "parser.y" { store_op (yyvsp[0].p); } break; case 557: #line 2597 "parser.y" { int i; for (i = 0; i < yyvsp[0].i; i ++) store_op (yyvsp[-2].p); } break; case 558: #line 2607 "parser.y" { store_op (yyvsp[0].p); } break; case 559: #line 2611 "parser.y" { store_op (yyvsp[0].p); } break; case 560: #line 2617 "parser.y" {only_id = 1;} break; case 561: #line 2617 "parser.y" {only_id = 0; yyval = yyvsp[0];} break; case 563: #line 2620 "parser.y" {yyval.p = (void*)NULL;} break; case 564: #line 2624 "parser.y" {only_id = 1;} break; case 565: #line 2624 "parser.y" {only_id = 0; yyval = yyvsp[0];} break; } /* Line 999 of yacc.c. */ #line 4819 "y.tab.c" yyvsp -= yylen; yyssp -= yylen; YY_STACK_PRINT (yyss, yyssp); *++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. */ yyn = yyr1[yyn]; yystate = yypgoto[yyn - YYNTOKENS] + *yyssp; if (0 <= yystate && yystate <= YYLAST && yycheck[yystate] == *yyssp) yystate = yytable[yystate]; else yystate = yydefgoto[yyn - YYNTOKENS]; goto yynewstate; /*------------------------------------. | yyerrlab -- here on detecting error | `------------------------------------*/ yyerrlab: /* If not already recovering from an error, report this error. */ if (!yyerrstatus) { ++yynerrs; #if YYERROR_VERBOSE yyn = yypact[yystate]; if (YYPACT_NINF < yyn && yyn < YYLAST) { YYSIZE_T yysize = 0; int yytype = YYTRANSLATE (yychar); const char* yyprefix; char *yymsg; int yyx; /* Start YYX at -YYN if negative to avoid negative indexes in YYCHECK. */ int yyxbegin = yyn < 0 ? -yyn : 0; /* Stay within bounds of both yycheck and yytname. */ int yychecklim = YYLAST - yyn; int yyxend = yychecklim < YYNTOKENS ? yychecklim : YYNTOKENS; int yycount = 0; yyprefix = ", expecting "; for (yyx = yyxbegin; yyx < yyxend; ++yyx) if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR) { yysize += yystrlen (yyprefix) + yystrlen (yytname [yyx]); yycount += 1; if (yycount == 5) { yysize = 0; break; } } yysize += (sizeof ("syntax error, unexpected ") + yystrlen (yytname[yytype])); yymsg = (char *) YYSTACK_ALLOC (yysize); if (yymsg != 0) { char *yyp = yystpcpy (yymsg, "syntax error, unexpected "); yyp = yystpcpy (yyp, yytname[yytype]); if (yycount < 5) { yyprefix = ", expecting "; for (yyx = yyxbegin; yyx < yyxend; ++yyx) if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR) { yyp = yystpcpy (yyp, yyprefix); yyp = yystpcpy (yyp, yytname[yyx]); yyprefix = " or "; } } yyerror (yymsg); YYSTACK_FREE (yymsg); } else yyerror ("syntax error; also virtual memory exhausted"); } else #endif /* YYERROR_VERBOSE */ yyerror ("syntax error"); } if (yyerrstatus == 3) { /* If just tried and failed to reuse lookahead token after an error, discard it. */ /* Return failure if at end of input. */ if (yychar == YYEOF) { /* Pop the error token. */ YYPOPSTACK; /* Pop the rest of the stack. */ while (yyss < yyssp) { YYDSYMPRINTF ("Error: popping", yystos[*yyssp], yyvsp, yylsp); yydestruct (yystos[*yyssp], yyvsp); YYPOPSTACK; } YYABORT; } YYDSYMPRINTF ("Error: discarding", yytoken, &yylval, &yylloc); yydestruct (yytoken, &yylval); yychar = YYEMPTY; } /* Else will try to reuse lookahead token after shifting the error token. */ goto yyerrlab1; /*----------------------------------------------------. | yyerrlab1 -- error raised explicitly by an action. | `----------------------------------------------------*/ yyerrlab1: yyerrstatus = 3; /* Each real token shifted decrements this. */ for (;;) { yyn = yypact[yystate]; if (yyn != YYPACT_NINF) { yyn += YYTERROR; if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYTERROR) { yyn = yytable[yyn]; if (0 < yyn) break; } } /* Pop the current state because it cannot handle the error token. */ if (yyssp == yyss) YYABORT; YYDSYMPRINTF ("Error: popping", yystos[*yyssp], yyvsp, yylsp); yydestruct (yystos[yystate], yyvsp); yyvsp--; yystate = *--yyssp; YY_STACK_PRINT (yyss, yyssp); } if (yyn == YYFINAL) YYACCEPT; YYDPRINTF ((stderr, "Shifting error token, ")); *++yyvsp = yylval; yystate = yyn; goto yynewstate; /*-------------------------------------. | yyacceptlab -- YYACCEPT comes here. | `-------------------------------------*/ yyacceptlab: yyresult = 0; goto yyreturn; /*-----------------------------------. | yyabortlab -- YYABORT comes here. | `-----------------------------------*/ yyabortlab: yyresult = 1; goto yyreturn; #ifndef yyoverflow /*----------------------------------------------. | yyoverflowlab -- parser overflow comes here. | `----------------------------------------------*/ yyoverflowlab: yyerror ("parser stack overflow"); yyresult = 2; /* Fall through. */ #endif yyreturn: #ifndef yyoverflow if (yyss != yyssa) YYSTACK_FREE (yyss); #endif return yyresult; } #line 2627 "parser.y" /* Maintain and update the address of labels for the current line. */ void fix_current_label_address (mem_addr new_addr) { label_list *l; for (l = this_line_labels; l != NULL; l = l->tail) { l->head->addr = new_addr; } clear_labels (); } static label_list * cons_label (label *head, label_list *tail) { label_list *c = (label_list *) malloc (sizeof (label_list)); c->head = head; c->tail = tail; return (c); } static void clear_labels () { label_list *n; for ( ; this_line_labels != NULL; this_line_labels = n) { resolve_label_uses (this_line_labels->head); n = this_line_labels->tail; free (this_line_labels); } } /* Operations on op codes. */ int op_to_imm_op (int opcode) { switch (opcode) { case Y_ADD_OP: return (Y_ADDI_OP); case Y_ADDU_OP: return (Y_ADDIU_OP); case Y_AND_OP: return (Y_ANDI_OP); case Y_OR_OP: return (Y_ORI_OP); case Y_XOR_OP: return (Y_XORI_OP); case Y_SLT_OP: return (Y_SLTI_OP); case Y_SLTU_OP: return (Y_SLTIU_OP); case Y_SLLV_OP: return (Y_SLL_OP); case Y_SRAV_OP: return (Y_SRA_OP); case Y_SRLV_OP: return (Y_SRL_OP); default: fatal_error ("Can't convert op to immediate op\n"); return (0); } } int imm_op_to_op (int opcode) { switch (opcode) { case Y_ADDI_OP: return (Y_ADD_OP); case Y_ADDIU_OP: return (Y_ADDU_OP); case Y_ANDI_OP: return (Y_AND_OP); case Y_ORI_OP: return (Y_OR_OP); case Y_XORI_OP: return (Y_XOR_OP); case Y_SLTI_OP: return (Y_SLT_OP); case Y_SLTIU_OP: return (Y_SLTU_OP); case Y_J_OP: return (Y_JR_OP); case Y_LUI_OP: return (Y_ADDU_OP); case Y_SLL_OP: return (Y_SLLV_OP); case Y_SRA_OP: return (Y_SRAV_OP); case Y_SRL_OP: return (Y_SRLV_OP); default: fatal_error ("Can't convert immediate op to op\n"); return (0); } } static void nop_inst () { r_type_inst (Y_SLL_OP, 0, 0, 0); /* = 0 */ } static void trap_inst () { r_type_inst (Y_BREAK_OP, 0, 0, 0); } static imm_expr * branch_offset (int n_inst) { return (const_imm_expr (n_inst << 2)); /* Later shifted right 2 places */ } static void div_inst (int op, int rd, int rs, int rt, int const_divisor) { if (rd != 0 && !const_divisor) { i_type_inst_free (Y_BNE_OP, 0, rt, branch_offset (2)); trap_inst (); } if (op == Y_DIV_OP || op == Y_REM_POP) r_type_inst (Y_DIV_OP, 0, rs, rt); else r_type_inst (Y_DIVU_OP, 0, rs, rt); if (rd != 0) { if (op == Y_DIV_OP || op == Y_DIVU_OP) /* Quotient */ r_type_inst (Y_MFLO_OP, rd, 0, 0); else /* Remainder */ r_type_inst (Y_MFHI_OP, rd, 0, 0); } } static void mult_inst (int op, int rd, int rs, int rt) { if (op == Y_MULOU_POP) r_type_inst (Y_MULTU_OP, 0, rs, rt); else r_type_inst (Y_MULT_OP, 0, rs, rt); if (op == Y_MULOU_POP && rd != 0) { r_type_inst (Y_MFHI_OP, 1, 0, 0); /* Use $at */ i_type_inst_free (Y_BEQ_OP, 0, 1, branch_offset (2)); trap_inst (); } else if (op == Y_MULO_POP && rd != 0) { r_type_inst (Y_MFHI_OP, 1, 0, 0); /* use $at */ r_type_inst (Y_MFLO_OP, rd, 0, 0); r_sh_type_inst (Y_SRA_OP, rd, rd, 31); i_type_inst_free (Y_BEQ_OP, rd, 1, branch_offset (2)); trap_inst (); } if (rd != 0) r_type_inst (Y_MFLO_OP, rd, 0, 0); } static void set_le_inst (int op, int rd, int rs, int rt) { i_type_inst_free (Y_BNE_OP, rs, rt, branch_offset (3)); i_type_inst_free (Y_ORI_OP, rd, 0, const_imm_expr (1)); i_type_inst_free (Y_BEQ_OP, 0, 0, branch_offset (2)); r_type_inst ((op == Y_SLE_POP ? Y_SLT_OP : Y_SLTU_OP), rd, rs, rt); } static void set_gt_inst (int op, int rd, int rs, int rt) { r_type_inst (op == Y_SGT_POP ? Y_SLT_OP : Y_SLTU_OP, rd, rt, rs); } static void set_ge_inst (int op, int rd, int rs, int rt) { i_type_inst_free (Y_BNE_OP, rs, rt, branch_offset (3)); i_type_inst_free (Y_ORI_OP, rd, 0, const_imm_expr (1)); i_type_inst_free (Y_BEQ_OP, 0, 0, branch_offset (2)); r_type_inst (op == Y_SGE_POP ? Y_SLT_OP : Y_SLTU_OP, rd, rt, rs); } static void set_eq_inst (int op, int rd, int rs, int rt) { imm_expr *if_eq, *if_neq; if (op == Y_SEQ_POP) if_eq = const_imm_expr (1), if_neq = const_imm_expr (0); else if_eq = const_imm_expr (0), if_neq = const_imm_expr (1); i_type_inst_free (Y_BEQ_OP, rs, rt, branch_offset (3)); /* RD <- 0 (if not equal) */ i_type_inst_free (Y_ORI_OP, rd, 0, if_neq); i_type_inst_free (Y_BEQ_OP, 0, 0, branch_offset (2)); /* Branch always */ /* RD <- 1 */ i_type_inst_free (Y_ORI_OP, rd, 0, if_eq); } /* Store the value either as a datum or instruction. */ static void store_word_data (int value) { if (data_dir) store_word (value); else if (text_dir) store_instruction (inst_decode (value)); } void initialize_parser (char *file_name) { input_file_name = file_name; only_id = 0; data_dir = 0; text_dir = 1; } static void check_imm_range (imm_expr* expr, int32 min, int32 max) { if (expr->symbol == NULL || SYMBOL_IS_DEFINED (expr->symbol)) { /* If expression can be evaluated, compare its value against the limits and complain if the value is out of bounds. */ int32 value = eval_imm_expr (expr); if (value < min || max < value) { char str[200]; sprintf (str, "immediate value (%d) out of range (%d .. %d)", value, min, max); yywarn (str); } } } static void check_uimm_range (imm_expr* expr, uint32 min, uint32 max) { if (expr->symbol == NULL || SYMBOL_IS_DEFINED (expr->symbol)) { /* If expression can be evaluated, compare its value against the limits and complain if the value is out of bounds. */ uint32 value = (uint32)eval_imm_expr (expr); if (value < min || max < value) { char str[200]; sprintf (str, "immediate value (%d) out of range (%d .. %d)", (int32)value, (int32)min, (int32)max); yywarn (str); } } } void yyerror (char *s) { parse_error_occurred = 1; clear_labels (); yywarn (s); } void yywarn (char *s) { error ("spim: (parser) %s on line %d of file %s\n", s, line_no, input_file_name); print_erroneous_line (); } static void mips32_r2_inst () { yyerror ("Warning: MIPS32 Rev 2 instruction is not implemented. Instruction ignored."); } static int cc_to_rt (int cc, int nd, int tf) { return (cc << 2) | (nd << 1) | tf; }