Skip to content

Commit

Permalink
LoongArch64: Fixed scalar version of cscal and zscal
Browse files Browse the repository at this point in the history
  • Loading branch information
XiWeiGu committed Jan 22, 2025
1 parent 5392f6d commit 2da86b8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions kernel/loongarch64/zscal.S
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,16 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PROLOGUE

li.d TEMP, 2 * SIZE
ld.d XX, $sp, 0 // Load dummy2
slli.d XX, XX, ZBASE_SHIFT
MTC a1, $r0
slli.d INCX, INCX, ZBASE_SHIFT
bge $r0, N, .L999
CMPEQ $fcc0, ALPHA_R, a1
CMPEQ $fcc1, ALPHA_I, a1
bceqz $fcc0, .L50
bceqz $fcc1, .L50
beq XX, TEMP, .L50 // if dummp2 == 1, do not directly copy 0
srai.d I, N, 2
bne INCX, TEMP, .L20
bge $r0, I, .L15
Expand Down

0 comments on commit 2da86b8

Please sign in to comment.