summaryrefslogtreecommitdiffstats
path: root/libc/arch-arm/generic/bionic/memcmp.S
diff options
context:
space:
mode:
authorChristopher Ferris <cferris@google.com>2015-07-06 12:03:40 -0700
committerSteve Kondik <steve@cyngn.com>2015-10-29 22:44:26 -0700
commit544a9d40c3dbc6b1ba256f9557224f3049c1e033 (patch)
tree92c711fcdfeaff6027125f3f7274edafaee76971 /libc/arch-arm/generic/bionic/memcmp.S
parent532bb31d8333fc8f51667e3d5ec20a4c3d23c294 (diff)
downloadbionic-544a9d40c3dbc6b1ba256f9557224f3049c1e033.zip
bionic-544a9d40c3dbc6b1ba256f9557224f3049c1e033.tar.gz
bionic-544a9d40c3dbc6b1ba256f9557224f3049c1e033.tar.bz2
Replace bx lr with update of pc from the stack.
When there is arm assembler of this format: ldmxx sp!, {..., lr} or pop {..., lr} bx lr It can be replaced with: ldmxx sp!, {..., pc} or pop {..., pc} Change-Id: Ic27048c52f90ac4360ad525daf0361a830dc22a3
Diffstat (limited to 'libc/arch-arm/generic/bionic/memcmp.S')
-rw-r--r--libc/arch-arm/generic/bionic/memcmp.S3
1 files changed, 1 insertions, 2 deletions
diff --git a/libc/arch-arm/generic/bionic/memcmp.S b/libc/arch-arm/generic/bionic/memcmp.S
index c78dbd4..6643d55 100644
--- a/libc/arch-arm/generic/bionic/memcmp.S
+++ b/libc/arch-arm/generic/bionic/memcmp.S
@@ -221,8 +221,7 @@ ENTRY(memcmp)
bne 8b
9: /* restore registers and return */
- ldmfd sp!, {r4, lr}
- bx lr
+ ldmfd sp!, {r4, pc}
10: /* process less than 12 bytes */
cmp r2, #0