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

Unified Diff: sim/testsuite/sim/bfin/se_all64bitg2opcodes.S

Issue 11969036: Merge GDB 7.5.1 (Closed) Base URL: http://git.chromium.org/native_client/nacl-gdb.git@master
Patch Set: Created 7 years, 11 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
« no previous file with comments | « sim/testsuite/sim/bfin/se_all64bitg1opcodes.S ('k') | sim/testsuite/sim/bfin/se_allopcodes.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sim/testsuite/sim/bfin/se_all64bitg2opcodes.S
diff --git a/sim/testsuite/sim/bfin/se_all64bitg2opcodes.S b/sim/testsuite/sim/bfin/se_all64bitg2opcodes.S
new file mode 100644
index 0000000000000000000000000000000000000000..99de3ac5370971ec4a25031ec34b838bc6063890
--- /dev/null
+++ b/sim/testsuite/sim/bfin/se_all64bitg2opcodes.S
@@ -0,0 +1,53 @@
+/*
+ * Blackfin testcase for testing illegal/legal 64-bit opcodes (group 2)
+ * from userspace. we track all instructions which cause some sort of
+ * exception when run from userspace, this is normally EXCAUSE :
+ * - 0x22 : illegal instruction combination
+ * and walk every instruction from 0x0000 to 0xffff
+ */
+
+# mach: bfin
+# sim: --environment operating
+
+#include "test.h"
+ .include "testutils.inc"
+
+#define SE_ALL_BITS 16
+#include "se_allopcodes.h"
+
+.macro se_all_load_insn
+ R2 = W[P5 + 6];
+ R0 = R2;
+.endm
+
+.macro se_all_next_insn
+ /* increment, and go again. */
+ R0 = R2;
+
+ R0 += 1;
+ /* finish once we hit the 32bit limit */
+ imm32 R1, 0x10000;
+ CC = R1 == R0;
+ IF CC JUMP pass_lvl;
+
+ W[P5 + 6] = R0;
+.endm
+
+.macro se_all_insn_init
+ MNOP || NOP || NOP;
+.endm
+.macro se_all_insn_table
+ /* this table must be sorted, and end with zero */
+ /* start end SEQSTAT */
+ .dw 0x0001, 0x9bff, 0x22
+ .dw 0x9c60, 0x9c7f, 0x22
+ .dw 0x9ce0, 0x9cff, 0x22
+ .dw 0x9d60, 0x9d7f, 0x22
+ .dw 0x9e60, 0x9e7f, 0x22
+ .dw 0x9ee0, 0x9eff, 0x22
+ .dw 0x9f60, 0x9f7f, 0x22
+ .dw 0xa000, 0xffff, 0x22
+ .dw 0x0000, 0x0000, 0x00
+.endm
+
+ se_all_test
« no previous file with comments | « sim/testsuite/sim/bfin/se_all64bitg1opcodes.S ('k') | sim/testsuite/sim/bfin/se_allopcodes.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698