1 : /*
2 : * Copyright (c) 2012 The Native Client Authors. All rights reserved.
3 : * Use of this source code is governed by a BSD-style license that can be
4 : * found in the LICENSE file.
5 : */
6 :
7 : #include "native_client/src/trusted/validator/x86/x86_insts.h"
8 :
9 : static const char *kNaClInstTypeString[kNaClInstTypeRange] = {
10 : "NACLi_UNDEFINED",
11 : "NACLi_ILLEGAL",
12 : "NACLi_INVALID",
13 : "NACLi_SYSTEM",
14 : "NACLi_NOP",
15 : "NACLi_386",
16 : "NACLi_386L",
17 : "NACLi_386R",
18 : "NACLi_386RE",
19 : "NACLi_JMP8",
20 : "NACLi_JMPZ",
21 : "NACLi_INDIRECT",
22 : "NACLi_OPINMRM",
23 : "NACLi_RETURN",
24 : "NACLi_LAHF",
25 : "NACLi_SFENCE_CLFLUSH",
26 : "NACLi_CMPXCHG8B",
27 : "NACLi_CMPXCHG16B",
28 : "NACLi_CMOV",
29 : "NACLi_RDMSR",
30 : "NACLi_RDTSC",
31 : "NACLi_RDTSCP",
32 : "NACLi_SYSCALL",
33 : "NACLi_SYSENTER",
34 : "NACLi_X87",
35 : "NACLi_X87_FSINCOS",
36 : "NACLi_MMX",
37 : "NACLi_MMXSSE2",
38 : "NACLi_3DNOW",
39 : "NACLi_EMMX",
40 : "NACLi_E3DNOW",
41 : "NACLi_SSE",
42 : "NACLi_SSE2",
43 : "NACLi_SSE2x",
44 : "NACLi_SSE3",
45 : "NACLi_SSE4A",
46 : "NACLi_SSE41",
47 : "NACLi_SSE42",
48 : "NACLi_MOVBE",
49 : "NACLi_POPCNT",
50 : "NACLi_LZCNT",
51 : "NACLi_LONGMODE",
52 : "NACLi_SVM",
53 : "NACLi_SSSE3",
54 : "NACLi_3BYTE",
55 : "NACLi_FCMOV",
56 : "NACLi_VMX",
57 : "NACLi_FXSAVE",
58 : };
59 :
60 2 : const char* NaClInstTypeString(NaClInstType typ) {
61 2 : return kNaClInstTypeString[typ];
62 2 : }
|