From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 7E4753858434; Tue, 2 Apr 2024 14:36:45 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7E4753858434 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1712068605; bh=XeFiA7Xt0oQk34nGXCuPngKe4sGMrwa0anA8GPB0AeI=; h=From:To:Subject:Date:In-Reply-To:References:From; b=mL5qa0uVye53s9sqSwqFt7+Qlh01OnePAkguimy+mUvIKnKGItUNeeb7Xb5XCxb0B 6tfLrONbrAUwwY2X8j+PjOhE2SAGNYR/89KnWRYVlzt0lhkt1qLWcVLWmjl/Waz1T4 nP04AUkF8BZ9WMEvkrHPU9anJ8bvyrgcypYysJA4= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/88309] [11/12/13/14 Regression] ICE: Floating point exception (in is_miss_rate_acceptable), target assigning alignent of 4 bits(!) to vector Date: Tue, 02 Apr 2024 14:36:43 +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: 9.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 11.5 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=3D88309 --- Comment #5 from Andrew Pinski --- (In reply to Kewen Lin from comment #4) > (In reply to Andrew Pinski from comment #3) > > Found it: > > /* In GIMPLE the type of the MEM_REF specifies the alignment. The > > required alignment (power) is 4 bytes regardless of data type. */ > > tree align_ltype =3D build_aligned_type (lhs_type, 4); > >=20 > > That should be 4*8 instead of just 4. > >=20 > > There are 2 build_aligned_type in rs6000-builtins.cc which uses the wro= ng > > alignment; thinking it was the alignment argument was bytes rather than= bits. > >=20 > > Introduced by r9-2375-g3f7a77cd20d07c which means this is a regression. >=20 > Hi Andrew, thanks for digging into this! William has not worked on GCC > project any more, will you make a patch for this? I don't have time to test it really.=