blob: 4df852ccff912e7d60600f942e7c2bce97fd64be (
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
|