Store rcx to r11 instead of stack in tolower()/toupper() tests

This commit is contained in:
2025-06-24 15:08:54 +02:00
parent f10b2f3c88
commit d3e7f47259

View File

@ -276,11 +276,9 @@ main:
.tolowerLoop:
movzx r10, byte [rdi]
mov byte [rdi], r10b
push rcx
sub rsp, 8
mov r11, rcx
call tolower
add rsp, 8
pop rcx
mov rcx, r11
mov byte [rdi], al
inc rdi
inc r10
@ -298,11 +296,9 @@ main:
.toupperLoop:
movzx r10, byte [rdi]
mov byte [rdi], r10b
push rcx
sub rsp, 8
mov r11, rcx
call toupper
add rsp, 8
pop rcx
mov rcx, r11
mov byte [rdi], al
inc rdi
inc r10