use mr instead of li/addi pair
authorKonstantinos Margaritis <konstantinos.margaritis@vectorcamp.gr>
Wed, 21 Sep 2022 14:28:14 +0000 (14:28 +0000)
committerKonstantinos Margaritis <konstantinos.margaritis@vectorcamp.gr>
Wed, 21 Sep 2022 14:28:14 +0000 (14:28 +0000)
media/video/libvpx/vpx_get_mb_ss_svp64_real.s

index bf76a0d24f3ce5a7393196b8c1177c36129657b1..4364c6a1800d837059ef3f785064779ceba9573c 100644 (file)
@@ -29,8 +29,7 @@ vpx_get_mb_ss_svp64_real:
        sv.add/mr       sum, *prod, sum
        addi in, in, 64                         # Advance (in) pointer by 64 bytes
        bdnz .L2                                # Loop until CTR is zero
-       li in, 0                                # Zero register 3 (result)
-       addi in, sum, 0                         # Add sum to r3
+       mr in, sum                              # Set r3 to sum
        blr
        .long 0
        .byte 0,0,0,0,0,0,0,0