| 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
|
|
|