diff --git a/src/internal/bytealg/compare_wasm.s b/src/internal/bytealg/compare_wasm.s index 2d28215b1a..dc8fb33cfb 100644 --- a/src/internal/bytealg/compare_wasm.s +++ b/src/internal/bytealg/compare_wasm.s @@ -45,9 +45,8 @@ TEXT cmpbody<>(SB), NOSPLIT, $0-0 I32WrapI64 Call memcmp<>(SB) I64ExtendI32S - Set R5 + Tee R5 - Get R5 I64Eqz If // check length diff --git a/src/runtime/sys_wasm.s b/src/runtime/sys_wasm.s index 0cd1fe5080..41260bdf23 100644 --- a/src/runtime/sys_wasm.s +++ b/src/runtime/sys_wasm.s @@ -17,10 +17,9 @@ loop: Get R2 I32Const $1 I32Sub - Set R2 + Tee R2 // n == 0 - Get R2 I32Eqz If Return @@ -54,10 +53,9 @@ loop: Get R1 I32Const $1 I32Sub - Set R1 + Tee R1 // n == 0 - Get R1 I32Eqz If Return