From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 5C1D8388216F; Fri, 30 Jun 2023 20:50:29 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5C1D8388216F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1688158229; bh=76p547VFIWzgUdsYycNDlX6HXr6hEBYubpBtMmm9sHg=; h=From:To:Subject:Date:In-Reply-To:References:From; b=SpdFFsx6PyAEyYg0nZOpc1RGV3Z2vI5ThDuOx+HHTcna3nqWGmUnujADVNKxv+DSv jwdH/nO5m7/DjHzmOeuvFCXxD5nL5wjZFl8pN4e8qwhGSOj871YQEH8RoRjCqB92Ak 8Gb2tOp2///OezMq9c2W3/87F34E01HUTacZjU8o= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/110381] [11/12/13 Regression] double counting for sum of structs of floating point types Date: Fri, 30 Jun 2023 20:50:28 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 12.1.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: rguenth 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=3D110381 --- Comment #16 from Andrew Pinski --- I suspect this patch will fix the arm failure: ``` diff --git a/gcc/testsuite/gcc.dg/vect/pr110381.c b/gcc/testsuite/gcc.dg/vect/pr110381.c index dc8c6a8f683..ee78666d2e8 100644 --- a/gcc/testsuite/gcc.dg/vect/pr110381.c +++ b/gcc/testsuite/gcc.dg/vect/pr110381.c @@ -1,4 +1,5 @@ /* { dg-do run } */ +/* { dg-require-effective-target vect_float_strict } */ #include "tree-vect.h" ```` Arm enables -funsafe-math-optimizations for the vector testsuite (as it requires because of denormals IIRC) but this testcase requires strict order= ing so you need to not allow `-funsafe-math-optimizations` which is what vect_float_strict does.=