abc_instructions.h 20.5 KB
Newer Older
1
#if !defined(_H_ABCINT_ABC_INSTRUCTIONS) || defined(_COMPUTED_GOTO_LABELS) || defined(_INSTRUCTION_NAMES)
2 3
#define _H_ABCINT_ABC_INSTRUCTIONS

4
#ifdef _COMPUTED_GOTO_LABELS
5
# define INSTRUCTION(i) &&instr_ ## i,
6
void *_instruction_labels[] = {
7 8
#elif defined(_INSTRUCTION_NAMES)
# define INSTRUCTION(i) case C ## i: return #i;
9
#else
10
# define INSTRUCTION(i) C ## i,
11
enum {
12
#endif
13 14 15
	INSTRUCTION(absR)
	INSTRUCTION(acosR)
	INSTRUCTION(addI)
16 17
	INSTRUCTION(addIo)
	INSTRUCTION(addLU)
18 19 20
	INSTRUCTION(addR)
	INSTRUCTION(add_empty_node2)
	INSTRUCTION(add_empty_node3)
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
	INSTRUCTION(add_empty_node4)
	INSTRUCTION(add_empty_node5)
	INSTRUCTION(add_empty_node6)
	INSTRUCTION(add_empty_node7)
	INSTRUCTION(add_empty_node8)
	INSTRUCTION(add_empty_node9)
	INSTRUCTION(add_empty_node10)
	INSTRUCTION(add_empty_node11)
	INSTRUCTION(add_empty_node12)
	INSTRUCTION(add_empty_node13)
	INSTRUCTION(add_empty_node14)
	INSTRUCTION(add_empty_node15)
	INSTRUCTION(add_empty_node16)
	INSTRUCTION(add_empty_node17)
	INSTRUCTION(add_empty_node18)
	INSTRUCTION(add_empty_node19)
	INSTRUCTION(add_empty_node20)
	INSTRUCTION(add_empty_node21)
	INSTRUCTION(add_empty_node22)
	INSTRUCTION(add_empty_node23)
	INSTRUCTION(add_empty_node24)
	INSTRUCTION(add_empty_node25)
	INSTRUCTION(add_empty_node26)
	INSTRUCTION(add_empty_node27)
	INSTRUCTION(add_empty_node28)
	INSTRUCTION(add_empty_node29)
	INSTRUCTION(add_empty_node30)
	INSTRUCTION(add_empty_node31)
	INSTRUCTION(add_empty_node32)
50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68
	INSTRUCTION(andI)
	INSTRUCTION(asinR)
	INSTRUCTION(atanR)
	INSTRUCTION(build)
	INSTRUCTION(build0)
	INSTRUCTION(build1)
	INSTRUCTION(build2)
	INSTRUCTION(build3)
	INSTRUCTION(build4)
	INSTRUCTION(buildAC)
	INSTRUCTION(buildh)
	INSTRUCTION(buildh0)
	INSTRUCTION(buildh1)
	INSTRUCTION(buildh2)
	INSTRUCTION(buildh3)
	INSTRUCTION(buildh4)
	INSTRUCTION(buildhr01)
	INSTRUCTION(buildhr02)
	INSTRUCTION(buildhr03)
Camil Staps's avatar
Camil Staps committed
69
	INSTRUCTION(buildhr04)
70 71 72 73 74 75 76 77 78 79 80 81 82 83
	INSTRUCTION(buildhr10)
	INSTRUCTION(buildhr11)
	INSTRUCTION(buildhr12)
	INSTRUCTION(buildhr13)
	INSTRUCTION(buildhr1b)
	INSTRUCTION(buildhr20)
	INSTRUCTION(buildhr21)
	INSTRUCTION(buildhr22)
	INSTRUCTION(buildhr30)
	INSTRUCTION(buildhr31)
	INSTRUCTION(buildhr40)
	INSTRUCTION(build_r)
	INSTRUCTION(build_ra0)
	INSTRUCTION(build_ra1)
Camil Staps's avatar
Camil Staps committed
84
	INSTRUCTION(build_r0b)
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
	INSTRUCTION(buildBFALSE)
	INSTRUCTION(buildBTRUE)
	INSTRUCTION(buildB_b)
	INSTRUCTION(buildC)
	INSTRUCTION(buildC_b)
	INSTRUCTION(buildF_b)
	INSTRUCTION(buildI)
	INSTRUCTION(buildI_b)
	INSTRUCTION(buildR)
	INSTRUCTION(buildR_b)
	INSTRUCTION(buildhr)
	INSTRUCTION(buildhra0)
	INSTRUCTION(buildhra1)
	INSTRUCTION(buildhr0b)
	INSTRUCTION(build_r01)
	INSTRUCTION(build_r02)
	INSTRUCTION(build_r03)
	INSTRUCTION(build_r04)
	INSTRUCTION(build_r10)
	INSTRUCTION(build_r11)
	INSTRUCTION(build_r12)
	INSTRUCTION(build_r13)
	INSTRUCTION(build_r1b)
	INSTRUCTION(build_r20)
	INSTRUCTION(build_r21)
	INSTRUCTION(build_r30)
	INSTRUCTION(build_r31)
	INSTRUCTION(build_r40)
	INSTRUCTION(build_u)
	INSTRUCTION(build_u01)
	INSTRUCTION(build_u02)
	INSTRUCTION(build_u03)
Camil Staps's avatar
Camil Staps committed
117
	INSTRUCTION(build_u0b)
118 119 120
	INSTRUCTION(build_u11)
	INSTRUCTION(build_u12)
	INSTRUCTION(build_u13)
Camil Staps's avatar
Camil Staps committed
121
	INSTRUCTION(build_u1b)
122 123
	INSTRUCTION(build_u21)
	INSTRUCTION(build_u22)
Camil Staps's avatar
Camil Staps committed
124
	INSTRUCTION(build_u2b)
125 126
	INSTRUCTION(build_u31)
	INSTRUCTION(build_ua1)
127
	INSTRUCTION(catAC)
128
	INSTRUCTION(ccall)
Camil Staps's avatar
Camil Staps committed
129
	INSTRUCTION(centry)
130
	INSTRUCTION(cmpAC)
131 132 133 134 135 136 137 138 139 140 141 142
	INSTRUCTION(cosR)
	INSTRUCTION(create)
	INSTRUCTION(creates)
	INSTRUCTION(create_array)
	INSTRUCTION(create_arrayBOOL)
	INSTRUCTION(create_arrayCHAR)
	INSTRUCTION(create_arrayINT)
	INSTRUCTION(create_arrayREAL)
	INSTRUCTION(create_array_)
	INSTRUCTION(create_array_BOOL)
	INSTRUCTION(create_array_CHAR)
	INSTRUCTION(create_array_INT)
Camil Staps's avatar
Camil Staps committed
143
	INSTRUCTION(create_array_REAL)
144 145 146 147 148 149
	INSTRUCTION(create_array_r)
	INSTRUCTION(create_array_r_)
	INSTRUCTION(create_array_r_a)
	INSTRUCTION(create_array_r_b)
	INSTRUCTION(decI)
	INSTRUCTION(divI)
150
	INSTRUCTION(divLU)
151 152 153 154 155 156 157 158 159 160 161 162
	INSTRUCTION(divR)
	INSTRUCTION(entierR)
	INSTRUCTION(eqAC)
	INSTRUCTION(eqAC_a)
	INSTRUCTION(eqB)
	INSTRUCTION(eqB_aFALSE)
	INSTRUCTION(eqB_aTRUE)
	INSTRUCTION(eqB_bFALSE)
	INSTRUCTION(eqB_bTRUE)
	INSTRUCTION(eqC)
	INSTRUCTION(eqC_a)
	INSTRUCTION(eqC_b)
163
	INSTRUCTION(eqCc)
164 165
	INSTRUCTION(eqD_b)
	INSTRUCTION(eq_desc)
166
	INSTRUCTION(eq_desc_b)
167 168 169 170
	INSTRUCTION(eq_nulldesc)
	INSTRUCTION(eqI)
	INSTRUCTION(eqI_a)
	INSTRUCTION(eqI_b)
171
	INSTRUCTION(eqIi)
172
	INSTRUCTION(eqR)
173
	INSTRUCTION(eqR_b)
174 175
	INSTRUCTION(expR)
	INSTRUCTION(fill)
Camil Staps's avatar
Camil Staps committed
176
	INSTRUCTION(fill0)
177
	INSTRUCTION(fill1_r0101)
178 179 180 181 182 183 184 185 186 187
	INSTRUCTION(fill1_r0111)
	INSTRUCTION(fill1_r02001)
	INSTRUCTION(fill1_r02010)
	INSTRUCTION(fill1_r02011)
	INSTRUCTION(fill1_r02101)
	INSTRUCTION(fill1_r02110)
	INSTRUCTION(fill1_r02111)
	INSTRUCTION(fill1_r11001)
	INSTRUCTION(fill1_r11011)
	INSTRUCTION(fill1_r11101)
188 189
	INSTRUCTION(fill1_r11111)
	INSTRUCTION(fill1_r20111)
190 191 192 193
	INSTRUCTION(fill1)
	INSTRUCTION(fill1001)
	INSTRUCTION(fill1010)
	INSTRUCTION(fill1011)
194
	INSTRUCTION(fill1101)
195 196
	INSTRUCTION(fill2)
	INSTRUCTION(fill2a001)
Camil Staps's avatar
Camil Staps committed
197
	INSTRUCTION(fill2a002)
198
	INSTRUCTION(fill2a011)
Camil Staps's avatar
Camil Staps committed
199
	INSTRUCTION(fill2a012)
200 201 202 203 204 205 206 207
	INSTRUCTION(fill2ab011)
	INSTRUCTION(fill2ab013)
	INSTRUCTION(fill2ab002)
	INSTRUCTION(fill2ab003)
	INSTRUCTION(fill2b001)
	INSTRUCTION(fill2b002)
	INSTRUCTION(fill2b011)
	INSTRUCTION(fill2b012)
208 209 210 211
	INSTRUCTION(fill2_r00)
	INSTRUCTION(fill2_r01)
	INSTRUCTION(fill2_r10)
	INSTRUCTION(fill2_r11)
Camil Staps's avatar
Camil Staps committed
212
	INSTRUCTION(fill3)
213 214 215 216
	INSTRUCTION(fill3a10)
	INSTRUCTION(fill3a11)
	INSTRUCTION(fill3a12)
	INSTRUCTION(fill3aaab13)
217 218 219
	INSTRUCTION(fill3_r)
	INSTRUCTION(fill3_r01a)
	INSTRUCTION(fill3_r01b)
220 221 222 223 224 225 226 227 228 229 230
	INSTRUCTION(fill4)
	INSTRUCTION(fillcaf)
	INSTRUCTION(fillh)
	INSTRUCTION(fillh0)
	INSTRUCTION(fillh1)
	INSTRUCTION(fillh2)
	INSTRUCTION(fillh3)
	INSTRUCTION(fillh4)
	INSTRUCTION(fillB_b)
	INSTRUCTION(fillC_b)
	INSTRUCTION(fillF_b)
231
	INSTRUCTION(fillI)
232 233 234 235 236 237 238
	INSTRUCTION(fillI_b)
	INSTRUCTION(fillR_b)
	INSTRUCTION(fill_a)
	INSTRUCTION(fill_r)
	INSTRUCTION(fill_r01)
	INSTRUCTION(fill_r02)
	INSTRUCTION(fill_r03)
239
	INSTRUCTION(fill_r0b)
240 241 242 243 244 245 246 247 248 249 250 251 252
	INSTRUCTION(fill_r10)
	INSTRUCTION(fill_r11)
	INSTRUCTION(fill_r12)
	INSTRUCTION(fill_r13)
	INSTRUCTION(fill_r1b)
	INSTRUCTION(fill_r20)
	INSTRUCTION(fill_r21)
	INSTRUCTION(fill_r22)
	INSTRUCTION(fill_r30)
	INSTRUCTION(fill_r31)
	INSTRUCTION(fill_r40)
	INSTRUCTION(fill_ra0)
	INSTRUCTION(fill_ra1)
253
	INSTRUCTION(fill_u)
254
	INSTRUCTION(get_desc_arity_offset)
255
	INSTRUCTION(get_node_arity)
256
	INSTRUCTION(get_thunk_desc)
257 258 259
	INSTRUCTION(gtI)
	INSTRUCTION(halt)
	INSTRUCTION(incI)
260
	INSTRUCTION(instruction)
261 262 263 264 265
	INSTRUCTION(is_record)
	INSTRUCTION(jmp)
	INSTRUCTION(jmp_eval)
	INSTRUCTION(jmp_eval_upd)
	INSTRUCTION(jmp_false)
266 267 268 269 270
	INSTRUCTION(jmp_i)
	INSTRUCTION(jmp_i0)
	INSTRUCTION(jmp_i1)
	INSTRUCTION(jmp_i2)
	INSTRUCTION(jmp_i3)
271 272 273 274 275 276 277
	INSTRUCTION(jmp_true)
	INSTRUCTION(jsr)
	INSTRUCTION(jsr_eval)
	INSTRUCTION(jsr_eval0)
	INSTRUCTION(jsr_eval1)
	INSTRUCTION(jsr_eval2)
	INSTRUCTION(jsr_eval3)
278 279 280 281 282
	INSTRUCTION(jsr_i)
	INSTRUCTION(jsr_i0)
	INSTRUCTION(jsr_i1)
	INSTRUCTION(jsr_i2)
	INSTRUCTION(jsr_i3)
283
	INSTRUCTION(lnR)
284
	INSTRUCTION(load_i)
285
	INSTRUCTION(load_module_name)
286 287 288
	INSTRUCTION(load_si16)
	INSTRUCTION(load_si32)
	INSTRUCTION(load_ui8)
289 290 291 292
	INSTRUCTION(log10R)
	INSTRUCTION(ltC)
	INSTRUCTION(ltI)
	INSTRUCTION(ltR)
293
	INSTRUCTION(ltU)
294
	INSTRUCTION(mulI)
295
	INSTRUCTION(mulIo)
296
	INSTRUCTION(mulR)
297
	INSTRUCTION(mulUUL)
298 299 300 301 302 303 304 305 306 307 308 309 310
	INSTRUCTION(negI)
	INSTRUCTION(negR)
	INSTRUCTION(notB)
	INSTRUCTION(notI)
	INSTRUCTION(orI)
	INSTRUCTION(pop_a)
	INSTRUCTION(pop_b)
	INSTRUCTION(powR)
	INSTRUCTION(print)
	INSTRUCTION(printD)
	INSTRUCTION(print_char)
	INSTRUCTION(print_int)
	INSTRUCTION(print_real)
311
	INSTRUCTION(print_string)
312
	INSTRUCTION(print_symbol_sc)
313
	INSTRUCTION(pushcaf)
314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331
	INSTRUCTION(pushcaf10)
	INSTRUCTION(pushcaf11)
	INSTRUCTION(pushcaf20)
	INSTRUCTION(pushcaf31)
	INSTRUCTION(pushA_a)
	INSTRUCTION(pushBFALSE)
	INSTRUCTION(pushBTRUE)
	INSTRUCTION(pushB_a)
	INSTRUCTION(pushB0_pop_a1)
	INSTRUCTION(pushC)
	INSTRUCTION(pushC_a)
	INSTRUCTION(pushC0_pop_a1)
	INSTRUCTION(pushD)
	INSTRUCTION(pushD_a)
	INSTRUCTION(pushF_a)
	INSTRUCTION(pushI)
	INSTRUCTION(pushI_a)
	INSTRUCTION(pushI0_pop_a1)
332 333
	INSTRUCTION(pushL)
	INSTRUCTION(pushLc)
334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354
	INSTRUCTION(pushR)
	INSTRUCTION(pushR_a)
	INSTRUCTION(push_a)
	INSTRUCTION(push_a_r_args)
	INSTRUCTION(push_arg)
	INSTRUCTION(push_arg1)
	INSTRUCTION(push_arg2)
	INSTRUCTION(push_arg2l)
	INSTRUCTION(push_arg3)
	INSTRUCTION(push_arg4)
	INSTRUCTION(push_arg_b)
	INSTRUCTION(push_args)
	INSTRUCTION(push_args1)
	INSTRUCTION(push_args2)
	INSTRUCTION(push_args3)
	INSTRUCTION(push_args4)
	INSTRUCTION(push_args_u)
	INSTRUCTION(push_array)
	INSTRUCTION(push_arraysize)
	INSTRUCTION(push_a_b)
	INSTRUCTION(push_b)
355
	INSTRUCTION(push_finalizers)
356 357 358 359 360 361
	INSTRUCTION(push_node)
	INSTRUCTION(push_node0)
	INSTRUCTION(push_node1)
	INSTRUCTION(push_node2)
	INSTRUCTION(push_node3)
	INSTRUCTION(push_node4)
362
	INSTRUCTION(push_node_)
363 364 365 366
	INSTRUCTION(push_node_u)
	INSTRUCTION(push_node_u01)
	INSTRUCTION(push_node_u02)
	INSTRUCTION(push_node_u03)
367
	INSTRUCTION(push_node_u0b)
368 369 370
	INSTRUCTION(push_node_u11)
	INSTRUCTION(push_node_u12)
	INSTRUCTION(push_node_u13)
371
	INSTRUCTION(push_node_u1b)
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
	INSTRUCTION(push_node_u21)
	INSTRUCTION(push_node_u22)
	INSTRUCTION(push_node_u31)
	INSTRUCTION(push_node_ua1)
	INSTRUCTION(push_r_arg_D)
	INSTRUCTION(push_r_arg_t)
	INSTRUCTION(push_r_args)
	INSTRUCTION(push_r_args01)
	INSTRUCTION(push_r_args02)
	INSTRUCTION(push_r_args03)
	INSTRUCTION(push_r_args04)
	INSTRUCTION(push_r_args0b)
	INSTRUCTION(push_r_args10)
	INSTRUCTION(push_r_args11)
	INSTRUCTION(push_r_args12)
	INSTRUCTION(push_r_args13)
	INSTRUCTION(push_r_args1b)
	INSTRUCTION(push_r_args20)
	INSTRUCTION(push_r_args21)
	INSTRUCTION(push_r_args22)
	INSTRUCTION(push_r_args30)
	INSTRUCTION(push_r_args31)
	INSTRUCTION(push_r_args40)
	INSTRUCTION(push_r_argsa0)
	INSTRUCTION(push_r_argsa1)
397
	INSTRUCTION(push_r_args_a)
398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420
	INSTRUCTION(push_r_args_a1)
	INSTRUCTION(push_r_args_a2l)
	INSTRUCTION(push_r_args_a3)
	INSTRUCTION(push_r_args_a4)
	INSTRUCTION(push_r_args_aa1)
	INSTRUCTION(push_r_args_b)
	INSTRUCTION(push_r_args_b0b11)
	INSTRUCTION(push_r_args_b0221)
	INSTRUCTION(push_r_args_b1)
	INSTRUCTION(push_r_args_b1111)
	INSTRUCTION(push_r_args_b2l1)
	INSTRUCTION(push_r_args_b31)
	INSTRUCTION(push_r_args_b41)
	INSTRUCTION(push_r_args_b1l2)
	INSTRUCTION(push_r_args_b2)
	INSTRUCTION(push_r_args_b22)
	INSTRUCTION(push_t_r_a)
	INSTRUCTION(push_t_r_args)
	INSTRUCTION(replace)
	INSTRUCTION(replaceBOOL)
	INSTRUCTION(replaceCHAR)
	INSTRUCTION(replaceINT)
	INSTRUCTION(replaceREAL)
421
	INSTRUCTION(replace_r)
422 423 424 425 426 427 428 429 430 431 432
	INSTRUCTION(repl_args)
	INSTRUCTION(repl_args1)
	INSTRUCTION(repl_args2)
	INSTRUCTION(repl_args3)
	INSTRUCTION(repl_args4)
	INSTRUCTION(repl_args_b)
	INSTRUCTION(repl_r_args)
	INSTRUCTION(repl_r_args01)
	INSTRUCTION(repl_r_args02)
	INSTRUCTION(repl_r_args03)
	INSTRUCTION(repl_r_args04)
433
	INSTRUCTION(repl_r_args0b)
434 435 436 437
	INSTRUCTION(repl_r_args10)
	INSTRUCTION(repl_r_args11)
	INSTRUCTION(repl_r_args12)
	INSTRUCTION(repl_r_args13)
438
	INSTRUCTION(repl_r_args14)
439 440 441 442
	INSTRUCTION(repl_r_args1b)
	INSTRUCTION(repl_r_args20)
	INSTRUCTION(repl_r_args21)
	INSTRUCTION(repl_r_args22)
443 444 445 446
	INSTRUCTION(repl_r_args23)
	INSTRUCTION(repl_r_args24)
	INSTRUCTION(repl_r_args2b)
	INSTRUCTION(repl_r_args30)
447
	INSTRUCTION(repl_r_args31)
448 449 450 451
	INSTRUCTION(repl_r_args32)
	INSTRUCTION(repl_r_args33)
	INSTRUCTION(repl_r_args34)
	INSTRUCTION(repl_r_args3b)
452 453 454
	INSTRUCTION(repl_r_args40)
	INSTRUCTION(repl_r_argsa0)
	INSTRUCTION(repl_r_argsa1)
455
	INSTRUCTION(repl_r_args_a)
456 457 458 459 460 461 462 463 464 465 466 467 468 469
	INSTRUCTION(repl_r_args_aab11)
	INSTRUCTION(repl_r_args_a2021)
	INSTRUCTION(repl_r_args_a21)
	INSTRUCTION(repl_r_args_a31)
	INSTRUCTION(repl_r_args_a41)
	INSTRUCTION(repl_r_args_aa1)
	INSTRUCTION(remI)
	INSTRUCTION(rtn)
	INSTRUCTION(select)
	INSTRUCTION(selectBOOL)
	INSTRUCTION(selectCHAR)
	INSTRUCTION(selectINT)
	INSTRUCTION(selectREAL)
	INSTRUCTION(select_r)
470
	INSTRUCTION(select_r01)
471
	INSTRUCTION(select_r02)
472 473 474 475
	INSTRUCTION(select_r03)
	INSTRUCTION(select_r04)
	INSTRUCTION(select_r0b)
	INSTRUCTION(select_r10)
476
	INSTRUCTION(select_r11)
477
	INSTRUCTION(select_r12)
478 479 480
	INSTRUCTION(select_r13)
	INSTRUCTION(select_r14)
	INSTRUCTION(select_r1b)
481 482
	INSTRUCTION(select_r20)
	INSTRUCTION(select_r21)
483 484 485 486
	INSTRUCTION(select_r22)
	INSTRUCTION(select_r23)
	INSTRUCTION(select_r24)
	INSTRUCTION(select_r2b)
487
	INSTRUCTION(set_finalizers)
488 489
	INSTRUCTION(shiftlI)
	INSTRUCTION(shiftrI)
490
	INSTRUCTION(shiftrU)
491
	INSTRUCTION(sinR)
492
	INSTRUCTION(sliceAC)
493
	INSTRUCTION(subI)
494 495
	INSTRUCTION(subIo)
	INSTRUCTION(subLU)
496 497 498 499 500 501 502 503 504 505 506 507 508 509
	INSTRUCTION(subR)
	INSTRUCTION(sqrtR)
	INSTRUCTION(tanR)
	INSTRUCTION(testcaf)
	INSTRUCTION(update)
	INSTRUCTION(updateBOOL)
	INSTRUCTION(updateCHAR)
	INSTRUCTION(updateINT)
	INSTRUCTION(updateREAL)
	INSTRUCTION(updatepop_a)
	INSTRUCTION(updatepop_b)
	INSTRUCTION(update_a)
	INSTRUCTION(update_b)
	INSTRUCTION(update_r)
510
	INSTRUCTION(update_r01)
511
	INSTRUCTION(update_r02)
512 513
	INSTRUCTION(update_r03)
	INSTRUCTION(update_r04)
514
	INSTRUCTION(update_r0b)
515
	INSTRUCTION(update_r10)
516
	INSTRUCTION(update_r11)
517
	INSTRUCTION(update_r12)
518 519 520
	INSTRUCTION(update_r13)
	INSTRUCTION(update_r14)
	INSTRUCTION(update_r1b)
521 522
	INSTRUCTION(update_r20)
	INSTRUCTION(update_r21)
523 524 525 526
	INSTRUCTION(update_r22)
	INSTRUCTION(update_r23)
	INSTRUCTION(update_r24)
	INSTRUCTION(update_r2b)
527
	INSTRUCTION(update_r30)
528 529 530 531 532
	INSTRUCTION(update_r31)
	INSTRUCTION(update_r32)
	INSTRUCTION(update_r33)
	INSTRUCTION(update_r34)
	INSTRUCTION(update_r3b)
533
	INSTRUCTION(xorI)
534
	INSTRUCTION(BtoAC)
535
	INSTRUCTION(CtoAC)
536
	INSTRUCTION(ItoAC)
537 538
	INSTRUCTION(ItoC)
	INSTRUCTION(ItoR)
539
	INSTRUCTION(RtoAC)
540 541
	INSTRUCTION(RtoI)
	INSTRUCTION(jmp_ap1)
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
	INSTRUCTION(jsr_ap1)
	INSTRUCTION(jmp_ap2)
	INSTRUCTION(jsr_ap2)
	INSTRUCTION(jmp_ap3)
	INSTRUCTION(jsr_ap3)
	INSTRUCTION(jmp_ap4)
	INSTRUCTION(jsr_ap4)
	INSTRUCTION(jmp_ap5)
	INSTRUCTION(jsr_ap5)
	INSTRUCTION(jmp_ap6)
	INSTRUCTION(jsr_ap6)
	INSTRUCTION(jmp_ap7)
	INSTRUCTION(jsr_ap7)
	INSTRUCTION(jmp_ap8)
	INSTRUCTION(jsr_ap8)
	INSTRUCTION(jmp_ap9)
	INSTRUCTION(jsr_ap9)
	INSTRUCTION(jmp_ap10)
	INSTRUCTION(jsr_ap10)
	INSTRUCTION(jmp_ap11)
	INSTRUCTION(jsr_ap11)
	INSTRUCTION(jmp_ap12)
	INSTRUCTION(jsr_ap12)
	INSTRUCTION(jmp_ap13)
	INSTRUCTION(jsr_ap13)
	INSTRUCTION(jmp_ap14)
	INSTRUCTION(jsr_ap14)
	INSTRUCTION(jmp_ap15)
	INSTRUCTION(jsr_ap15)
	INSTRUCTION(jmp_ap16)
	INSTRUCTION(jsr_ap16)
	INSTRUCTION(jmp_ap17)
	INSTRUCTION(jsr_ap17)
	INSTRUCTION(jmp_ap18)
	INSTRUCTION(jsr_ap18)
	INSTRUCTION(jmp_ap19)
	INSTRUCTION(jsr_ap19)
	INSTRUCTION(jmp_ap20)
	INSTRUCTION(jsr_ap20)
	INSTRUCTION(jmp_ap21)
	INSTRUCTION(jsr_ap21)
	INSTRUCTION(jmp_ap22)
	INSTRUCTION(jsr_ap22)
	INSTRUCTION(jmp_ap23)
	INSTRUCTION(jsr_ap23)
	INSTRUCTION(jmp_ap24)
	INSTRUCTION(jsr_ap24)
	INSTRUCTION(jmp_ap25)
	INSTRUCTION(jsr_ap25)
	INSTRUCTION(jmp_ap26)
	INSTRUCTION(jsr_ap26)
	INSTRUCTION(jmp_ap27)
	INSTRUCTION(jsr_ap27)
	INSTRUCTION(jmp_ap28)
	INSTRUCTION(jsr_ap28)
	INSTRUCTION(jmp_ap29)
	INSTRUCTION(jsr_ap29)
	INSTRUCTION(jmp_ap30)
	INSTRUCTION(jsr_ap30)
	INSTRUCTION(jmp_ap31)
	INSTRUCTION(jsr_ap31)
	INSTRUCTION(jmp_ap32)
	INSTRUCTION(jsr_ap32)
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
	INSTRUCTION(add_arg0)
	INSTRUCTION(add_arg1)
	INSTRUCTION(add_arg2)
	INSTRUCTION(add_arg3)
	INSTRUCTION(add_arg4)
	INSTRUCTION(add_arg5)
	INSTRUCTION(add_arg6)
	INSTRUCTION(add_arg7)
	INSTRUCTION(add_arg8)
	INSTRUCTION(add_arg9)
	INSTRUCTION(add_arg10)
	INSTRUCTION(add_arg11)
	INSTRUCTION(add_arg12)
	INSTRUCTION(add_arg13)
	INSTRUCTION(add_arg14)
	INSTRUCTION(add_arg15)
	INSTRUCTION(add_arg16)
	INSTRUCTION(add_arg17)
	INSTRUCTION(add_arg18)
	INSTRUCTION(add_arg19)
	INSTRUCTION(add_arg20)
	INSTRUCTION(add_arg21)
	INSTRUCTION(add_arg22)
	INSTRUCTION(add_arg23)
	INSTRUCTION(add_arg24)
	INSTRUCTION(add_arg25)
	INSTRUCTION(add_arg26)
	INSTRUCTION(add_arg27)
	INSTRUCTION(add_arg28)
	INSTRUCTION(add_arg29)
	INSTRUCTION(add_arg30)
	INSTRUCTION(add_arg31)
	INSTRUCTION(add_arg32)
	INSTRUCTION(eval_upd0)
	INSTRUCTION(eval_upd1)
	INSTRUCTION(eval_upd2)
	INSTRUCTION(eval_upd3)
	INSTRUCTION(eval_upd4)
643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670
	INSTRUCTION(eval_upd5)
	INSTRUCTION(eval_upd6)
	INSTRUCTION(eval_upd7)
	INSTRUCTION(eval_upd8)
	INSTRUCTION(eval_upd9)
	INSTRUCTION(eval_upd10)
	INSTRUCTION(eval_upd11)
	INSTRUCTION(eval_upd12)
	INSTRUCTION(eval_upd13)
	INSTRUCTION(eval_upd14)
	INSTRUCTION(eval_upd15)
	INSTRUCTION(eval_upd16)
	INSTRUCTION(eval_upd17)
	INSTRUCTION(eval_upd18)
	INSTRUCTION(eval_upd19)
	INSTRUCTION(eval_upd20)
	INSTRUCTION(eval_upd21)
	INSTRUCTION(eval_upd22)
	INSTRUCTION(eval_upd23)
	INSTRUCTION(eval_upd24)
	INSTRUCTION(eval_upd25)
	INSTRUCTION(eval_upd26)
	INSTRUCTION(eval_upd27)
	INSTRUCTION(eval_upd28)
	INSTRUCTION(eval_upd29)
	INSTRUCTION(eval_upd30)
	INSTRUCTION(eval_upd31)
	INSTRUCTION(eval_upd32)
671 672 673 674 675
	INSTRUCTION(fill_a01_pop_rtn)
	INSTRUCTION(swap_a1)
	INSTRUCTION(swap_a2)
	INSTRUCTION(swap_a3)
	INSTRUCTION(swap_a)
676

677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696
	INSTRUCTION(addIi)
	INSTRUCTION(andIi)
	INSTRUCTION(andIio)
	INSTRUCTION(buildh0_dup_a)
	INSTRUCTION(buildh0_dup2_a)
	INSTRUCTION(buildh0_dup3_a)
	INSTRUCTION(buildh0_put_a)
	INSTRUCTION(buildh0_put_a_jsr)
	INSTRUCTION(buildho2)
	INSTRUCTION(buildo1)
	INSTRUCTION(buildo2)
	INSTRUCTION(dup_a)
	INSTRUCTION(dup2_a)
	INSTRUCTION(dup3_a)
	INSTRUCTION(exchange_a)
	INSTRUCTION(geC)
	INSTRUCTION(jmp_b_false)
	INSTRUCTION(jmp_eqACio)
	INSTRUCTION(jmp_eqC_b)
	INSTRUCTION(jmp_eqC_b2)
697
	INSTRUCTION(jmp_eqCc)
698 699 700 701 702
	INSTRUCTION(jmp_eqD_b)
	INSTRUCTION(jmp_eqD_b2)
	INSTRUCTION(jmp_eqI)
	INSTRUCTION(jmp_eqI_b)
	INSTRUCTION(jmp_eqI_b2)
703
	INSTRUCTION(jmp_eqIi)
704 705 706 707
	INSTRUCTION(jmp_eq_desc)
	INSTRUCTION(jmp_geI)
	INSTRUCTION(jmp_ltI)
	INSTRUCTION(jmp_neC_b)
708
	INSTRUCTION(jmp_neCc)
709 710
	INSTRUCTION(jmp_neI)
	INSTRUCTION(jmp_neI_b)
711
	INSTRUCTION(jmp_neIi)
712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728
	INSTRUCTION(jmp_ne_desc)
	INSTRUCTION(jmp_o_geI)
	INSTRUCTION(jmp_o_geI_arraysize_a)
	INSTRUCTION(ltIi)
	INSTRUCTION(neI)
	INSTRUCTION(swap_b1)
	INSTRUCTION(pop_a_jmp)
	INSTRUCTION(pop_a_jsr)
	INSTRUCTION(pop_a_rtn)
	INSTRUCTION(pop_ab_rtn)
	INSTRUCTION(pop_b_jmp)
	INSTRUCTION(pop_b_jsr)
	INSTRUCTION(pop_b_pushBFALSE)
	INSTRUCTION(pop_b_pushBTRUE)
	INSTRUCTION(pop_b_rtn)
	INSTRUCTION(pushD_a_jmp_eqD_b2)
	INSTRUCTION(push_a_jsr)
729
	INSTRUCTION(push_b_decI)
730 731 732 733 734 735 736 737 738 739 740 741 742
	INSTRUCTION(push_b_incI)
	INSTRUCTION(push_b_jsr)
	INSTRUCTION(push_arraysize_a)
	INSTRUCTION(push_jsr_eval)
	INSTRUCTION(push_a2)
	INSTRUCTION(push_ab)
	INSTRUCTION(push_b2)
	INSTRUCTION(push2_a)
	INSTRUCTION(push2_b)
	INSTRUCTION(push3_a)
	INSTRUCTION(push3_b)
	INSTRUCTION(push_update_a)
	INSTRUCTION(put_a)
743
	INSTRUCTION(put_a_jmp)
744
	INSTRUCTION(put_b)
745
	INSTRUCTION(put_b_jmp)
746
	INSTRUCTION(selectBOOLoo)
747
	INSTRUCTION(selectCHARoo)
748 749
	INSTRUCTION(selectINToo)
	INSTRUCTION(selectREALoo)
750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769
	INSTRUCTION(selectoo)
	INSTRUCTION(update2_a)
	INSTRUCTION(update2_b)
	INSTRUCTION(update2pop_a)
	INSTRUCTION(update2pop_b)
	INSTRUCTION(update3_a)
	INSTRUCTION(update3_b)
	INSTRUCTION(update3pop_a)
	INSTRUCTION(update3pop_b)
	INSTRUCTION(update4_a)
	INSTRUCTION(updates2_a)
	INSTRUCTION(updates2_a_pop_a)
	INSTRUCTION(updates2_b)
	INSTRUCTION(updates2pop_a)
	INSTRUCTION(updates2pop_b)
	INSTRUCTION(updates3_a)
	INSTRUCTION(updates3_b)
	INSTRUCTION(updates3pop_a)
	INSTRUCTION(updates3pop_b)
	INSTRUCTION(updates4_a)
770

Camil Staps's avatar
Camil Staps committed
771
/* Annotations */
772
	/* A number of code elems that should not be parsed intelligently (see e.g. on IIIln) */
773 774 775 776
	INSTRUCTION(A_data_IIIla) /* Three instruction-width elems, a label-width elem, and an arity */
	INSTRUCTION(A_data_IIl)
	INSTRUCTION(A_data_IlI)
	INSTRUCTION(A_data_IlIla)
777
	INSTRUCTION(A_data_lIlI)
778 779
	INSTRUCTION(A_data_la)
	INSTRUCTION(A_data_a)
780

Camil Staps's avatar
Camil Staps committed
781
#ifdef LINK_CLEAN_RUNTIME
782 783 784
/* This instruction evaluates a node on the native Clean heap, then copies its
 * head normal form back to the interpreter. This is needed for lazily applying
 * interpreted functions to native arguments. */
785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816
	INSTRUCTION(jsr_eval_host_node)
	INSTRUCTION(jsr_eval_host_node_1)
	INSTRUCTION(jsr_eval_host_node_2)
	INSTRUCTION(jsr_eval_host_node_3)
	INSTRUCTION(jsr_eval_host_node_4)
	INSTRUCTION(jsr_eval_host_node_5)
	INSTRUCTION(jsr_eval_host_node_6)
	INSTRUCTION(jsr_eval_host_node_7)
	INSTRUCTION(jsr_eval_host_node_8)
	INSTRUCTION(jsr_eval_host_node_9)
	INSTRUCTION(jsr_eval_host_node_10)
	INSTRUCTION(jsr_eval_host_node_11)
	INSTRUCTION(jsr_eval_host_node_12)
	INSTRUCTION(jsr_eval_host_node_13)
	INSTRUCTION(jsr_eval_host_node_14)
	INSTRUCTION(jsr_eval_host_node_15)
	INSTRUCTION(jsr_eval_host_node_16)
	INSTRUCTION(jsr_eval_host_node_17)
	INSTRUCTION(jsr_eval_host_node_18)
	INSTRUCTION(jsr_eval_host_node_19)
	INSTRUCTION(jsr_eval_host_node_20)
	INSTRUCTION(jsr_eval_host_node_21)
	INSTRUCTION(jsr_eval_host_node_22)
	INSTRUCTION(jsr_eval_host_node_23)
	INSTRUCTION(jsr_eval_host_node_24)
	INSTRUCTION(jsr_eval_host_node_25)
	INSTRUCTION(jsr_eval_host_node_26)
	INSTRUCTION(jsr_eval_host_node_27)
	INSTRUCTION(jsr_eval_host_node_28)
	INSTRUCTION(jsr_eval_host_node_29)
	INSTRUCTION(jsr_eval_host_node_30)
	INSTRUCTION(jsr_eval_host_node_31)
Camil Staps's avatar
Camil Staps committed
817
#endif
818

819 820
/* Unused; use this for the maximum integer value of an instruction, the number
 * of instructions, an instruction that does not exist, etc. */
821
#if !defined(_COMPUTED_GOTO_LABELS) && !defined(_INSTRUCTION_NAMES)
822
	CMAX
823 824
# undef INSTRUCTION
#endif
825
#ifndef _INSTRUCTION_NAMES
826
};
827
#endif
828

829 830
#ifndef _COMPUTED_GOTO_LABELS
# include "bytecode.h"
831
char *instruction_name(BC_WORD i);
832
const char *instruction_type(BC_WORD i);
833
#endif
834 835

#endif