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

Side by Side Diff: src/trusted/validator_x86/testdata/64/mov-lea-rbp-bad-2.test

Issue 625923004: Delete old x86 validator. (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: Created 6 years, 2 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 @hex:
2 # Bad example of using lea solution (instead of add) to update rbp.
3 # That is where we use r14 instead of r15 for the base register.
4 # mov %ebp, %ecx
5 # lea %rbp, [%rbp+%r14*1]
6 89 cd
7 4a 8d 6c 35 00
8 @val:
9 VALIDATOR: 0000000000000002: 4a 8d 6c 35 00 lea %rbp, [%rbp+%r14*1]
10 VALIDATOR: ERROR: Illegal change to register RBP
11 VALIDATOR: 0000000000000000: 89 cd mov %ebp, %ecx
12 VALIDATOR: ERROR: Illegal assignment to EBP
13 VALIDATOR: Checking jump targets: 0 to 7
14 VALIDATOR: Checking that basic blocks are aligned
15 *** <input> IS UNSAFE ***
16 @rval:
17 VALIDATOR: 0000000000000002: 4a 8d 6c 35 00 lea %rbp, [%rbp+%r14*1]
18 VALIDATOR: ERROR: Illegal change to register RBP
19 VALIDATOR: 0000000000000000: 89 cd mov %ebp, %ecx
20 VALIDATOR: ERROR: Illegal assignment to EBP
21 VALIDATOR: Checking jump targets: 0 to 7
22 VALIDATOR: Checking that basic blocks are aligned
23 *** <input> IS UNSAFE ***
24 @rvald:
25 VALIDATOR: 0000000000000002: 4a 8d 6c 35 00 lea %rbp, [%rbp+%r14*1]
26 VALIDATOR: ERROR: Illegal change to register RBP
27 VALIDATOR: 0000000000000000: 89 cd mov %ebp, %ecx
28 VALIDATOR: ERROR: Illegal assignment to EBP
29 VALIDATOR: Checking block alignment and jump targets: 0 to 7
30 *** <input> IS UNSAFE ***
31 @vd-rval:
32 VALIDATOR: 0000000000000002: 4a 8d 6c 35 00 lea %rbp, [%rbp+%r14*1]
33 VALIDATOR: ERROR: Illegal change to register RBP
34 VALIDATOR: 0000000000000000: 89 cd mov %ebp, %ecx
35 VALIDATOR: ERROR: Illegal assignment to EBP
36 VALIDATOR: Checking jump targets: 0 to 7
37 VALIDATOR: Checking that basic blocks are aligned
38 *** <input> IS UNSAFE ***
39 @dis:
40 0000000000000000: 89 cd mov %ebp, %ecx
41 0000000000000002: 4a 8d 6c 35 00 lea %rbp, [%rbp +%r14*1]
42 @vdis:
43 0000000000000000: 89 cd mov %ebp, %ecx
44 0000000000000002: 4a 8d 6c 35 00 lea %rbp, [%rbp +%r14*1]
45 @rdfa_output:
46 2: [0] improper %rbp sandboxing
47 2: [0] error - %bpl or %bp is changed
48 return code: 1
49 @validators_disagree:
50 errors reported by old validator but not by rdfa one:
51 0x0 - same error, but it's reported by RDFA differently
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698