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: 1165536 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-509388-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="NjkeW5NV"; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="vwWUn57l"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 46b0b15tzjz9sDB for ; Sat, 21 Sep 2019 16:11:23 +1000 (AEST) 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=TpHV2p2//LPihiC EQ6a9RlwTbBy+SzVg9pz2NrjY6KRic06ZlAnSc0NAAGfzmUFXuxKMgPYpvMPepUj pEp+GR8GEcALsiDH8VzxOJK40DeyfKTbyTSqeqC6xoWeijFnB0FKzJSFsJUU8i5J YSlaZ+rq5Zr/8Jbu4m/7Hg5SXEuw= 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=NjkeW5NVhiLCbxX8+tTWAx5MITwXechNkZUIqChnVo8TlHeCRX49O XdzleCXBLw4RmDGB1iLIZTRkT0oOeZKtNd2unj1TsbIO5ZOo4IMr7r/d4K6npH7b fJ36T69v4SLbG807EFw84CP0tkVpPyudWiqbe66M9xEufWXdodKsfc= 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== 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(-) 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)