Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(121)

Side by Side Diff: newlib/libc/machine/arm/strcpy.c

Issue 790643008: Condition itet ARM instruction in strcpy.c on thumb2 mode (Closed) Base URL: https://chromium.googlesource.com/native_client/nacl-newlib.git@master
Patch Set: review, add ARM_ARCH_PROFILE Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « newlib/libc/machine/arm/strcmp.S ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2008 ARM Ltd 2 * Copyright (c) 2008 ARM Ltd
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 "tst r2, #0xff00\n\t" 135 "tst r2, #0xff00\n\t"
136 "iteet ne\n\t" 136 "iteet ne\n\t"
137 SFI_BREG (ip) 137 SFI_BREG (ip)
138 "strneh r2, [ip], #2\n\t" 138 "strneh r2, [ip], #2\n\t"
139 "lsreq r2, r2, #8\n\t" 139 "lsreq r2, r2, #8\n\t"
140 SFI_BREG (ip) 140 SFI_BREG (ip)
141 "streqb r2, [ip]\n\t" 141 "streqb r2, [ip]\n\t"
142 "tstne r2, #0xff\n\t" 142 "tstne r2, #0xff\n\t"
143 #else 143 #else
144 "tst r2, #0xff\n\t" 144 "tst r2, #0xff\n\t"
145 #ifndef __native_client__
145 "itet ne\n\t" 146 "itet ne\n\t"
147 #endif
146 SFI_BREG (ip) 148 SFI_BREG (ip)
147 "strneh r2, [ip], #2\n\t" 149 "strneh r2, [ip], #2\n\t"
148 SFI_BREG (ip) 150 SFI_BREG (ip)
149 "streqb r2, [ip]\n\t" 151 "streqb r2, [ip]\n\t"
150 "tstne r2, #0xff00\n\t" 152 "tstne r2, #0xff00\n\t"
151 #endif 153 #endif
152 "bne 5b\n\t" 154 "bne 5b\n\t"
153 "RETURN\n" 155 "RETURN\n"
154 156
155 /* src and dst do not have a common word-alignement. Fall back to 157 /* src and dst do not have a common word-alignement. Fall back to
(...skipping 25 matching lines...) Expand all
181 "add r1, r1, #1\n\t" 183 "add r1, r1, #1\n\t"
182 SFI_BREG (r3) 184 SFI_BREG (r3)
183 "strb r2, [r3]\n\t" 185 "strb r2, [r3]\n\t"
184 "add r3, r3, #1\n\t" 186 "add r3, r3, #1\n\t"
185 "cmp r2, #0\n\t" 187 "cmp r2, #0\n\t"
186 "bne 1b\n\t" 188 "bne 1b\n\t"
187 "RETURN" 189 "RETURN"
188 #endif 190 #endif
189 ); 191 );
190 } 192 }
OLDNEW
« no previous file with comments | « newlib/libc/machine/arm/strcmp.S ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698