From: Luke Kenneth Casson Leighton Date: Tue, 5 Jun 2018 01:11:58 +0000 (+0100) Subject: add example code X-Git-Tag: convert-csv-opcode-to-binary~5277 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=021315b0ce5d88e9503f043d0a09ad54142f3ff6;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 9289a263b..32b66a094 100644 --- a/simple_v_extension/simple_v_chennai_2018.tex +++ b/simple_v_extension/simple_v_chennai_2018.tex @@ -611,7 +611,7 @@ loop: slli t1, t0, 3 # t1 = vl * 8 (in bytes) ld a7, a2 # load 4 registers a7-10 from y add a1, a1, t1 # increment pointer to x by vl*8 - fmadd a7, a3, fa0, v1 # v1 += v0 * fa0 (y = a * x + y) + fmadd a7, a3, fa0, a7 # v1 += v0 * fa0 (y = a * x + y) sub a0, a0, t0 # n -= vl (t0) st a7, a2 # store 4 registers a7-10 to y add a2, a2, t1 # increment pointer to y by vl*8