From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 3BD8A385E02F; Fri, 18 Feb 2022 15:20:26 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3BD8A385E02F From: "aoliva at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/104121] [12 Regression] v850: Infinite loop in find_reload_regno_insns() since r12-5852-g50e8b0c9bca6cdc57804f860ec5311b641753fbb Date: Fri, 18 Feb 2022 15:20:25 +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: 12.0 X-Bugzilla-Keywords: compile-time-hog, ra X-Bugzilla-Severity: normal X-Bugzilla-Who: aoliva at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: aoliva at gcc dot gnu.org X-Bugzilla-Target-Milestone: 12.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 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: Fri, 18 Feb 2022 15:20:26 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D104121 --- Comment #10 from Alexandre Oliva --- and then, as I reduced it myself down to the following and compared with the minimized test, I've finally turned on both of my neurons ;-) and it finally hit me: "only with -mv850e2v3" didn't mean "not with other multilibs", but rather "without any optimization". of course, none of the minimized test w= ould survive with optimization. doh! this one triggers with -O2 -g -mv850e2v3: typedef float DFtype __attribute__ ((mode (DF))); typedef _Complex float DCtype __attribute__ ((mode (DC))); DCtype __muldc3 (DFtype a, DFtype b, DFtype c, DFtype d) { DFtype x =3D __builtin_huge_val () * (a * c - b * d); DFtype y =3D __builtin_huge_val () * (a * d + b * c); DCtype res; __real__ res =3D x; __imag__ res =3D y; return res; }=