comments on remap csrs
[riscv-tests.git] / isa / rv64ud / sv_fadd_remap.S
index c0af566c6b2ea8ffcb518ed70b51818ad450305f..794c1a5d5145a90bb6913e7e067974523947e12a 100644 (file)
@@ -29,6 +29,10 @@ RVTEST_CODE_BEGIN   # Start of test code.
         SET_SV_2CSRS( SV_REG_CSR(0, 1, 0, 1, 1),
                       SV_REG_CSR(0, 7, 0, 7, 1) )
         SET_SV_REMAP_CSR(7, 0, 0, 0, 0, 0);
+        // x=3, y=2, z=1, where remap swaps xy to yx.  therefore:
+        // 0 1 2 ->  0 3
+        // 3 4 5 ->  1 4
+        //       ->  2 5
         SET_SV_SHAPE0_CSR(3, 2, 1, 0, SV_SHAPE_PERM_YXZ );
         SET_SV_VL(6)