1(* For Capstone Engine. AUTO-GENERATED FILE, DO NOT EDIT [sparc_const.ml] *) 2 3(* Enums corresponding to Sparc condition codes, both icc's and fcc's. *) 4 5let _SPARC_CC_INVALID = 0;; 6 7(* Integer condition codes *) 8let _SPARC_CC_ICC_A = 8+256;; 9let _SPARC_CC_ICC_N = 0+256;; 10let _SPARC_CC_ICC_NE = 9+256;; 11let _SPARC_CC_ICC_E = 1+256;; 12let _SPARC_CC_ICC_G = 10+256;; 13let _SPARC_CC_ICC_LE = 2+256;; 14let _SPARC_CC_ICC_GE = 11+256;; 15let _SPARC_CC_ICC_L = 3+256;; 16let _SPARC_CC_ICC_GU = 12+256;; 17let _SPARC_CC_ICC_LEU = 4+256;; 18let _SPARC_CC_ICC_CC = 13+256;; 19let _SPARC_CC_ICC_CS = 5+256;; 20let _SPARC_CC_ICC_POS = 14+256;; 21let _SPARC_CC_ICC_NEG = 6+256;; 22let _SPARC_CC_ICC_VC = 15+256;; 23let _SPARC_CC_ICC_VS = 7+256;; 24 25(* Floating condition codes *) 26let _SPARC_CC_FCC_A = 8+16+256;; 27let _SPARC_CC_FCC_N = 0+16+256;; 28let _SPARC_CC_FCC_U = 7+16+256;; 29let _SPARC_CC_FCC_G = 6+16+256;; 30let _SPARC_CC_FCC_UG = 5+16+256;; 31let _SPARC_CC_FCC_L = 4+16+256;; 32let _SPARC_CC_FCC_UL = 3+16+256;; 33let _SPARC_CC_FCC_LG = 2+16+256;; 34let _SPARC_CC_FCC_NE = 1+16+256;; 35let _SPARC_CC_FCC_E = 9+16+256;; 36let _SPARC_CC_FCC_UE = 10+16+256;; 37let _SPARC_CC_FCC_GE = 11+16+256;; 38let _SPARC_CC_FCC_UGE = 12+16+256;; 39let _SPARC_CC_FCC_LE = 13+16+256;; 40let _SPARC_CC_FCC_ULE = 14+16+256;; 41let _SPARC_CC_FCC_O = 15+16+256;; 42 43(* Branch hint *) 44 45let _SPARC_HINT_INVALID = 0;; 46let _SPARC_HINT_A = 1 lsl 0;; 47let _SPARC_HINT_PT = 1 lsl 1;; 48let _SPARC_HINT_PN = 1 lsl 2;; 49 50(* Operand type for instruction's operands *) 51 52let _SPARC_OP_INVALID = 0;; 53let _SPARC_OP_REG = 1;; 54let _SPARC_OP_IMM = 2;; 55let _SPARC_OP_MEM = 3;; 56 57(* SPARC registers *) 58 59let _SPARC_REG_INVALID = 0;; 60let _SPARC_REG_F0 = 1;; 61let _SPARC_REG_F1 = 2;; 62let _SPARC_REG_F2 = 3;; 63let _SPARC_REG_F3 = 4;; 64let _SPARC_REG_F4 = 5;; 65let _SPARC_REG_F5 = 6;; 66let _SPARC_REG_F6 = 7;; 67let _SPARC_REG_F7 = 8;; 68let _SPARC_REG_F8 = 9;; 69let _SPARC_REG_F9 = 10;; 70let _SPARC_REG_F10 = 11;; 71let _SPARC_REG_F11 = 12;; 72let _SPARC_REG_F12 = 13;; 73let _SPARC_REG_F13 = 14;; 74let _SPARC_REG_F14 = 15;; 75let _SPARC_REG_F15 = 16;; 76let _SPARC_REG_F16 = 17;; 77let _SPARC_REG_F17 = 18;; 78let _SPARC_REG_F18 = 19;; 79let _SPARC_REG_F19 = 20;; 80let _SPARC_REG_F20 = 21;; 81let _SPARC_REG_F21 = 22;; 82let _SPARC_REG_F22 = 23;; 83let _SPARC_REG_F23 = 24;; 84let _SPARC_REG_F24 = 25;; 85let _SPARC_REG_F25 = 26;; 86let _SPARC_REG_F26 = 27;; 87let _SPARC_REG_F27 = 28;; 88let _SPARC_REG_F28 = 29;; 89let _SPARC_REG_F29 = 30;; 90let _SPARC_REG_F30 = 31;; 91let _SPARC_REG_F31 = 32;; 92let _SPARC_REG_F32 = 33;; 93let _SPARC_REG_F34 = 34;; 94let _SPARC_REG_F36 = 35;; 95let _SPARC_REG_F38 = 36;; 96let _SPARC_REG_F40 = 37;; 97let _SPARC_REG_F42 = 38;; 98let _SPARC_REG_F44 = 39;; 99let _SPARC_REG_F46 = 40;; 100let _SPARC_REG_F48 = 41;; 101let _SPARC_REG_F50 = 42;; 102let _SPARC_REG_F52 = 43;; 103let _SPARC_REG_F54 = 44;; 104let _SPARC_REG_F56 = 45;; 105let _SPARC_REG_F58 = 46;; 106let _SPARC_REG_F60 = 47;; 107let _SPARC_REG_F62 = 48;; 108let _SPARC_REG_FCC0 = 49;; 109let _SPARC_REG_FCC1 = 50;; 110let _SPARC_REG_FCC2 = 51;; 111let _SPARC_REG_FCC3 = 52;; 112let _SPARC_REG_FP = 53;; 113let _SPARC_REG_G0 = 54;; 114let _SPARC_REG_G1 = 55;; 115let _SPARC_REG_G2 = 56;; 116let _SPARC_REG_G3 = 57;; 117let _SPARC_REG_G4 = 58;; 118let _SPARC_REG_G5 = 59;; 119let _SPARC_REG_G6 = 60;; 120let _SPARC_REG_G7 = 61;; 121let _SPARC_REG_I0 = 62;; 122let _SPARC_REG_I1 = 63;; 123let _SPARC_REG_I2 = 64;; 124let _SPARC_REG_I3 = 65;; 125let _SPARC_REG_I4 = 66;; 126let _SPARC_REG_I5 = 67;; 127let _SPARC_REG_I7 = 68;; 128let _SPARC_REG_ICC = 69;; 129let _SPARC_REG_L0 = 70;; 130let _SPARC_REG_L1 = 71;; 131let _SPARC_REG_L2 = 72;; 132let _SPARC_REG_L3 = 73;; 133let _SPARC_REG_L4 = 74;; 134let _SPARC_REG_L5 = 75;; 135let _SPARC_REG_L6 = 76;; 136let _SPARC_REG_L7 = 77;; 137let _SPARC_REG_O0 = 78;; 138let _SPARC_REG_O1 = 79;; 139let _SPARC_REG_O2 = 80;; 140let _SPARC_REG_O3 = 81;; 141let _SPARC_REG_O4 = 82;; 142let _SPARC_REG_O5 = 83;; 143let _SPARC_REG_O7 = 84;; 144let _SPARC_REG_SP = 85;; 145let _SPARC_REG_Y = 86;; 146let _SPARC_REG_XCC = 87;; 147let _SPARC_REG_ENDING = 88;; 148let _SPARC_REG_O6 = _SPARC_REG_SP;; 149let _SPARC_REG_I6 = _SPARC_REG_FP;; 150 151(* SPARC instruction *) 152 153let _SPARC_INS_INVALID = 0;; 154let _SPARC_INS_ADDCC = 1;; 155let _SPARC_INS_ADDX = 2;; 156let _SPARC_INS_ADDXCC = 3;; 157let _SPARC_INS_ADDXC = 4;; 158let _SPARC_INS_ADDXCCC = 5;; 159let _SPARC_INS_ADD = 6;; 160let _SPARC_INS_ALIGNADDR = 7;; 161let _SPARC_INS_ALIGNADDRL = 8;; 162let _SPARC_INS_ANDCC = 9;; 163let _SPARC_INS_ANDNCC = 10;; 164let _SPARC_INS_ANDN = 11;; 165let _SPARC_INS_AND = 12;; 166let _SPARC_INS_ARRAY16 = 13;; 167let _SPARC_INS_ARRAY32 = 14;; 168let _SPARC_INS_ARRAY8 = 15;; 169let _SPARC_INS_B = 16;; 170let _SPARC_INS_JMP = 17;; 171let _SPARC_INS_BMASK = 18;; 172let _SPARC_INS_FB = 19;; 173let _SPARC_INS_BRGEZ = 20;; 174let _SPARC_INS_BRGZ = 21;; 175let _SPARC_INS_BRLEZ = 22;; 176let _SPARC_INS_BRLZ = 23;; 177let _SPARC_INS_BRNZ = 24;; 178let _SPARC_INS_BRZ = 25;; 179let _SPARC_INS_BSHUFFLE = 26;; 180let _SPARC_INS_CALL = 27;; 181let _SPARC_INS_CASX = 28;; 182let _SPARC_INS_CAS = 29;; 183let _SPARC_INS_CMASK16 = 30;; 184let _SPARC_INS_CMASK32 = 31;; 185let _SPARC_INS_CMASK8 = 32;; 186let _SPARC_INS_CMP = 33;; 187let _SPARC_INS_EDGE16 = 34;; 188let _SPARC_INS_EDGE16L = 35;; 189let _SPARC_INS_EDGE16LN = 36;; 190let _SPARC_INS_EDGE16N = 37;; 191let _SPARC_INS_EDGE32 = 38;; 192let _SPARC_INS_EDGE32L = 39;; 193let _SPARC_INS_EDGE32LN = 40;; 194let _SPARC_INS_EDGE32N = 41;; 195let _SPARC_INS_EDGE8 = 42;; 196let _SPARC_INS_EDGE8L = 43;; 197let _SPARC_INS_EDGE8LN = 44;; 198let _SPARC_INS_EDGE8N = 45;; 199let _SPARC_INS_FABSD = 46;; 200let _SPARC_INS_FABSQ = 47;; 201let _SPARC_INS_FABSS = 48;; 202let _SPARC_INS_FADDD = 49;; 203let _SPARC_INS_FADDQ = 50;; 204let _SPARC_INS_FADDS = 51;; 205let _SPARC_INS_FALIGNDATA = 52;; 206let _SPARC_INS_FAND = 53;; 207let _SPARC_INS_FANDNOT1 = 54;; 208let _SPARC_INS_FANDNOT1S = 55;; 209let _SPARC_INS_FANDNOT2 = 56;; 210let _SPARC_INS_FANDNOT2S = 57;; 211let _SPARC_INS_FANDS = 58;; 212let _SPARC_INS_FCHKSM16 = 59;; 213let _SPARC_INS_FCMPD = 60;; 214let _SPARC_INS_FCMPEQ16 = 61;; 215let _SPARC_INS_FCMPEQ32 = 62;; 216let _SPARC_INS_FCMPGT16 = 63;; 217let _SPARC_INS_FCMPGT32 = 64;; 218let _SPARC_INS_FCMPLE16 = 65;; 219let _SPARC_INS_FCMPLE32 = 66;; 220let _SPARC_INS_FCMPNE16 = 67;; 221let _SPARC_INS_FCMPNE32 = 68;; 222let _SPARC_INS_FCMPQ = 69;; 223let _SPARC_INS_FCMPS = 70;; 224let _SPARC_INS_FDIVD = 71;; 225let _SPARC_INS_FDIVQ = 72;; 226let _SPARC_INS_FDIVS = 73;; 227let _SPARC_INS_FDMULQ = 74;; 228let _SPARC_INS_FDTOI = 75;; 229let _SPARC_INS_FDTOQ = 76;; 230let _SPARC_INS_FDTOS = 77;; 231let _SPARC_INS_FDTOX = 78;; 232let _SPARC_INS_FEXPAND = 79;; 233let _SPARC_INS_FHADDD = 80;; 234let _SPARC_INS_FHADDS = 81;; 235let _SPARC_INS_FHSUBD = 82;; 236let _SPARC_INS_FHSUBS = 83;; 237let _SPARC_INS_FITOD = 84;; 238let _SPARC_INS_FITOQ = 85;; 239let _SPARC_INS_FITOS = 86;; 240let _SPARC_INS_FLCMPD = 87;; 241let _SPARC_INS_FLCMPS = 88;; 242let _SPARC_INS_FLUSHW = 89;; 243let _SPARC_INS_FMEAN16 = 90;; 244let _SPARC_INS_FMOVD = 91;; 245let _SPARC_INS_FMOVQ = 92;; 246let _SPARC_INS_FMOVRDGEZ = 93;; 247let _SPARC_INS_FMOVRQGEZ = 94;; 248let _SPARC_INS_FMOVRSGEZ = 95;; 249let _SPARC_INS_FMOVRDGZ = 96;; 250let _SPARC_INS_FMOVRQGZ = 97;; 251let _SPARC_INS_FMOVRSGZ = 98;; 252let _SPARC_INS_FMOVRDLEZ = 99;; 253let _SPARC_INS_FMOVRQLEZ = 100;; 254let _SPARC_INS_FMOVRSLEZ = 101;; 255let _SPARC_INS_FMOVRDLZ = 102;; 256let _SPARC_INS_FMOVRQLZ = 103;; 257let _SPARC_INS_FMOVRSLZ = 104;; 258let _SPARC_INS_FMOVRDNZ = 105;; 259let _SPARC_INS_FMOVRQNZ = 106;; 260let _SPARC_INS_FMOVRSNZ = 107;; 261let _SPARC_INS_FMOVRDZ = 108;; 262let _SPARC_INS_FMOVRQZ = 109;; 263let _SPARC_INS_FMOVRSZ = 110;; 264let _SPARC_INS_FMOVS = 111;; 265let _SPARC_INS_FMUL8SUX16 = 112;; 266let _SPARC_INS_FMUL8ULX16 = 113;; 267let _SPARC_INS_FMUL8X16 = 114;; 268let _SPARC_INS_FMUL8X16AL = 115;; 269let _SPARC_INS_FMUL8X16AU = 116;; 270let _SPARC_INS_FMULD = 117;; 271let _SPARC_INS_FMULD8SUX16 = 118;; 272let _SPARC_INS_FMULD8ULX16 = 119;; 273let _SPARC_INS_FMULQ = 120;; 274let _SPARC_INS_FMULS = 121;; 275let _SPARC_INS_FNADDD = 122;; 276let _SPARC_INS_FNADDS = 123;; 277let _SPARC_INS_FNAND = 124;; 278let _SPARC_INS_FNANDS = 125;; 279let _SPARC_INS_FNEGD = 126;; 280let _SPARC_INS_FNEGQ = 127;; 281let _SPARC_INS_FNEGS = 128;; 282let _SPARC_INS_FNHADDD = 129;; 283let _SPARC_INS_FNHADDS = 130;; 284let _SPARC_INS_FNOR = 131;; 285let _SPARC_INS_FNORS = 132;; 286let _SPARC_INS_FNOT1 = 133;; 287let _SPARC_INS_FNOT1S = 134;; 288let _SPARC_INS_FNOT2 = 135;; 289let _SPARC_INS_FNOT2S = 136;; 290let _SPARC_INS_FONE = 137;; 291let _SPARC_INS_FONES = 138;; 292let _SPARC_INS_FOR = 139;; 293let _SPARC_INS_FORNOT1 = 140;; 294let _SPARC_INS_FORNOT1S = 141;; 295let _SPARC_INS_FORNOT2 = 142;; 296let _SPARC_INS_FORNOT2S = 143;; 297let _SPARC_INS_FORS = 144;; 298let _SPARC_INS_FPACK16 = 145;; 299let _SPARC_INS_FPACK32 = 146;; 300let _SPARC_INS_FPACKFIX = 147;; 301let _SPARC_INS_FPADD16 = 148;; 302let _SPARC_INS_FPADD16S = 149;; 303let _SPARC_INS_FPADD32 = 150;; 304let _SPARC_INS_FPADD32S = 151;; 305let _SPARC_INS_FPADD64 = 152;; 306let _SPARC_INS_FPMERGE = 153;; 307let _SPARC_INS_FPSUB16 = 154;; 308let _SPARC_INS_FPSUB16S = 155;; 309let _SPARC_INS_FPSUB32 = 156;; 310let _SPARC_INS_FPSUB32S = 157;; 311let _SPARC_INS_FQTOD = 158;; 312let _SPARC_INS_FQTOI = 159;; 313let _SPARC_INS_FQTOS = 160;; 314let _SPARC_INS_FQTOX = 161;; 315let _SPARC_INS_FSLAS16 = 162;; 316let _SPARC_INS_FSLAS32 = 163;; 317let _SPARC_INS_FSLL16 = 164;; 318let _SPARC_INS_FSLL32 = 165;; 319let _SPARC_INS_FSMULD = 166;; 320let _SPARC_INS_FSQRTD = 167;; 321let _SPARC_INS_FSQRTQ = 168;; 322let _SPARC_INS_FSQRTS = 169;; 323let _SPARC_INS_FSRA16 = 170;; 324let _SPARC_INS_FSRA32 = 171;; 325let _SPARC_INS_FSRC1 = 172;; 326let _SPARC_INS_FSRC1S = 173;; 327let _SPARC_INS_FSRC2 = 174;; 328let _SPARC_INS_FSRC2S = 175;; 329let _SPARC_INS_FSRL16 = 176;; 330let _SPARC_INS_FSRL32 = 177;; 331let _SPARC_INS_FSTOD = 178;; 332let _SPARC_INS_FSTOI = 179;; 333let _SPARC_INS_FSTOQ = 180;; 334let _SPARC_INS_FSTOX = 181;; 335let _SPARC_INS_FSUBD = 182;; 336let _SPARC_INS_FSUBQ = 183;; 337let _SPARC_INS_FSUBS = 184;; 338let _SPARC_INS_FXNOR = 185;; 339let _SPARC_INS_FXNORS = 186;; 340let _SPARC_INS_FXOR = 187;; 341let _SPARC_INS_FXORS = 188;; 342let _SPARC_INS_FXTOD = 189;; 343let _SPARC_INS_FXTOQ = 190;; 344let _SPARC_INS_FXTOS = 191;; 345let _SPARC_INS_FZERO = 192;; 346let _SPARC_INS_FZEROS = 193;; 347let _SPARC_INS_JMPL = 194;; 348let _SPARC_INS_LDD = 195;; 349let _SPARC_INS_LD = 196;; 350let _SPARC_INS_LDQ = 197;; 351let _SPARC_INS_LDSB = 198;; 352let _SPARC_INS_LDSH = 199;; 353let _SPARC_INS_LDSW = 200;; 354let _SPARC_INS_LDUB = 201;; 355let _SPARC_INS_LDUH = 202;; 356let _SPARC_INS_LDX = 203;; 357let _SPARC_INS_LZCNT = 204;; 358let _SPARC_INS_MEMBAR = 205;; 359let _SPARC_INS_MOVDTOX = 206;; 360let _SPARC_INS_MOV = 207;; 361let _SPARC_INS_MOVRGEZ = 208;; 362let _SPARC_INS_MOVRGZ = 209;; 363let _SPARC_INS_MOVRLEZ = 210;; 364let _SPARC_INS_MOVRLZ = 211;; 365let _SPARC_INS_MOVRNZ = 212;; 366let _SPARC_INS_MOVRZ = 213;; 367let _SPARC_INS_MOVSTOSW = 214;; 368let _SPARC_INS_MOVSTOUW = 215;; 369let _SPARC_INS_MULX = 216;; 370let _SPARC_INS_NOP = 217;; 371let _SPARC_INS_ORCC = 218;; 372let _SPARC_INS_ORNCC = 219;; 373let _SPARC_INS_ORN = 220;; 374let _SPARC_INS_OR = 221;; 375let _SPARC_INS_PDIST = 222;; 376let _SPARC_INS_PDISTN = 223;; 377let _SPARC_INS_POPC = 224;; 378let _SPARC_INS_RD = 225;; 379let _SPARC_INS_RESTORE = 226;; 380let _SPARC_INS_RETT = 227;; 381let _SPARC_INS_SAVE = 228;; 382let _SPARC_INS_SDIVCC = 229;; 383let _SPARC_INS_SDIVX = 230;; 384let _SPARC_INS_SDIV = 231;; 385let _SPARC_INS_SETHI = 232;; 386let _SPARC_INS_SHUTDOWN = 233;; 387let _SPARC_INS_SIAM = 234;; 388let _SPARC_INS_SLLX = 235;; 389let _SPARC_INS_SLL = 236;; 390let _SPARC_INS_SMULCC = 237;; 391let _SPARC_INS_SMUL = 238;; 392let _SPARC_INS_SRAX = 239;; 393let _SPARC_INS_SRA = 240;; 394let _SPARC_INS_SRLX = 241;; 395let _SPARC_INS_SRL = 242;; 396let _SPARC_INS_STBAR = 243;; 397let _SPARC_INS_STB = 244;; 398let _SPARC_INS_STD = 245;; 399let _SPARC_INS_ST = 246;; 400let _SPARC_INS_STH = 247;; 401let _SPARC_INS_STQ = 248;; 402let _SPARC_INS_STX = 249;; 403let _SPARC_INS_SUBCC = 250;; 404let _SPARC_INS_SUBX = 251;; 405let _SPARC_INS_SUBXCC = 252;; 406let _SPARC_INS_SUB = 253;; 407let _SPARC_INS_SWAP = 254;; 408let _SPARC_INS_TADDCCTV = 255;; 409let _SPARC_INS_TADDCC = 256;; 410let _SPARC_INS_T = 257;; 411let _SPARC_INS_TSUBCCTV = 258;; 412let _SPARC_INS_TSUBCC = 259;; 413let _SPARC_INS_UDIVCC = 260;; 414let _SPARC_INS_UDIVX = 261;; 415let _SPARC_INS_UDIV = 262;; 416let _SPARC_INS_UMULCC = 263;; 417let _SPARC_INS_UMULXHI = 264;; 418let _SPARC_INS_UMUL = 265;; 419let _SPARC_INS_UNIMP = 266;; 420let _SPARC_INS_FCMPED = 267;; 421let _SPARC_INS_FCMPEQ = 268;; 422let _SPARC_INS_FCMPES = 269;; 423let _SPARC_INS_WR = 270;; 424let _SPARC_INS_XMULX = 271;; 425let _SPARC_INS_XMULXHI = 272;; 426let _SPARC_INS_XNORCC = 273;; 427let _SPARC_INS_XNOR = 274;; 428let _SPARC_INS_XORCC = 275;; 429let _SPARC_INS_XOR = 276;; 430let _SPARC_INS_RET = 277;; 431let _SPARC_INS_RETL = 278;; 432let _SPARC_INS_ENDING = 279;; 433 434(* Group of SPARC instructions *) 435 436let _SPARC_GRP_INVALID = 0;; 437 438(* Generic groups *) 439let _SPARC_GRP_JUMP = 1;; 440 441(* Architecture-specific groups *) 442let _SPARC_GRP_HARDQUAD = 128;; 443let _SPARC_GRP_V9 = 129;; 444let _SPARC_GRP_VIS = 130;; 445let _SPARC_GRP_VIS2 = 131;; 446let _SPARC_GRP_VIS3 = 132;; 447let _SPARC_GRP_32BIT = 133;; 448let _SPARC_GRP_64BIT = 134;; 449let _SPARC_GRP_ENDING = 135;; 450