summaryrefslogtreecommitdiff
path: root/input/vector_fun.asm
blob: c023caccb0a28f80be957324d5664bc3c177604f (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