diff options
author | bd <bdunahu@operationnull.com> | 2025-05-10 22:45:24 -0400 |
---|---|---|
committer | bd <bdunahu@operationnull.com> | 2025-05-10 22:45:24 -0400 |
commit | d1ef2e2171d660bac392c19bc0094c5e76c986f6 (patch) | |
tree | d5a3229f701873ce59f1c1e7ce6896a3f31568ca /input/vector_fun.asm | |
parent | 2d1701842bff269de7c07010eb490eeb7ac6f06e (diff) |
Add initial vector tests
Diffstat (limited to 'input/vector_fun.asm')
-rw-r--r-- | input/vector_fun.asm | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/input/vector_fun.asm b/input/vector_fun.asm new file mode 100644 index 0000000..eed38ce --- /dev/null +++ b/input/vector_fun.asm @@ -0,0 +1,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 |