add vector-vector sv add
[riscv-tests.git] / isa / macros / simplev / sv_test_macros.h
index 22eb2b17db9d5e893856165c12c91f68176f15cd..97bb950816249fde85fd3eff7892f3479196a271 100644 (file)
         li     x1, SV_PRED_CSR( type, regkey, zero, inv, regidx, active ); \
         csrrw  x0, 0x4c8, x1
 
+#define SET_SV_2CSRS( c1, c2 ) \
+        li     x1, c1 | ((c2)<<16); \
+        csrrw  x0, 0x4c0, x1
+
 #define CLR_SV_CSRS( ) csrrw   x0, 0x4c0, 0
 #define CLR_SV_PRED_CSRS( ) csrrw   x0, 0x4c8, 0