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

Side by Side Diff: src/trusted/validator_x86/testdata/64/indirect_jmp_masked.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 # Model a case where an indirect jump is properly masked.
5 # and %edx, 0xe0
6 asm: and $0xffffffffffffffe0,%edx
7 hex: 83 e2 e0
8
9 # add %rdx, %r15
10 asm: add %r15,%rdx
11 hex: 4c 01 fa
12
13 # jmp %rdx
14 asm: jmpq *%rdx
15 hex: ff e2
16
17 #
18 # Model a case where an indirect jump is no longer properly masked.
19 # and %edx, 0xe0
20 asm: and $0xffffffffffffffe0,%edx
21 hex: 83 e2 e0
22
23 # lea %r9, [%r15+%rdx*1]
24 asm: lea (%r15,%rdx,1),%r9
25 hex: 4D 8D 0C 17
26
27 # jmp %r9
28 asm: jmpq *%r9
29 hex: 41 FF E1
30 nc_out: ERROR: Invalid indirect jump
31
32
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698