loongarch: Fixed dzamax

Initialize the registers to prevent sporadic errors.
This commit is contained in:
gxw 2024-03-25 23:17:53 -04:00
parent 87f83ebe9c
commit 96607cbb98
2 changed files with 2 additions and 0 deletions

View File

@ -60,6 +60,7 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PROLOGUE
xvxor.v VM0, VM0, VM0
xvxor.v res0, res0, res0
xvxor.v $xr20, $xr20, $xr20
bge $r0, N, .L999
bge $r0, INCX, .L999
li.d TEMP, 1

View File

@ -60,6 +60,7 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PROLOGUE
vxor.v VM0, VM0, VM0
vxor.v res0, res0, res0
vxor.v $vr20, $vr20, $vr20
bge $r0, N, .L999
bge $r0, INCX, .L999
li.d TEMP, 1