From ba99dc82f71786aa7ddac163ab577ba0ae98c869 Mon Sep 17 00:00:00 2001 From: Shriya Sharma Date: Tue, 9 Jan 2024 10:53:14 +0000 Subject: [PATCH] Bug 1244: Added psedocode for DDFF --- .../fosdem2024_ddffirst.tex | 37 ++++++++++--------- 1 file changed, 19 insertions(+), 18 deletions(-) diff --git a/conferences/fosdem2024/fosdem2024_ddffirst/fosdem2024_ddffirst.tex b/conferences/fosdem2024/fosdem2024_ddffirst/fosdem2024_ddffirst.tex index 9029ebc30..b40cd72ab 100644 --- a/conferences/fosdem2024/fosdem2024_ddffirst/fosdem2024_ddffirst.tex +++ b/conferences/fosdem2024/fosdem2024_ddffirst/fosdem2024_ddffirst.tex @@ -129,6 +129,25 @@ function op\_cmpi(BA, RA, SI) # cmpi not vector-cmpi! \end{itemize} \end{frame} + + +\begin{frame}[fragile] +\frametitle{Data-Dependent-Fail-First in a nutshell} + +\begin{semiverbatim} + while srcstep < VL - 1 + RT[SS], Rc = DO (MAXS, RA[SS], RB) + if test (Rc) == FAIL: VL = srcstep + 1, break + +\end{semiverbatim} + +\begin{itemize} + \item Above is oversimplified: predication etc. left out + \item Scalar-scalar and scalar-vector and vector-vector now all in one + \item OoO may choose to push CMPIs into instr. queue (v. busy!) +\end{itemize} +\end{frame} + \frame{\frametitle{Load/Store Fault-First} \begin{itemize} @@ -140,24 +159,6 @@ function op\_cmpi(BA, RA, SI) # cmpi not vector-cmpi! \end{itemize} } -\begin{frame}[fragile] - \frametitle{Data-Dependent Fail-First} - - \begin{semiverbatim} - function op\_cmpi(BA, RA, SI) # cmpi not vector-cmpi! - int i, id=0, ira=0; - for (i = 0; i < VL; i++) - CR[BA+id] <= compare(ireg[RA+ira], SI); - if (reg\_is\_vectorised[BA] ) \{ id += 1; \} - if (reg\_is\_vectorised[RA])  \{ ira += 1; \} - \end{semiverbatim} - - \begin{itemize} - \item Above is oversimplified: predication etc. left out - \item Scalar-scalar and scalar-vector and vector-vector now all in one - \item OoO may choose to push CMPIs into instr. queue (v. busy!) - \end{itemize} -\end{frame} \frame{\frametitle{Additional Simple-V features} -- 2.30.2