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

Side by Side Diff: src/trusted/validator/x86/testing/tf/converted/64/maskmov_test.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: fix for windows (temp files and crlf) 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 # Show that we handle the expected sandboxing instructions for maskmov.
5
6 # Case one: correct masking of segment DS:%rsi
7 # 0000000000000000: 89 ff mov %edi, %edi
8 # 0000000000000002: 49 8d 3c 3f lea %rdi, [%r15 +%rdi*1]
9 # 0000000000000006: 0f f7 d1 maskmovq %mmx2, %mmx1
10 asm: mov %edi,%edi
11 hex: 89 ff
12
13 asm: lea (%r15,%rdi,1),%rdi
14 hex: 49 8d 3c 3f
15
16 asm: maskmovq %mm1,%mm2
17 hex: 0f f7 d1
18
19 # Case two: incorrect masking of segment DS:%rsi
20 # 0000000000000009: 01 ff add %edi, %edi
21 # 000000000000000b: 49 8d 3c 3f lea %rdi, [%r15 +%rdi*1]
22 # 000000000000000f: 0f f7 d1 maskmovq %mmx2, %mmx1
23 asm: add %edi,%edi
24 hex: 01 ff
25
26 asm: lea (%r15,%rdi,1),%rdi
27 hex: 49 8d 3c 3f
28
29 asm: maskmovq %mm1,%mm2
30 hex: 0f f7 d1
31 nc_out: ERROR: Segment memory reference not allowed
32
33
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698