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

Side by Side Diff: src/trusted/validator_mips/testdata/test_forbidden_instructions.S

Issue 9979025: [MIPS] Adding validator for MIPS architecture. (Closed) Base URL: http://src.chromium.org/native_client/trunk/src/native_client/
Patch Set: Rebased patch, conflict resolved. Created 8 years, 6 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
OLDNEW
(Empty)
1 # Copyright 2012 The Native Client Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can
3 # be found in the LICENSE file.
4
5 #
6 # Tests a few instructions that are always illegal in NaCl.
7 #
8
9 .globl _start
10 _start:
11
12 eret # Error, (forbidden) unsafe instruction.
13
14 li $v0, 1 # System call code for print_int.
15 la $a0, 20 # Integer for printing.
16 syscall # Error, this is forbidden in untrusted code.
17
18 break # Error, unsafe instruction.
19
20 di # Error, unsafe instruction.
21 ei # Error, unsafe instruction.
22 wait # Error, unsafe instruction.
23 teq $t1, $t2 # Error, unsafe instruction.
24 nop
25 deret # Error, unsafe instruction.
26
27 end_of_code:
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698