Skip to contentSkip to conversation

arm: armv7m: remove un-necessary If then instruction

PATCH In review Vikas Manocha 2 participants 2 messages Aug 31, 2018 – Sep 11, 2018 Arm (32-bit)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm: armv7m: remove un-necessary If then instruction

With gas option -mimplicit-it=always, IT block is inserted by the assembler for thumb2.

---
 arch/arm/lib/crt0.S | 3 ---
 1 file changed, 3 deletions(-)
arch/arm/lib/crt0.S +0 -3
index 0decce2..d7ff9f0 100644
@@ -139,9 +139,6 @@ here:
 	mov	r2, #0x00000000		/* prepare zero to clear BSS */
 
 clbss_l:cmp	r0, r1			/* while not at end of BSS */
-#if defined(CONFIG_CPU_V7M)
-	itt	lo
-#endif
 	strlo	r2, [r0]		/* clear 32-bit BSS word */
 	addlo	r0, r0, #4		/* move to next */
 	blo	clbss_l
Signature · 1 line
2.7.4
#1 lore raw
Quoted 4 lines · Vikas Manocha

With gas option -mimplicit-it=always, IT block is inserted by the assembler for thumb2.

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180911/1a533c1a/attachment.sig>