small update in the max detection code
authorKonstantinos Margaritis <konstantinos.margaritis@vectorcamp.gr>
Fri, 14 Oct 2022 10:34:05 +0000 (10:34 +0000)
committerKonstantinos Margaritis <konstantinos.margaritis@vectorcamp.gr>
Fri, 14 Oct 2022 10:34:17 +0000 (10:34 +0000)
media/video/av1/src/ppc/cdef_tmpl_svp64_real.s

index c0111407d5d55e7dd21b80d1c9e930146d69b804..12b7fa3cd177f6c56c92b26f9c6ec21de3033fcc 100644 (file)
@@ -443,9 +443,11 @@ cdef_find_dir_svp64_real:
        sv.mulld                *psum+0, *psum+0, *divt
        sv.add/mr               cost+7, *psum+0, cost+7
 
+       mr                      max, cost+5
        setvl                   0,0,8,0,1,1                     # Set VL to 8 elements
-       #sv.maxs/mr             max, *cost
-       #sv.cmp/ff=ne/VLI       max, *cost, 1
+       #sv.maxs/mr             max, max, *cost
+       sv.cmp                  0, 0, *cost, max
+       svstep                  retval, 5, 1
 #      sv.addi/m=eq            retval,*,0
        blr
        .long 0