mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-06-05 12:38:32 +02:00
* fixed comparedword in case len=0
git-svn-id: trunk@8815 -
This commit is contained in:
parent
0d1c396521
commit
cc843f5f62
@ -421,9 +421,9 @@ asm
|
||||
movl %edx,%esi
|
||||
movl %ecx,%eax
|
||||
{$else}
|
||||
movl len,%eax
|
||||
movl buf2,%esi { Load params}
|
||||
movl buf1,%edi
|
||||
movl len,%eax
|
||||
{$endif}
|
||||
testl %eax,%eax {We address -1(%esi), so we have to deal with len=0}
|
||||
je .LCmpbyteExit
|
||||
@ -479,9 +479,9 @@ asm
|
||||
movl %edx,%esi
|
||||
movl %ecx,%eax
|
||||
{$else}
|
||||
movl len,%eax
|
||||
movl buf2,%esi { Load params}
|
||||
movl buf1,%edi
|
||||
movl len,%eax
|
||||
{$endif}
|
||||
testl %eax,%eax {We address -2(%esi), so we have to deal with len=0}
|
||||
je .LCmpwordExit
|
||||
@ -544,13 +544,16 @@ asm
|
||||
{$ifdef REGCALL}
|
||||
movl %eax,%edi
|
||||
movl %edx,%esi
|
||||
movl %ecx,%eax
|
||||
{$else}
|
||||
movl len,%ecx
|
||||
movl buf2,%esi { Load params}
|
||||
movl buf1,%edi
|
||||
movl len,%eax
|
||||
movl %eax,%ecx
|
||||
{$endif}
|
||||
testl %ecx,%ecx
|
||||
testl %eax,%eax
|
||||
je .LCmpDwordExit
|
||||
movl %eax,%ecx
|
||||
xorl %eax,%eax
|
||||
rep { Compare entire DWords}
|
||||
cmpsl
|
||||
|
Loading…
Reference in New Issue
Block a user