summaryrefslogtreecommitdiff
path: root/input/maximum-limit.asm
diff options
context:
space:
mode:
Diffstat (limited to 'input/maximum-limit.asm')
-rw-r--r--input/maximum-limit.asm16
1 files changed, 16 insertions, 0 deletions
diff --git a/input/maximum-limit.asm b/input/maximum-limit.asm
new file mode 100644
index 0000000..4df852c
--- /dev/null
+++ b/input/maximum-limit.asm
@@ -0,0 +1,16 @@
+;;;;;;;;
+;;; tests integer boundaries and overflow condition
+
+.data
+.text
+MAIN:
+ addi $5 $0 1
+ sftli $5 $5 31
+ addi $6 $0 -1
+ quot $5 $5 $6
+ bof DONE
+ addi $5 $0 -1 ; bad!
+DONE:
+ nop
+ nop
+ nop