Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(144)

Side by Side Diff: src/trusted/validator_x86/testdata/64/prefix-single.tf

Issue 10908137: (abandoned) Validator tests: convert hexes to TFs and run on bots (for prod. validator only) (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: restore 'read overflow' and 'SegmentationError' Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 BITS: 64
2 OUTCOME: invalid
3
4 # lock add %eax,(%rsp)
5 asm: lock add %eax,(%rsp)
6 hex: F0 01 04 24
7
8 # mov %edi,%edi
9 # lea (%r15,%rdi),%rdi
10 # rep stos %eax,%es:(%rdi)
11 asm: mov %edi,%edi
12 hex: 89 FF
13
14 asm: lea (%r15,%rdi,1),%rdi
15 hex: 49 8D 3C 3F
16
17 asm: rep stos %eax,%es:(%rdi)
18 hex: F3 AB
19
20 # mov %edi,%edi
21 # lea (%r15,%rdi),%rdi
22 # repne scas %es:(%rdi),%al
23 asm: mov %edi,%edi
24 hex: 89 FF
25
26 asm: lea (%r15,%rdi,1),%rdi
27 hex: 49 8D 3C 3F
28
29 asm: repnz scas %es:(%rdi),%al
30 hex: F2 AE
31
32 # mov %ax, %ax
33 asm: mov %ax,%ax
34 hex: 66 89 C0
35
36 # rex jmp $
37 hex: 40 EB FD
38
39 # Branch prediction prefixes. (for jz).
40 hex: 2e 74 02
41
42 hex: 3e 74 02
43 nc_out: [at +2] Bad jump target
44
45
46 # Forbidden prefixes.
47 # rep push %eax
48 hex: F3 50
49 nc_out: ERROR: Use of REP (F3) prefix for instruction not allowed by Native Clie nt
50
51 # mov %edi,%edi
52 # lea (%r15,%rdi),%rdi
53 # repne stos %eax,%es:(%rdi)
54 asm: mov %edi,%edi
55 hex: 89 FF
56
57 asm: lea (%r15,%rdi,1),%rdi
58 hex: 49 8D 3C 3F
59
60 asm: repnz stos %eax,%es:(%rdi)
61 hex: F2 AB
62 nc_out: ERROR: Use of REPNE (F2) prefix for instruction not allowed by Native Cl ient
63
64 # fs mov %eax,%eax
65 asm: fs; mov %eax,%eax
66 hex: 64 89 C0
67 nc_out: ERROR: Uses a segment prefix byte not allowed by Native Client
68
69 # gs mov %eax,%eax
70 asm: gs; mov %eax,%eax
71 hex: 65 89 C0
72 nc_out: ERROR: Uses a segment prefix byte not allowed by Native Client
73
74 # mov %eax,%cs:(%rsp)
75 asm: mov %eax,%cs:(%rsp)
76 hex: 2E 89 04 24
77 nc_out: ERROR: Uses a segment prefix byte not allowed by Native Client
78
79 # mov %eax,%ss:(%rsp)
80 hex: 36 89 04 24
81 nc_out: ERROR: Uses a segment prefix byte not allowed by Native Client
82
83 # mov %eax,%ds:(%rsp)
84 asm: mov %eax,%ds:(%rsp)
85 hex: 3E 89 04 24
86 nc_out: ERROR: Uses a segment prefix byte not allowed by Native Client
87
88 # mov %eax,%es:(%rsp)
89 asm: mov %eax,%es:(%rsp)
90 hex: 26 89 04 24
91 nc_out: ERROR: Uses a segment prefix byte not allowed by Native Client
92
93 # mov %eax,%fs:(%rsp)
94 asm: mov %eax,%fs:(%rsp)
95 hex: 64 89 04 24
96 nc_out: ERROR: Uses a segment prefix byte not allowed by Native Client
97 nc_out: ERROR: Segment memory reference not allowed
98
99 # mov %eax,%gs:(%rsp)
100 asm: mov %eax,%gs:(%rsp)
101 hex: 65 89 04 24
102 nc_out: ERROR: Uses a segment prefix byte not allowed by Native Client
103 nc_out: ERROR: Segment memory reference not allowed
104
105 # mov %eax,(%esp)
106 asm: addr32 mov %eax,(%esp)
107 hex: 67 89 04 24
108 nc_out: ERROR: Use of 67 (ADDR16) prefix not allowed by Native Client
109 nc_out: ERROR: Assignment to non-64 bit memory address
110
111 # cs jmp $
112 hex: 2E EB FD
113 nc_out: ERROR: Uses a segment prefix byte not allowed by Native Client
114
115 # ss jmp $
116 hex: 36 EB FD
117 nc_out: ERROR: Uses a segment prefix byte not allowed by Native Client
118
119 # ds jmp $
120 hex: 3E EB FD
121 nc_out: ERROR: Uses a segment prefix byte not allowed by Native Client
122
123 # es jmp $
124 hex: 26 EB FD
125 nc_out: ERROR: Uses a segment prefix byte not allowed by Native Client
126
127 # fs jmp $
128 hex: 64 EB FD
129 nc_out: ERROR: Uses a segment prefix byte not allowed by Native Client
130
131 # gs jmp $
132 hex: 65 EB FD
133 nc_out: ERROR: Uses a segment prefix byte not allowed by Native Client
134
135 # jmp dword $
136 hex: 66 EB FD
137 nc_out: ERROR: Use of DATA16 (66) prefix for instruction not allowed by Native C lient
138 nc_out: [at +2] Bad basic block alignment.
139
140 # ss jz $
141 hex: 36 74 02
142 nc_out: ERROR: Uses a segment prefix byte not allowed by Native Client
143
144 # fs jz $
145 hex: 64 74 02
146 nc_out: ERROR: Uses a segment prefix byte not allowed by Native Client
147 nc_out: [at +2] Bad jump target
148
149 # gs jz $
150 hex: 65 74 02
151 nc_out: ERROR: Uses a segment prefix byte not allowed by Native Client
152 nc_out: [at +2] Bad jump target
153
154 # es jz $
155 hex: 26 74 02
156 nc_out: ERROR: Uses a segment prefix byte not allowed by Native Client
157 nc_out: [at +2] Bad jump target
158
159
160 # Mandatory prefix.
161 # phaddw %xmm0,%xmm1
162 asm: phaddw %xmm0,%xmm1
163 hex: 66 0f 38 01 c8
164 nc_out: [at +2] Bad jump target
165
166 # addsd %xmm0,%xmm1
167 asm: addsd %xmm0,%xmm1
168 hex: f2 0f 58 c8
169
170 # cmpeqss %xmm0,%xmm1
171 asm: cmpeqss %xmm0,%xmm1
172 hex: f3 0f c2 c8 00
173
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698