From: Luke Kenneth Casson Leighton Date: Tue, 5 Jun 2018 03:18:57 +0000 (+0100) Subject: add example code X-Git-Tag: convert-csv-opcode-to-binary~5272 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=970a847dfa9d300fbc90e9d241cef00f85ccd28f;p=libreriscv.git add example code --- diff --git a/simple_v_extension/simple_v_chennai_2018.tex b/simple_v_extension/simple_v_chennai_2018.tex index eef82fb37..b651b156f 100644 --- a/simple_v_extension/simple_v_chennai_2018.tex +++ b/simple_v_extension/simple_v_chennai_2018.tex @@ -284,9 +284,9 @@ 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[rs3] |= 1 << i; + if (cmp(s1 ? reg[src1+i]:reg[src1], + s2 ? reg[src2+i]:reg[src2]) + ireg[rs3] |= 1<