From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 6387938493DA; Mon, 20 Feb 2023 14:51:16 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6387938493DA DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1676904676; bh=GXuk8CWpLM30LrhaEcQRwblvn+2pUH8jmkUhEYJR35U=; h=From:To:Subject:Date:In-Reply-To:References:From; b=kJPwdEsyOg3v+sCLioJcIpE+ZZv3Mr9VUg0Q4co9gEm6QNVpluRL4dcRH+U+14G3b pArAHOcLd4yodeLLaGck9dLOyyf9/uD8etnybbyMnA4jetvg8HeEIFaPrna3OpcDBy ca+66iMjSOir8STz5pqJoCnBQ+QmdriE9ZKCYmeU= From: "segher at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/108862] [13 Regression] CryptX miscompilation on power9 since r13-2107 Date: Mon, 20 Feb 2023 14:51:16 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: segher at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org X-Bugzilla-Target-Milestone: 13.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D108862 --- Comment #3 from Segher Boessenkool --- With -fno-unroll-loops added we get foo: .LFB0: .cfi_startproc cmpwi 0,3,0 ble 0,.L4 mtctr 3 addi 10,4,-8 addi 5,5,8 li 3,0 .p2align 4,,15 .L3: ldu 4,8(10) ldu 9,-8(5) maddld 3,4,9,3 maddhdu 4,4,9,3 bdnz .L3 blr .p2align 4,,15 .L4: li 3,0 li 4,0 blr (which still fails, just is easier to read). The destinations of the four inner loop insns were 131, 132, 135, 136, and IRA decided for those Disposition: 18:r131 l0 4 17:r132 l0 9 1:r135 l0 3 0:r136 l0 4 and that cannot fly.=