From: Luke Kenneth Casson Leighton Date: Sun, 7 Oct 2018 08:08:18 +0000 (+0100) Subject: clarify branch predication pseudocode X-Git-Tag: convert-csv-opcode-to-binary~4976 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8e00fd3e606769ae9367686a41f612b1d64e60e8;p=libreriscv.git clarify branch predication pseudocode --- diff --git a/simple_v_extension/specification.mdwn b/simple_v_extension/specification.mdwn index 7ecf6d3ec..39debb78f 100644 --- a/simple_v_extension/specification.mdwn +++ b/simple_v_extension/specification.mdwn @@ -523,13 +523,18 @@ complex), this becomes: preg = fp_pred_reg[rd] reg = fp_regfile + ps = get_pred_val(I/F==INT, rs); + + preg[rd] = 0; # initialise to zero s1 = reg_is_vectorised(src1); s2 = reg_is_vectorised(src2); if (!s2 && !s1) goto branch; for (int i = 0; i < VL; ++i) - if (cmp(s1 ? reg[src1+i]:reg[src1], - s2 ? reg[src2+i]:reg[src2]) - preg[rd] |= 1<