projects
/
riscv-tests.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
add subvl add-immediate test
[riscv-tests.git]
/
isa
/
macros
/
simplev
/
sv_test_macros.h
diff --git
a/isa/macros/simplev/sv_test_macros.h
b/isa/macros/simplev/sv_test_macros.h
index 2242235a4f6b0fb0bee92a633217ba6d4d48a315..725ed9eb6f5ef58fe2c31d36c6c3478b6c2f483c 100644
(file)
--- a/
isa/macros/simplev/sv_test_macros.h
+++ b/
isa/macros/simplev/sv_test_macros.h
@@
-67,6
+67,9
@@
// pass in x0 here.
#define SET_SV_VL( val ) csrrwi x0, 0x4f0, (val-1)
+// set sub-vector length
+#define SET_SV_SUBVL( val ) csrrwi x0, 0x4f4, val
+
#define SV_LD_DATA( reg, from, offs ) \
la x1, from; \
lw reg, offs(x1)