summaryrefslogtreecommitdiff
path: root/input/vector_fun.asm
blob: eed38ce001e44e30f62a4a39c58ea76c610b49bf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
;;;;;;;;
;;; tests the ALU vector extension

.data
	s 4
.text
	load $4 s($0) 		; set the vector length register

LOOP:
	cev $17 $16
	beq END

	addv $17 $16 $17
	addv $17 $16 $17
	mulv $17 $17 $17
	subv $17 $17 $16
	subv $17 $17 $16
	subv $17 $17 $16
	jrl LOOP
END:
	nop
	nop
	nop