blob: ede9e5bdf81e1113fa4f9f48ef11fd66286ec46f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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
|