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

Unified Diff: src/trusted/validator_mips/testdata/test_invalid_dest.S

Issue 9979025: [MIPS] Adding validator for MIPS architecture. (Closed) Base URL: http://src.chromium.org/native_client/trunk/src/native_client/
Patch Set: Update per initial code review. Nexes removed. Created 8 years, 8 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_mips/testdata/test_invalid_dest.S
diff --git a/src/trusted/validator_mips/testdata/test_invalid_dest.S b/src/trusted/validator_mips/testdata/test_invalid_dest.S
new file mode 100644
index 0000000000000000000000000000000000000000..9de48482a76b0a5d4998841aa940a847c7ccae00
--- /dev/null
+++ b/src/trusted/validator_mips/testdata/test_invalid_dest.S
@@ -0,0 +1,20 @@
+# Copyright 2012 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 2012 MIPS Technologies / RT-RK.
+
+# With this test we are tryig to branch on address above 256 MB
Brad Chen 2012/04/13 00:50:52 ...trying to branch to an address...
+# We do this by linking _start on address 0xFFFA000 which is
+# 255 MB+1000k, so that branch can reach address higher than 256 MB
+
+.globl _start
+_start:
+.align 4
+.set noreorder
+
+ nop
+ b 0x10000+_start #error, invalid destination, over 256MB
+ nop
+ nop
+
+end_of_code:

Powered by Google App Engine
This is Rietveld 408576698