aboutsummaryrefslogtreecommitdiff
path: root/tests/cpu_trap/trap.S
diff options
context:
space:
mode:
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