From: lkcl Date: Wed, 23 Dec 2020 21:29:29 +0000 (+0000) Subject: (no commit message) X-Git-Tag: convert-csv-opcode-to-binary~1000 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a5ea7995f5f82762a6e6a3112c6dca1ed59c8677;p=libreriscv.git --- diff --git a/openpower/sv/svp_rewrite/svp64.mdwn b/openpower/sv/svp_rewrite/svp64.mdwn index 26bd11f95..1d71a0164 100644 --- a/openpower/sv/svp_rewrite/svp64.mdwn +++ b/openpower/sv/svp_rewrite/svp64.mdwn @@ -923,22 +923,22 @@ TODO generate table which will be here [[svp64/reg_profiles]] ### Single-predicated Instruction -illustration of normal mode add operation: zeroing not included, elwidth overrides not included. +illustration of normal mode add operation: zeroing not included, elwidth overrides not included. if there is no predicate, it is set to all 1s function op_add(rd, rs1, rs2) # add not VADD! int i, id=0, irs1=0, irs2=0; predval = get_pred_val(FALSE, rd); - rd = int_vec[rd ].isvector ? int_vec[rd ].regidx : rd; - rs1 = int_vec[rs1].isvector ? int_vec[rs1].regidx : rs1; - rs2 = int_vec[rs2].isvector ? int_vec[rs2].regidx : rs2; + rd = int_vec[rd ].isvec ? int_vec[rd ].regidx : rd + rs1 = int_vec[rs1].isvec ? int_vec[rs1].regidx : rs1 + rs2 = int_vec[rs2].isvec ? int_vec[rs2].regidx : rs2 for (i = 0; i < VL; i++) STATE.srcoffs = i # save context if (predval & 1<