From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E368F3858C27; Thu, 11 Nov 2021 09:09:52 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E368F3858C27 From: "crazylht at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/103184] ICE caused by r12-5102 Date: Thu, 11 Nov 2021 09:09:52 +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-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: crazylht at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- 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, 11 Nov 2021 09:09:53 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D103184 --- Comment #1 from Hongtao.liu --- Small testcase reprodce it. #include int tbit0 (_Atomic int* a) { #define BIT (0x01 << 3) return atomic_fetch_or(a, BIT) & BIT; #undef BIT=20 } aarch64-linux-gnu-gcc test.c -O2 -S test.c: In function =E2=80=98tbit0=E2=80=99: test.c:4:1: error: type mismatch in binary expression 4 | tbit0 (_Atomic int* a) | ^~~~~ int unsigned int int _7 =3D _1 & 8; during GIMPLE pass: fab test.c:4:1: internal compiler error: verify_gimple failed 0xf99c2d verify_gimple_in_cfg(function*, bool) =20=20=20=20=20=20=20 /export/users2/liuhongt/gcc/intel-innersource/master/gcc/tree-cfg.c:5577 0xe618df execute_function_todo /export/users2/liuhongt/gcc/intel-innersource/master/gcc/passes.c:2= 042 0xe622cc execute_todo /export/users2/liuhongt/gcc/intel-innersource/master/gcc/passes.c:2= 096 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See for instructions.=