Skip to content

Commit

Permalink
Add a test case for faulting on LDR.
Browse files Browse the repository at this point in the history
  • Loading branch information
nelhage committed Aug 7, 2012
1 parent a5aeaca commit 0a79628
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions run-tests.sh
Expand Up @@ -54,6 +54,7 @@ run_one jmptab "[00] 00000007" "Hello."
NONDET=1 NONDET=1
FAIL=1 FAIL=1
run_one trap "Illegal memory reference" "00002000" run_one trap "Illegal memory reference" "00002000"
run_one trap2 "Illegal memory reference" "00002000"


ulimit -t 2 ulimit -t 2
OPTIONS="clock" OPTIONS="clock"
Expand Down
13 changes: 13 additions & 0 deletions tests/trap2.uasm
@@ -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.