loongarch64: fix assembly warnings
ci/woodpecker/push/woodpecker Pipeline was successful Details

master
Ariadne Conill 2024-08-07 20:25:18 -07:00
parent f593205e95
commit ed663cf0e5
3 changed files with 11 additions and 11 deletions

View File

@ -36,8 +36,8 @@ FUNC(libucontext_makecontext)
st.d $a7, $sp, A7_OFF st.d $a7, $sp, A7_OFF
/* set $zero in the mcontext to 1. */ /* set $zero in the mcontext to 1. */
addi.d $v0, $zero, 1 addi.d $a0, $zero, 1
st.d $v0, $t5, REG_OFFSET(0) st.d $a0, $t5, REG_OFFSET(0)
/* ensure the stack is aligned on a quad-word boundary. */ /* ensure the stack is aligned on a quad-word boundary. */
ld.d $t0, $t5, UCONTEXT_STACK_PTR ld.d $t0, $t5, UCONTEXT_STACK_PTR
@ -59,9 +59,9 @@ FUNC(libucontext_makecontext)
store_register_arg: store_register_arg:
addi.d $t3, $t3, 1 addi.d $t3, $t3, 1
ld.d $v1, $t1, 0 ld.d $a1, $t1, 0
addi.d $t1, $t1, REG_SZ addi.d $t1, $t1, REG_SZ
st.d $v1, $t2, 0 st.d $a1, $t2, 0
addi.d $t2, $t2, REG_SZ addi.d $t2, $t2, REG_SZ
addi.d $t6, $zero, 8 addi.d $t6, $zero, 8
bltu $t3, $t6, store_register_arg bltu $t3, $t6, store_register_arg
@ -83,9 +83,9 @@ store_register_arg:
store_stack_arg: store_stack_arg:
addi.d $t3, $t3, 1 addi.d $t3, $t3, 1
ld.d $v1, $t1, 0 ld.d $a1, $t1, 0
addi.d $t1, $t1, REG_SZ addi.d $t1, $t1, REG_SZ
st.d $v1, $t2, 0 st.d $a1, $t2, 0
addi.d $t2, $t2, REG_SZ addi.d $t2, $t2, REG_SZ
bltu $t3, $a2, store_stack_arg bltu $t3, $a2, store_stack_arg
@ -93,8 +93,8 @@ no_more_arguments:
/* trampoline setup. */ /* trampoline setup. */
la.got $t8, libucontext_trampoline la.got $t8, libucontext_trampoline
ld.d $v1, $t5, UCONTEXT_UC_LINK ld.d $a1, $t5, UCONTEXT_UC_LINK
st.d $v1, $t5, REG_OFFSET(23) st.d $a1, $t5, REG_OFFSET(23)
st.d $t0, $t5, REG_OFFSET(3) st.d $t0, $t5, REG_OFFSET(3)

View File

@ -49,7 +49,7 @@ FUNC(libucontext_setcontext)
ld.d $t8, $t5, (MCONTEXT_PC) ld.d $t8, $t5, (MCONTEXT_PC)
jr $t8 jr $t8
move $v0, $zero move $a0, $zero
POP_FRAME(libucontext_setcontext) POP_FRAME(libucontext_setcontext)
END(libucontext_setcontext) END(libucontext_setcontext)

View File

@ -77,7 +77,7 @@ FUNC(libucontext_swapcontext)
ld.d $t8, $t4, (MCONTEXT_PC) ld.d $t8, $t4, (MCONTEXT_PC)
jr $t8 jr $t8
move $v0, $zero move $a0, $zero
fail: fail:
la.global $t8, exit la.global $t8, exit
@ -85,5 +85,5 @@ fail:
POP_FRAME(libucontext_swapcontext) POP_FRAME(libucontext_swapcontext)
jirl $ra, $t8, 0 jirl $ra, $t8, 0
move $v0, $zero move $a0, $zero
END(libucontext_swapcontext) END(libucontext_swapcontext)