From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 02F423858D28; Wed, 15 Dec 2021 02:53:56 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 02F423858D28 From: "linkw at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/103622] [12 Regression] ICE: Segmentation fault (in altivec_resolve_new_overloaded_builtin) Date: Wed, 15 Dec 2021 02:53:55 +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: ice-on-invalid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: linkw at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: wschmidt 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: Wed, 15 Dec 2021 02:53:56 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D103622 --- Comment #10 from Kewen Lin --- > test.c: In function =E2=80=98get_float128_exponent=E2=80=99: > test.c:4:5: note: overloaded builtin =E2=80=98__builtin_vec_scalar_extrac= t_exp=E2=80=99 is > implemented by builtin =E2=80=98__builtin_vsx_scalar_extract_expq=E2=80=99 > 4 | return __builtin_vec_scalar_extract_exp (a); > | ^~~~~~ > test.c:4:12: error: =E2=80=98__builtin_vsx_scalar_extract_expq=E2=80=99 r= equires ISA 3.0 IEEE > 128-bit floating point > 4 | return __builtin_vec_scalar_extract_exp (a); > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Just a record to avoid confusion, the above message was the previously emit= ted message before r12-5752 for powerpc-e300c3 cross since it doesn't support i= eee float128. The message is also the same as what I saw on P8 BE with -mabi=3Dieeelongdouble, but we will get the message what Bill put if specif= ying with -mabi=3Dibmlongdouble there (that is "invalid parameter combination"). I just noticed that our built-in documents actually note the type should be "__ieee128", it makes more sense to emit "invalid parameter combination" instead, so Bill's proposed fix is the best.=