From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 7D094395B81B; Thu, 14 May 2020 10:35:37 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7D094395B81B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1589452537; bh=QI5rdtP6v30kBPLjFiNAZhHuF8xl6SjHBl0EhVHRJBA=; h=From:To:Subject:Date:In-Reply-To:References:From; b=h1PFZNHhlCccanAqeKeqgZ9U4cY4JaZQNCHt0fdPpui2SsNzcCaMHQWr38jkG7gUq pILX+xyLU6hI+QfLTTEQGM+1TX3K7EKtz5Vf6n2okHbtK0heusjsY8tj154rMHQ7IE ZtLci2JfC0GmlP9SXH7AoFRTG4cjMtqLqhaNaj+M= From: "asolokha at gmx dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/95123] [10/11 Regression] Wrong code w/ -O2 -fselective-scheduling2 -funroll-loops --param early-inlining-insns=5 --param loop-invariant-max-bbs-in-loop=3 --param max-jump-thread-duplication-stmts=0 Date: Thu, 14 May 2020 10:35:37 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: rtl-optimization X-Bugzilla-Version: 11.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: asolokha at gmx dot com X-Bugzilla-Status: WAITING X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 May 2020 10:35:37 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D95123 --- Comment #4 from Arseny Solokha --- (In reply to Martin Li=C5=A1ka from comment #2) > I can't reproduce that with the mentioned revision. > Where does it segfault? Program received signal SIGSEGV, Segmentation fault. main () at iu1wkpbg.c:39 39 qe (ip[xh]); (gdb) disassemble=20 Dump of assembler code for function main: <=E2=80=A6> 0x000055555555461f <+159>: je 0x5555555545a0 0x0000555555554625 <+165>: xor %ebp,%ebp 0x0000555555554627 <+167>: xor %edi,%edi 0x0000555555554629 <+169>: callq 0x5555555547e0 0x000055555555462e <+174>: cmp $0x2,%ebx 0x0000555555554631 <+177>: lea 0x2a8(%rip),%rsi # 0x55555555= 48e0 0x0000555555554638 <+184>: mov %ebp,%esi 0x000055555555463a <+186>: je 0x555555554650 0x000055555555463c <+188>: add $0x1,%rbp 0x0000555555554640 <+192>: cmp $0x5,%rbp 0x0000555555554644 <+196>: je 0x55555555466f =3D> 0x0000555555554646 <+198>: mov (%rsi,%rbp,4),%edi 0x0000555555554649 <+201>: jmp 0x555555554629 <=E2=80=A6> (gdb) info registers rsi rsi 0x0 0 In a good version I see this instead: 636: 8b 3c a8 mov (%rax,%rbp,4),%edi=