Permalink
Browse files

Add a test case for faulting on LDR.

  • Loading branch information...
nelhage committed Aug 7, 2012
1 parent a5aeaca commit 0a79628b67d7567a1c678bff7d740d61e56279d0
Showing with 14 additions and 0 deletions.
  1. +1 −0 run-tests.sh
  2. +13 −0 tests/trap2.uasm
View
@@ -54,6 +54,7 @@ run_one jmptab "[00] 00000007" "Hello."
NONDET=1
FAIL=1
run_one trap "Illegal memory reference" "00002000"
+run_one trap2 "Illegal memory reference" "00002000"
ulimit -t 2
OPTIONS="clock"
View
@@ -0,0 +1,13 @@
+.include beta.uasm
+
+. = 0
+
+ BR(start)
+illop:
+ HALT()
+fail:
+ HALT()
+start:
+
+ LDR(0x2000, R31)
+ HALT()

0 comments on commit 0a79628

Please sign in to comment.