From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lj1-x234.google.com (mail-lj1-x234.google.com [IPv6:2a00:1450:4864:20::234]) by sourceware.org (Postfix) with ESMTPS id 60B0E3988406 for ; Thu, 15 Jul 2021 15:29:25 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 60B0E3988406 Received: by mail-lj1-x234.google.com with SMTP id u14so9511618ljh.0 for ; Thu, 15 Jul 2021 08:29:25 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=JCAVm/71mPeErr8WfSC/l98PjEYUK5NWBvbWqubEh3c=; b=GePszl22kkjDAlM2bUcLqINAhEYVPXe8VOUQmFFNK8M61UeKJ0jPRUIpdEmyYINvga 5Xzp0lVf79aMD5snm6kBb4QSuQ3twBbRLvV3OL780kSNZef0GKaE6O2TiPJCER5x2b11 zIlbwGkEU5vuunMNaIW3tjVE8ZU04gptCTVJae7ChKDysWdzG8T/hWVVF4huburUnaLc zgAa/lK/Xuaa1i7T7w4/Zp2XeE1xcB7do95hPgxRgo9WcJEwJEvPi8B1GQIZFst7ntW3 yCNV9xxXPCwuPkvI6ba0xCuulPLQFvRFFfKmrcFS7XO4KUoYxO5oWnn0CL5SCeZd+Y1w WsGw== X-Gm-Message-State: AOAM532uyqhkmHE7diq/cN7S/UoSPCEKvIM0rBhS1UojTfMtVxJRQZMb 3/7kGUsZI0rE1rLEZeOv0i1RjDF18Oqc5sdJJsE= X-Google-Smtp-Source: ABdhPJxjNY2XScvCbUxexqVkRrvjROTtsIdOWDmIQ5G2QYb4X+IlYXxTx5hkqh7qp6M+qNoByL+qEOWv1SrdoTV7MWs= X-Received: by 2002:a2e:8754:: with SMTP id q20mr4640068ljj.426.1626362962704; Thu, 15 Jul 2021 08:29:22 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: David Edelsohn Date: Thu, 15 Jul 2021 11:29:11 -0400 Message-ID: Subject: Re: [PATCH, committed] rs6000: Don't let swaps pass break multiply low-part (PR101129) To: Bill Schmidt Cc: GCC Patches , Segher Boessenkool Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, KAM_SHORT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) 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: , X-List-Received-Date: Thu, 15 Jul 2021 15:29:26 -0000 On Thu, Jul 15, 2021 at 11:25 AM Bill Schmidt wrot= e: > > Hi, > > Segher preapproved this patch in https://gcc.gnu.org/PR101129. It differ= s slightly from what was posted there, needing an additional test to ensure= the insn is a SET. The patch also includes the test case provided by the = OP. Bootstrap and regtest succeeded on P9 little-endian. > > This bug has been around a long time, so the fix should be backported to = all open releases. Is this okay after some burn-in time? > > Thanks! > Bill > > rs6000: Don't let swaps pass break multiply low-part (PR101129) > > 2021-07-15 Bill Schmidt > > gcc/ > * config/rs6000/rs6000-p8swap.c (has_part_mult): New. > (rs6000_analyze_swaps): Insns containing a subreg of a mult are > not swappable. > > gcc/testsuite/ > * gcc.target/powerpc/pr101129.c: New. Thanks for fixing this so quickly. Okay everywhere. Thanks, David