From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 214883971C28; Thu, 25 Feb 2021 23:02:37 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 214883971C28 From: "dmalcolm at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug analyzer/99212] [11 Regression] gcc.dg/analyzer/data-model-1.c line 971 Date: Thu, 25 Feb 2021 23:02:37 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: analyzer X-Bugzilla-Version: 11.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dmalcolm at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: dmalcolm at gcc dot gnu.org X-Bugzilla-Target-Milestone: 11.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: Thu, 25 Feb 2021 23:02:37 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D99212 --- Comment #2 from David Malcolm --- Failing test is in test_45 at: __analyzer_eval (bits.b0 =3D=3D 1); /* { dg-warning "TRUE" "desired" { xf= ail *-*-* } } */ /* { dg-warning "UNKNOWN" "status quo" { target *-*-* } .-1 } */ x86_64-pc-linux-gnu has: bits.b0 =3D 1; _1 =3D BIT_FIELD_REF ; _2 =3D _1 & 1; _3 =3D _2 !=3D 0; _4 =3D (int) _3; __analyzer_eval (_4); bits.b0 =3D 1; _1 =3D BIT_FIELD_REF ; _2 =3D _1 & 1; _3 =3D _2 !=3D 0; _4 =3D (int) _3; __analyzer_eval (_4); whereas cris-axis-elf has: bits.b0 =3D 1; _1 =3D VIEW_CONVERT_EXPR(bits); _2 =3D _1 & 1; _3 =3D _2 !=3D 0; _4 =3D (int) _3; __analyzer_eval (_4); bits.b456 =3D 5; _5 =3D VIEW_CONVERT_EXPR(bits); _6 =3D _5 & 112; _7 =3D _6 =3D=3D 80; _8 =3D (int) _7; __analyzer_eval (_8); BIT_FIELD_REF doesn't work (hence the "UNKNOWN" in the expected output), whereas the first VIEW_CONVERT_EXPR does work, unexpectedly emitting "TRUE", hence the XPASS (and the FAIL on the "UNKNOWN" directive, which is there to swallow the "UNKNOWN" output)=