Skip to content

Commit

Permalink
Fix SICORTEX ASUM/ZASUM and SUM/ZSUM for INCX <=0 (OpenMathLib#4640)
Browse files Browse the repository at this point in the history
* Exit early if INCX <= 0
  • Loading branch information
martin-frbg authored Apr 14, 2024
1 parent 23d5a8b commit 4c03ed4
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions kernel/mips64/asum.S
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@
MTC $0, s1

MTC $0, s2
blez INCX, .L999
dsll INCX, INCX, BASE_SHIFT

blez N, .L999
Expand Down
1 change: 1 addition & 0 deletions kernel/mips64/sum.S
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@
MTC $0, s1

MTC $0, s2
blez INCX, .L999
dsll INCX, INCX, BASE_SHIFT

blez N, .L999
Expand Down
1 change: 1 addition & 0 deletions kernel/mips64/zasum.S
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@
MTC $0, s1

MTC $0, s2
blez INCX, .L999
dsll INCX, INCX, ZBASE_SHIFT

blez N, .L999
Expand Down
1 change: 1 addition & 0 deletions kernel/mips64/zsum.S
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@
MTC $0, s1

MTC $0, s2
blez INCX, .L999
dsll INCX, INCX, ZBASE_SHIFT

blez N, .L999
Expand Down

0 comments on commit 4c03ed4

Please sign in to comment.