From patchwork Mon Oct 31 15:44:58 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Engel X-Patchwork-Id: 59668 X-Patchwork-Delegate: rearnsha@gcc.gnu.org Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 953DC393BA43 for ; Mon, 31 Oct 2022 15:48:33 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from wout3-smtp.messagingengine.com (wout3-smtp.messagingengine.com [64.147.123.19]) by sourceware.org (Postfix) with ESMTPS id A425C385381B for ; Mon, 31 Oct 2022 15:46:19 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org A425C385381B Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=danielengel.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=danielengel.com Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id 8D851320093B; Mon, 31 Oct 2022 11:46:18 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Mon, 31 Oct 2022 11:46:18 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=danielengel.com; h=cc:cc:content-transfer-encoding:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm1; t=1667231178; x= 1667317578; bh=xQuk8kPa646vmWTOQ9Zp9zrvJHZN77hxMqAGx+3p9FQ=; b=m VWc4cAPHLy4ckXVw1DfjF1bNkRFU3ZbQD5eafKMdUirEwz9VbtpjaanedDLJaoov xaRtaIQAyj51aYr03HgLqxNWQLvOIF1/YR49pfk2FGAU/8m/Es0gaM/Ona1sT20V ilhuw4caOaIgTHT97MVEjPnMce5dPYXrISjkCuIddDbgQKOhlVXTz2AQNZm+X5TE Y/OhpXOiTxFIHzyeoN0H5OlFeQfUTmChsodVuYVnUjwuafoii9r1DV/+mOwM8hVv n26Ip/6MUdN5kLsj9mV8qTuZTkmKl3dz1uhmI2nFHqGQZZUP9ftsnKzQJQhGQOZC GeVsTXqA+SVII3m4hixqg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; t=1667231178; x=1667317578; bh=xQuk8kPa646vm WTOQ9Zp9zrvJHZN77hxMqAGx+3p9FQ=; b=B5AC1p44j2WobU61CAJApFaRWndOg QHj0sPC3sVzNupYLndP1Nwp0dOGo8bFRZ/f1Y3o/LP7kDgno7oGoC+d56sqx48d0 sELKLtlD/6iXcCIUfE+ZgUakIM7aTgOsEF8UIacHDpN/tykqlSOtvYkvIp3EdHGk kYCsBOWdZklxSXYHzIC87oqzVbr2lUiqK0JxyizcgYJQ0aSoRWeKSMhyUKn1euOS vcotF7oNoJJtGY4mIpDGFNWo7zco3ryBHBeovClayVaM4s4HVOHC+pj1fuv156/C qaACxJiXSpLVDqTkjRLRSu+CCoV5Izmt1QV2ep+laKt1mHbVS+Qk8CVUg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvgedrudefgdektdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvfevufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpeffrghnihgv lhcugfhnghgvlhcuoehgnhhusegurghnihgvlhgvnhhgvghlrdgtohhmqeenucggtffrrg htthgvrhhnpeeuieekgfegkeekleffkefhleevgfekkeekheeffeevkeehvdduvdfgvdeg heeuhfenucffohhmrghinheplhhisgdufhhunhgtshdrshgsnecuvehluhhsthgvrhfuih iivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepghhnuhesuggrnhhivghlvghnghgv lhdrtghomh X-ME-Proxy: Feedback-ID: i791144d6:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 31 Oct 2022 11:46:17 -0400 (EDT) Received: from ubuntu.lorien.danielengel.com (ubuntu.lorien.danielengel.com [10.0.0.96]) by sendmail.lorien.danielengel.com (8.15.2/8.15.2) with ESMTP id 29VFk9nD087238; Mon, 31 Oct 2022 08:46:09 -0700 (PDT) (envelope-from gnu@danielengel.com) From: Daniel Engel To: Richard Earnshaw , gcc-patches@gcc.gnu.org Subject: [PATCH v7 03/34] Fix syntax warnings on conditional instructions Date: Mon, 31 Oct 2022 08:44:58 -0700 Message-Id: <20221031154529.3627576-4-gnu@danielengel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221031154529.3627576-1-gnu@danielengel.com> References: <20221031154529.3627576-1-gnu@danielengel.com> MIME-Version: 1.0 X-Spam-Status: No, score=-13.2 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, JMQ_SPF_NEUTRAL, RCVD_IN_DNSWL_LOW, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Daniel Engel , Christophe Lyon Errors-To: gcc-patches-bounces+patchwork=sourceware.org@gcc.gnu.org Sender: "Gcc-patches" gcc/libgcc/ChangeLog: 2022-10-09 Daniel Engel * 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(-) diff --git a/libgcc/config/arm/lib1funcs.S b/libgcc/config/arm/lib1funcs.S index 726984a9d1d..f2f82f9d509 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