(no commit message)
authorlkcl <lkcl@web>
Sun, 16 Apr 2023 10:17:56 +0000 (11:17 +0100)
committerIkiWiki <ikiwiki.info>
Sun, 16 Apr 2023 10:17:56 +0000 (11:17 +0100)
openpower/sv/remap/appendix.mdwn

index 2b969e82d159e42d09e0637907449ee741be14c6..2aac9482bcb51af0a8bab9497fd0d233db3b07f0 100644 (file)
@@ -18,17 +18,15 @@ remapped:
 
 ```
     function op_add(RT, RA, RB) # add not VADD!
-      ...
-      ...
       for (i=0,id=0,irs1=0,irs2=0; i < VL; i++)
         SVSTATE.srcstep = i # save context
         if (predval & 1<<i) # predication mask
            GPR[RT+remap1(id)] <= GPR[RA+remap2(irs1)] +
                                  GPR[RB+remap3(irs2)];
-           if (!int_vec[RT ].isvector) break;
-        if (int_vec[RT].isvector)  { id += 1; }
-        if (int_vec[RA].isvector)  { irs1 += 1; }
-        if (int_vec[RB].isvector)  { irs2 += 1; }
+           if (!RT.isvector) break;
+        if (RT.isvector)  { id += 1; }
+        if (RA.isvector)  { irs1 += 1; }
+        if (RB.isvector)  { irs2 += 1; }
 ```
 
 By changing remappings, 2D matrices may be transposed "in-place" for one