From 857fa6b2a390101a92254b735cc9bc583f78dad5 Mon Sep 17 00:00:00 2001 From: Chih-Hung Hsieh Date: Wed, 27 Aug 2014 15:04:23 -0700 Subject: [PATCH] Replace ambiguous cmp instruction with cmpl. Clang assembler rejects ambiguous cmp instruction. BUG: 17302482 Change-Id: I74f49de87464541f9fe6fa288e4093a9fbf37120 --- libc/arch-x86/atom/string/sse2-wcslen-atom.S | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/libc/arch-x86/atom/string/sse2-wcslen-atom.S b/libc/arch-x86/atom/string/sse2-wcslen-atom.S index 6a6ad519e..2f10db450 100644 --- a/libc/arch-x86/atom/string/sse2-wcslen-atom.S +++ b/libc/arch-x86/atom/string/sse2-wcslen-atom.S @@ -65,21 +65,21 @@ name: \ ENTRY (wcslen) mov STR(%esp), %edx #endif - cmp $0, (%edx) + cmpl $0, (%edx) jz L(exit_tail0) - cmp $0, 4(%edx) + cmpl $0, 4(%edx) jz L(exit_tail1) - cmp $0, 8(%edx) + cmpl $0, 8(%edx) jz L(exit_tail2) - cmp $0, 12(%edx) + cmpl $0, 12(%edx) jz L(exit_tail3) - cmp $0, 16(%edx) + cmpl $0, 16(%edx) jz L(exit_tail4) - cmp $0, 20(%edx) + cmpl $0, 20(%edx) jz L(exit_tail5) - cmp $0, 24(%edx) + cmpl $0, 24(%edx) jz L(exit_tail6) - cmp $0, 28(%edx) + cmpl $0, 28(%edx) jz L(exit_tail7) pxor %xmm0, %xmm0