From 021315b0ce5d88e9503f043d0a09ad54142f3ff6 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Tue, 5 Jun 2018 02:11:58 +0100 Subject: [PATCH] add example code --- simple_v_extension/simple_v_chennai_2018.tex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.30.2