mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-05 16:10:55 +00:00
Optimize the instruction alignment.
This commit is contained in:
parent
6b14892866
commit
97cd6892ba
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=145459
|
@ -32,7 +32,6 @@ ENTRY(strcpy)
|
||||||
* Align source to a word boundary.
|
* Align source to a word boundary.
|
||||||
* Consider unrolling loop?
|
* Consider unrolling loop?
|
||||||
*/
|
*/
|
||||||
.align 4
|
|
||||||
.Lalign:
|
.Lalign:
|
||||||
testb $7,%sil
|
testb $7,%sil
|
||||||
je .Lword_aligned
|
je .Lword_aligned
|
||||||
|
@ -44,7 +43,7 @@ ENTRY(strcpy)
|
||||||
jne .Lalign
|
jne .Lalign
|
||||||
ret
|
ret
|
||||||
|
|
||||||
.align 4
|
.p2align 4
|
||||||
.Lloop:
|
.Lloop:
|
||||||
movq %rdx,(%rdi)
|
movq %rdx,(%rdi)
|
||||||
addq $8,%rdi
|
addq $8,%rdi
|
||||||
|
|
Loading…
Reference in a new issue