[v6,03/34] Fix syntax warnings on conditional instructions

Message ID 20211227190530.3136549-4-gnu@danielengel.com
State Superseded
Delegated to: Richard Earnshaw
Headers
Series libgcc: Thumb-1 Floating-Point Assembly for Cortex M0 |

Commit Message

Daniel Engel Dec. 27, 2021, 7:04 p.m. UTC
  gcc/libgcc/ChangeLog:
2021-01-14 Daniel Engel <gnu@danielengel.com>

	* config/arm/lib1funcs.S (RETLDM, ARM_DIV_BODY, ARM_MOD_BODY,
	_interwork_call_via_lr): Moved condition code after the flags
	update specifier "s".
	(ARM_FUNC_START, THUMB_LDIV0): Removed redundant ".syntax".
---
 libgcc/config/arm/lib1funcs.S | 12 +++++-------
 1 file changed, 5 insertions(+), 7 deletions(-)
  

Patch

diff --git a/libgcc/config/arm/lib1funcs.S b/libgcc/config/arm/lib1funcs.S
index 65d070d8178..b8693be8e4f 100644
--- a/libgcc/config/arm/lib1funcs.S
+++ b/libgcc/config/arm/lib1funcs.S
@@ -204,7 +204,7 @@  LSYM(Lend_fde):
 # if defined(__thumb2__)
 	pop\cond	{\regs, lr}
 # else
-	ldm\cond\dirn	sp!, {\regs, lr}
+	ldm\dirn\cond	sp!, {\regs, lr}
 # endif
 	.endif
 	.ifnc "\unwind", ""
@@ -220,7 +220,7 @@  LSYM(Lend_fde):
 # if defined(__thumb2__)
 	pop\cond	{\regs, pc}
 # else
-	ldm\cond\dirn	sp!, {\regs, pc}
+	ldm\dirn\cond	sp!, {\regs, pc}
 # endif
 	.endif
 #endif
@@ -292,7 +292,6 @@  LSYM(Lend_fde):
 	pop	{r1, pc}
 
 #elif defined(__thumb2__)
-	.syntax unified
 	.ifc \signed, unsigned
 	cbz	r0, 1f
 	mov	r0, #0xffffffff
@@ -429,7 +428,6 @@  SYM (__\name):
 /* For Thumb-2 we build everything in thumb mode.  */
 .macro ARM_FUNC_START name
        FUNC_START \name
-       .syntax unified
 .endm
 #define EQUIV .thumb_set
 .macro  ARM_CALL name
@@ -643,7 +641,7 @@  pc		.req	r15
 	orrhs	\result,   \result,   \curbit,  lsr #3
 	cmp	\dividend, #0			@ Early termination?
 	do_it	ne, t
-	movnes	\curbit,   \curbit,  lsr #4	@ No, any more bits to do?
+	movsne	\curbit,   \curbit,  lsr #4	@ No, any more bits to do?
 	movne	\divisor,  \divisor, lsr #4
 	bne	1b
 
@@ -745,7 +743,7 @@  pc		.req	r15
 	subhs	\dividend, \dividend, \divisor, lsr #3
 	cmp	\dividend, #1
 	mov	\divisor, \divisor, lsr #4
-	subges	\order, \order, #4
+	subsge	\order, \order, #4
 	bge	1b
 
 	tst	\order, #3
@@ -2093,7 +2091,7 @@  LSYM(Lchange_\register):
 	.globl .Lchange_lr
 .Lchange_lr:
 	tst	lr, #1
-	stmeqdb	r13!, {lr, pc}
+	stmdbeq	r13!, {lr, pc}
 	mov	ip, lr
 	adreq	lr, _arm_return
 	bx	ip