Skip to content

Commit 8267fcf

Browse files
authored
Merge pull request #4588 from XiWeiGu/loongarch_fixed_dzamax
loongarch: Fixed dzamax
2 parents e1638ea + 96607cb commit 8267fcf

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)