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

Unified Diff: src/trusted/validator_arm/testdata-thumb/test_forbidden_instructions.S

Issue 7799013: Intial Thumb2 Sandbox (naclrev 6680) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: asdsa Created 9 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 side-by-side diff with in-line comments
Download patch
Index: src/trusted/validator_arm/testdata-thumb/test_forbidden_instructions.S
diff --git a/src/trusted/validator_arm/testdata-thumb/test_forbidden_instructions.S b/src/trusted/validator_arm/testdata-thumb/test_forbidden_instructions.S
new file mode 100644
index 0000000000000000000000000000000000000000..7423f160c56f57c4aff1de6a495f078fbed4a3bc
--- /dev/null
+++ b/src/trusted/validator_arm/testdata-thumb/test_forbidden_instructions.S
@@ -0,0 +1,22 @@
+@ Copyright 2011 The Native Client Authors. All rights reserved.
+@ Use of this source code is governed by a BSD-style license that can
+@ be found in the LICENSE file.
+@ Copyright 2011 Google Inc.
+
+@
+@ Tests a few instructions that are always illegal in NaCl.
+@
+.code 16
+.globl _start
+.thumb_func
+.func _start, _start
+
+_start:
+ swi 6 @ SWI illegal in untrusted code
+ adr r0, foo
+ bxj r0 @ BXJ illegal in NaCl
+
+foo:
+ b foo
+ mov r0,r0 @ Pad to section boundary
+.endfunc

Powered by Google App Engine
This is Rietveld 408576698