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

Side by Side Diff: src/trusted/validator_x86/testdata/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: 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
1 BITS: 64
2 OUTCOME: invalid
3
1 # Show that we handle the expected sandboxing instructions for maskmov. 4 # Show that we handle the expected sandboxing instructions for maskmov.
2 5
3 # Case one: correct masking of segment DS:%rsi 6 # Case one: correct masking of segment DS:%rsi
4 # 0000000000000000: 89 ff mov %edi, %edi 7 # 0000000000000000: 89 ff mov %edi, %edi
5 # 0000000000000002: 49 8d 3c 3f lea %rdi, [%r15 +%rdi*1] 8 # 0000000000000002: 49 8d 3c 3f lea %rdi, [%r15 +%rdi*1]
6 # 0000000000000006: 0f f7 d1 maskmovq %mmx2, %mmx1 9 # 0000000000000006: 0f f7 d1 maskmovq %mmx2, %mmx1
7 89 ff 10 asm: mov %edi,%edi
8 49 8d 3c 3f 11 hex: 89 ff
9 0f f7 d1 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
10 # Case two: incorrect masking of segment DS:%rsi 19 # Case two: incorrect masking of segment DS:%rsi
11 # 0000000000000009: 01 ff add %edi, %edi 20 # 0000000000000009: 01 ff add %edi, %edi
12 # 000000000000000b: 49 8d 3c 3f lea %rdi, [%r15 +%rdi*1] 21 # 000000000000000b: 49 8d 3c 3f lea %rdi, [%r15 +%rdi*1]
13 # 000000000000000f: 0f f7 d1 maskmovq %mmx2, %mmx1 22 # 000000000000000f: 0f f7 d1 maskmovq %mmx2, %mmx1
14 01 ff 23 asm: add %edi,%edi
15 49 8d 3c 3f 24 hex: 01 ff
16 0f f7 d1
17 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