Fix cfi directives in small strncmp case.
Bug: 27227225
(cherry picked from commit de84e51f8c7b45869a8f83a1d5eacbf19b6d5eb5)
Change-Id: I7ebbd1cf9bff849ecdfc84e0e98842fec3215bb4
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):