Replace ambiguous cmp operator with cmpl.

Clang assembler rejects ambiguous cmp instruction.

BUG: 17302482
Change-Id: Ie8dca7e4f46e0906c47076bba21c1941482ba6b3
This commit is contained in:
Chih-Hung Hsieh 2014-10-21 16:25:35 -07:00
parent 54d76360eb
commit c89ee272fb
2 changed files with 8 additions and 8 deletions

View File

@ -98,13 +98,13 @@ L(WcscpyAtom):
mov STR2(%esp), %ecx
lea (%edi, %eax), %edx
cmp $0, (%ecx)
cmpl $0, (%ecx)
jz L(Exit4)
cmp $0, 4(%ecx)
cmpl $0, 4(%ecx)
jz L(Exit8)
cmp $0, 8(%ecx)
cmpl $0, 8(%ecx)
jz L(Exit12)
cmp $0, 12(%ecx)
cmpl $0, 12(%ecx)
jz L(Exit16)
#undef RETURN

View File

@ -92,13 +92,13 @@ ENTRY (wcscpy)
mov STR1(%esp), %edx
mov STR2(%esp), %ecx
cmp $0, (%ecx)
cmpl $0, (%ecx)
jz L(ExitTail4)
cmp $0, 4(%ecx)
cmpl $0, 4(%ecx)
jz L(ExitTail8)
cmp $0, 8(%ecx)
cmpl $0, 8(%ecx)
jz L(ExitTail12)
cmp $0, 12(%ecx)
cmpl $0, 12(%ecx)
jz L(ExitTail16)
PUSH (%edi)