Skip to content

Commit 96607cb

Browse files
committed
loongarch: Fixed dzamax
Initialize the registers to prevent sporadic errors.
1 parent 87f83eb commit 96607cb

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

kernel/loongarch64/camax_lasx.S

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
6060
PROLOGUE
6161
xvxor.v VM0, VM0, VM0
6262
xvxor.v res0, res0, res0
63+
xvxor.v $xr20, $xr20, $xr20
6364
bge $r0, N, .L999
6465
bge $r0, INCX, .L999
6566
li.d TEMP, 1

kernel/loongarch64/camax_lsx.S

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
6060
PROLOGUE
6161
vxor.v VM0, VM0, VM0
6262
vxor.v res0, res0, res0
63+
vxor.v $vr20, $vr20, $vr20
6364
bge $r0, N, .L999
6465
bge $r0, INCX, .L999
6566
li.d TEMP, 1

0 commit comments

Comments
 (0)