aboutsummaryrefslogtreecommitdiff
path: root/tests/cpu_trap/trap.S
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2018-01-01 20:46:28 +0100
committerKarel Kočí <cynerd@email.cz>2018-01-01 20:47:36 +0100
commitbcb508498caa64a7c92a1c11bc85acdefa6209cc (patch)
tree786f6dc5d110c7984b3fddcbcd7c0683239fe9ac /tests/cpu_trap/trap.S
parent128ce1ee2115b54d43db1334e12410b1cc216f10 (diff)
downloadqtmips-bcb508498caa64a7c92a1c11bc85acdefa6209cc.tar.gz
qtmips-bcb508498caa64a7c92a1c11bc85acdefa6209cc.tar.bz2
qtmips-bcb508498caa64a7c92a1c11bc85acdefa6209cc.zip
Add cpu_trap test
Diffstat (limited to 'tests/cpu_trap/trap.S')
-rw-r--r--tests/cpu_trap/trap.S8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/cpu_trap/trap.S b/tests/cpu_trap/trap.S
new file mode 100644
index 0000000..9581f7e
--- /dev/null
+++ b/tests/cpu_trap/trap.S
@@ -0,0 +1,8 @@
+.text
+.globl _start
+
+_start:
+ addi $1, $0, 1
+loop:
+ add $1, $1, $1
+ j loop