setjmp: avoid useless REX-prefix on xor %eax, %eax

This commit is contained in:
Alexander Monakov 2020-08-11 21:11:15 +03:00 committed by Rich Felker
parent 21431a0e43
commit c6a6fe4ccd
2 changed files with 2 additions and 2 deletions

View File

@ -18,5 +18,5 @@ setjmp:
mov %rdx,48(%rdi)
mov (%rsp),%rdx /* save return addr ptr for new rip */
mov %rdx,56(%rdi)
xor %rax,%rax /* always return 0 */
xor %eax,%eax /* always return 0 */
ret

View File

@ -18,5 +18,5 @@ setjmp:
mov %rdx,48(%rdi)
mov (%rsp),%rdx /* save return addr ptr for new rip */
mov %rdx,56(%rdi)
xor %rax,%rax /* always return 0 */
xor %eax,%eax /* always return 0 */
ret