/* * CIL opcode definition * * Copyright (c) 2002 Fabrice Bellard * * 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 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ OP(NOP, "nop", 0x00) OP(BREAK, "break", 0x01) OP(LDARG_0, "ldarg.0", 0x02) OP(LDARG_1, "ldarg.1", 0x03) OP(LDARG_2, "ldarg.2", 0x04) OP(LDARG_3, "ldarg.3", 0x05) OP(LDLOC_0, "ldloc.0", 0x06) OP(LDLOC_1, "ldloc.1", 0x07) OP(LDLOC_2, "ldloc.2", 0x08) OP(LDLOC_3, "ldloc.3", 0x09) OP(STLOC_0, "stloc.0", 0x0a) OP(STLOC_1, "stloc.1", 0x0b) OP(STLOC_2, "stloc.2", 0x0c) OP(STLOC_3, "stloc.3", 0x0d) OP(LDARG_S, "ldarg.s", 0x0e) OP(LDARGA_S, "ldarga.s", 0x0f) OP(STARG_S, "starg.s", 0x10) OP(LDLOC_S, "ldloc.s", 0x11) OP(LDLOCA_S, "ldloca.s", 0x12) OP(STLOC_S, "stloc.s", 0x13) OP(LDNULL, "ldnull", 0x14) OP(LDC_I4_M1, "ldc.i4.m1", 0x15) OP(LDC_I4_0, "ldc.i4.0", 0x16) OP(LDC_I4_1, "ldc.i4.1", 0x17) OP(LDC_I4_2, "ldc.i4.2", 0x18) OP(LDC_I4_3, "ldc.i4.3", 0x19) OP(LDC_I4_4, "ldc.i4.4", 0x1a) OP(LDC_I4_5, "ldc.i4.5", 0x1b) OP(LDC_I4_6, "ldc.i4.6", 0x1c) OP(LDC_I4_7, "ldc.i4.7", 0x1d) OP(LDC_I4_8, "ldc.i4.8", 0x1e) OP(LDC_I4_S, "ldc.i4.s", 0x1f) OP(LDC_I4, "ldc.i4", 0x20) OP(LDC_I8, "ldc.i8", 0x21) OP(LDC_R4, "ldc.r4", 0x22) OP(LDC_R8, "ldc.r8", 0x23) OP(LDPTR, "ldptr", 0x24) OP(DUP, "dup", 0x25) OP(POP, "pop", 0x26) OP(JMP, "jmp", 0x27) OP(CALL, "call", 0x28) OP(CALLI, "calli", 0x29) OP(RET, "ret", 0x2a) OP(BR_S, "br.s", 0x2b) OP(BRFALSE_S, "brfalse.s", 0x2c) OP(BRTRUE_S, "brtrue.s", 0x2d) OP(BEQ_S, "beq.s", 0x2e) OP(BGE_S, "bge.s", 0x2f) OP(BGT_S, "bgt.s", 0x30) OP(BLE_S, "ble.s", 0x31) OP(BLT_S, "blt.s", 0x32) OP(BNE_UN_S, "bne.un.s", 0x33) OP(BGE_UN_S, "bge.un.s", 0x34) OP(BGT_UN_S, "bgt.un.s", 0x35) OP(BLE_UN_S, "ble.un.s", 0x36) OP(BLT_UN_S, "blt.un.s", 0x37) OP(BR, "br", 0x38) OP(BRFALSE, "brfalse", 0x39) OP(BRTRUE, "brtrue", 0x3a) OP(BEQ, "beq", 0x3b) OP(BGE, "bge", 0x3c) OP(BGT, "bgt", 0x3d) OP(BLE, "ble", 0x3e) OP(BLT, "blt", 0x3f) OP(BNE_UN, "bne.un", 0x40) OP(BGE_UN, "bge.un", 0x41) OP(BGT_UN, "bgt.un", 0x42) OP(BLE_UN, "ble.un", 0x43) OP(BLT_UN, "blt.un", 0x44) OP(SWITCH, "switch", 0x45) OP(LDIND_I1, "ldind.i1", 0x46) OP(LDIND_U1, "ldind.u1", 0x47) OP(LDIND_I2, "ldind.i2", 0x48) OP(LDIND_U2, "ldind.u2", 0x49) OP(LDIND_I4, "ldind.i4", 0x4a) OP(LDIND_U4, "ldind.u4", 0x4b) OP(LDIND_I8, "ldind.i8", 0x4c) OP(LDIND_I, "ldind.i", 0x4d) OP(LDIND_R4, "ldind.r4", 0x4e) OP(LDIND_R8, "ldind.r8", 0x4f) OP(LDIND_REF, "ldind.ref", 0x50) OP(STIND_REF, "stind.ref", 0x51) OP(STIND_I1, "stind.i1", 0x52) OP(STIND_I2, "stind.i2", 0x53) OP(STIND_I4, "stind.i4", 0x54) OP(STIND_I8, "stind.i8", 0x55) OP(STIND_R4, "stind.r4", 0x56) OP(STIND_R8, "stind.r8", 0x57) OP(ADD, "add", 0x58) OP(SUB, "sub", 0x59) OP(MUL, "mul", 0x5a) OP(DIV, "div", 0x5b) OP(DIV_UN, "div.un", 0x5c) OP(REM, "rem", 0x5d) OP(REM_UN, "rem.un", 0x5e) OP(AND, "and", 0x5f) OP(OR, "or", 0x60) OP(XOR, "xor", 0x61) OP(SHL, "shl", 0x62) OP(SHR, "shr", 0x63) OP(SHR_UN, "shr.un", 0x64) OP(NEG, "neg", 0x65) OP(NOT, "not", 0x66) OP(CONV_I1, "conv.i1