X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=isa%2Frv64ud%2Fsv_fadd_remap.S;h=794c1a5d5145a90bb6913e7e067974523947e12a;hb=8b653a39caddc58a145ec21624ca88ffe317a7ee;hp=c0af566c6b2ea8ffcb518ed70b51818ad450305f;hpb=30dcd148bd02a5f38fe7c59ba65d2957c212b64b;p=riscv-tests.git diff --git a/isa/rv64ud/sv_fadd_remap.S b/isa/rv64ud/sv_fadd_remap.S index c0af566..794c1a5 100644 --- a/isa/rv64ud/sv_fadd_remap.S +++ b/isa/rv64ud/sv_fadd_remap.S @@ -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)