Fix cfi directives in small strncmp case.
Bug: 27227225
Change-Id: Id4f88fe288109a82822ad1b2291858c1c85b0ca7
diff --git a/libc/arch-x86/atom/string/ssse3-strcmp-atom.S b/libc/arch-x86/atom/string/ssse3-strcmp-atom.S
index 1275379..ee253b9 100644
--- a/libc/arch-x86/atom/string/ssse3-strcmp-atom.S
+++ b/libc/arch-x86/atom/string/ssse3-strcmp-atom.S
@@ -115,6 +115,7 @@
ENTRY (STRCMP)
#ifdef USE_AS_STRNCMP
PUSH (%ebp)
+ cfi_remember_state
#endif
movl STR1(%esp), %edx
movl STR2(%esp), %eax
@@ -213,9 +214,6 @@
PUSH (%ebx)
PUSH (%edi)
PUSH (%esi)
-#ifdef USE_AS_STRNCMP
- cfi_remember_state
-#endif
movl %edx, %edi
movl %eax, %ecx
@@ -2103,7 +2101,6 @@
RETURN
#ifdef USE_AS_STRNCMP
- cfi_restore_state
.p2align 4
L(more8byteseq):
POP (%esi)
@@ -2120,7 +2117,7 @@
ret
#ifdef USE_AS_STRNCMP
- CFI_PUSH (%ebp)
+ cfi_restore_state
.p2align 4
L(less16bytes_sncmp):