From: Luke Kenneth Casson Leighton Date: Tue, 13 Aug 2019 11:40:25 +0000 (+0100) Subject: add pseudocode for swizzle X-Git-Tag: convert-csv-opcode-to-binary~4209 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b0f9e43270288ca39fe7206b0c41c98a1443cb5e;p=libreriscv.git add pseudocode for swizzle --- diff --git a/simple_v_extension/abridged_spec.mdwn b/simple_v_extension/abridged_spec.mdwn index 9b4eeefc6..0a41c01ec 100644 --- a/simple_v_extension/abridged_spec.mdwn +++ b/simple_v_extension/abridged_spec.mdwn @@ -259,7 +259,7 @@ Simplified pseudocode example, when SUBVL=4 and swizzle is set on rd: rs1 = int_vec[rs1].isvector ? int_vec[rs1].regidx : rs1; rs2 = int_vec[rs2].isvector ? int_vec[rs2].regidx : rs2; - # loop on VL: SUBVL loop is unrolled + # loop on VL: SUBVL loop is unrolled (SUBVL=4) for (i in 0; i < VL; i++) ireg[rd+i*4+x] = OPERATION(ireg[rs1+i*4+0], ireg[rs2+i*4+0]) ireg[rd+i*4+y] = OPERATION(ireg[rs1+i*4+1], ireg[rs2+i*4+1])