From 970a847dfa9d300fbc90e9d241cef00f85ccd28f Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Tue, 5 Jun 2018 04:18:57 +0100 Subject: [PATCH] add example code --- simple_v_extension/simple_v_chennai_2018.tex | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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<