From patchwork Sat Sep 21 06:11:07 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 174184 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp311822ill; Fri, 20 Sep 2019 23:11:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqzWh31N1HxU/fGQm7upEijbH3R3YOxv7JYc9qvytKhH3ieMb0VF7NJd96Ug1gJyHgyuWCdf X-Received: by 2002:a17:906:c822:: with SMTP id dd2mr20625450ejb.165.1569046288037; Fri, 20 Sep 2019 23:11:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569046288; cv=none; d=google.com; s=arc-20160816; b=BdNzTCl2VejsnsE5GFDac8b00Q8K3mrRwBIKfxbeFAEo4BDgFA/uJLBr8J58FSlUQu QWkNDF2zomaLYofYyMAMTBhS1qY+RrW/oCsztPPJYb6vSgebCpQ0w3kzp8O5QnW/CAND /UQRc7tXrvxAWe4rmQIERE7tI+xiSiJr3mNpyOC6hva8MHTTT1quZv8bad/4TqMHtzFH mbwujyMwkQmvtC5KRHGKT1dqTVuQ2JsKjipL1GbzS+jdJGnPNI3zENanuZK7bgwqffOr 0uQ3DoNmJnkHMx1OakJZ17wMpYi6z7yAs6mc1ympNmMg51HM0U8ZNRqPVV3t6MOUbZuT B4sQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:date:subject:to:from:dkim-signature:delivered-to:sender :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mailing-list:dkim-signature:domainkey-signature; bh=NL+HFcxFrbvE4iCJz2gsFM97wa6T1GNjfY1fLY+fn2A=; b=OrDc+75vzDB5G/L75YcDfECYh3jWLJKrndn/rI5okFDOeE2w3/NttxDEybUDF6hrHA T8kcxlibUsdTRqo8s2cZBkCBqEWH3MuObS/KIbiFXJCHg8g1Cv+y1hzN7lZ6UVUB1+Gj DGncV/SzvxGiiUkuck2Zu/fIoVEvlmp74QSlHxhYQkn3qssvmcB95eWkEjkyfyrVKzPZ anD6S5CkDy6rIrlNzcpdU8MXQs2NYFXHBchzCRJvBPyiEXOpkUj7aLGungdS3xxN98wd iOreWJmXckFds7hOWZWUFDu3KCUu07qwJJQnc/nUFo3ZNphIGuESaNKOJ+ho5gSBmrCQ 5mOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=BYAmcp0T; dkim=pass header.i=@linaro.org header.s=google header.b=vwWUn57l; spf=pass (google.com: domain of gcc-patches-return-509388-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom="gcc-patches-return-509388-patch=linaro.org@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id m10si2647391eds.428.2019.09.20.23.11.27 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 20 Sep 2019 23:11:28 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-return-509388-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) client-ip=209.132.180.131; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=BYAmcp0T; dkim=pass header.i=@linaro.org header.s=google header.b=vwWUn57l; spf=pass (google.com: domain of gcc-patches-return-509388-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom="gcc-patches-return-509388-patch=linaro.org@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:subject:date:message-id; q=dns; s=default; b=Kz6USBlykrF0LSw Q1+ON/tD3tU5W6B4Y/WYm/BEepVus8TbyFFNIox+cQL2CGKFVFArjLzK3t9tqk6I xAaKUDhaqQuhRvFQsbXQGnuKczhluQk3Dh66KwO6pKkkXTP6YM5JtLBDu2MediOm UZPRl404rGVPheglReT4uy4rDcG4= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:subject:date:message-id; s=default; bh=MK0zioZNq8l+QDFn84fNR zvw4mE=; b=BYAmcp0TN4aF+8IZTApl9zwdBWWD2Q1K0Dgt3MFc76tJHZRxkF2NK V+5DfIy75PA1o5khLb7N/u2IYe5k+E/5KG+hRnnZg33kdHuUQPnuZfZuvS7fw+EG HyHe843AqEYZI5VJz3Jd5qqk25S4ZyIA7KltExQN22GMUFcyu02XBk= Received: (qmail 43411 invoked by alias); 21 Sep 2019 06:11:15 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 43403 invoked by uid 89); 21 Sep 2019 06:11:14 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-25.6 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, KAM_NUMSUBJECT, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.1 spammy=diagnosed X-HELO: mail-pl1-f174.google.com Received: from mail-pl1-f174.google.com (HELO mail-pl1-f174.google.com) (209.85.214.174) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sat, 21 Sep 2019 06:11:13 +0000 Received: by mail-pl1-f174.google.com with SMTP id f19so4219912plr.3 for ; Fri, 20 Sep 2019 23:11:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:subject:date:message-id; bh=NL+HFcxFrbvE4iCJz2gsFM97wa6T1GNjfY1fLY+fn2A=; b=vwWUn57l6We/QEWuFIRd/gwl4o03rlTjlzGOO+oJMn7HIP+cr6dsYIxOqi0e75hPBY MCyq8yXjtZWBn4lKxLTnNee9TcMrjlHB9TTAwYYxCeUfwkPijyn8c3KkIxIKwEH/WbGX XYyN+HGa7/3L7welYQ7sQcfiCbexCuopkmquEMlVZWMIGjn3nAed4Y3rOr88pQHJx5Qr jsSkDDT2tkpg0JHr5HbORagNIcK9FYsDxqf/Wpi4lf49j033C+wMYhJALpLHZ7sAzpHb i4/6cjyiFLHD1g9iRBObYCAMB5X70oa6V5LMl3XuH1EDE5sa4VkAxt7z/qAqGGDMko7Q 5vdQ== Return-Path: Received: from localhost.localdomain (97-113-7-119.tukw.qwest.net. [97.113.7.119]) by smtp.gmail.com with ESMTPSA id s141sm7070094pfs.13.2019.09.20.23.11.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Sep 2019 23:11:10 -0700 (PDT) From: Richard Henderson To: gcc-patches@gcc.gnu.org Subject: [PATCH, AArch64] Fix PR target/91834 Date: Fri, 20 Sep 2019 23:11:07 -0700 Message-Id: <20190921061107.6388-1-richard.henderson@linaro.org> As diagnosed in the PR. * config/aarch64/lse.S (LDNM): Ensure STXR output does not overlap the inputs. --- libgcc/config/aarch64/lse.S | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.17.1 diff --git a/libgcc/config/aarch64/lse.S b/libgcc/config/aarch64/lse.S index a5f6673596c..c7979382ad7 100644 --- a/libgcc/config/aarch64/lse.S +++ b/libgcc/config/aarch64/lse.S @@ -227,8 +227,8 @@ STARTFN NAME(LDNM) 8: mov s(tmp0), s(0) 0: LDXR s(0), [x1] OP s(tmp1), s(0), s(tmp0) - STXR w(tmp1), s(tmp1), [x1] - cbnz w(tmp1), 0b + STXR w(tmp2), s(tmp1), [x1] + cbnz w(tmp2), 0b ret ENDFN NAME(LDNM)