summaryrefslogtreecommitdiff
path: root/input/vector_fun.asm
blob: f91b4a022b6c4d335f8d24c9c8bc7ade8a93f121 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
;;;;;;;;
;;; 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