1 : /*
2 : * Copyright (c) 2011 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_UD2",
16 : "NACLi_386",
17 : "NACLi_386L",
18 : "NACLi_386R",
19 : "NACLi_386RE",
20 : "NACLi_JMP8",
21 : "NACLi_JMPZ",
22 : "NACLi_INDIRECT",
23 : "NACLi_OPINMRM",
24 : "NACLi_RETURN",
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_MMX",
36 : "NACLi_MMXSSE2",
37 : "NACLi_3DNOW",
38 : "NACLi_EMMX",
39 : "NACLi_E3DNOW",
40 : "NACLi_SSE",
41 : "NACLi_SSE2",
42 : "NACLi_SSE2x",
43 : "NACLi_SSE3",
44 : "NACLi_SSE4A",
45 : "NACLi_SSE41",
46 : "NACLi_SSE42",
47 : "NACLi_MOVBE",
48 : "NACLi_POPCNT",
49 : "NACLi_LZCNT",
50 : "NACLi_LONGMODE",
51 : "NACLi_SVM",
52 : "NACLi_SSSE3",
53 : "NACLi_3BYTE",
54 : "NACLi_FCMOV",
55 : "NACLi_VMX",
56 : "NACLi_FXSAVE",
57 : };
58 :
59 6139 : const char* NaClInstTypeString(NaClInstType typ) {
60 6139 : return kNaClInstTypeString[typ];
61 : }
|