From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 2C7E038518BA; Wed, 23 Nov 2022 19:02:01 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2C7E038518BA DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1669230121; bh=VABHbjrDYebeU7m4CdxmjFX0xKBzFFhBE6Ne/ZxZfqI=; h=From:To:Subject:Date:In-Reply-To:References:From; b=tDQs6+zzAUhQ9O3QWfTFBilbb8at7Fd5GnKisVe2DjKA3wsqmrP7rseEIi5dXy7y6 K02QK2mmYNiHVyvoLIJ6Z6lA22/ei4Z1Ni4vwKyEXoljJL8B7Hiv6sKUWg5Z5siH1w fjmC7SOHEnYlPl63pqBQnzRZiSbqLONUqORyDDSA= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/107846] error: result of '8000 << 8' requires 22 bits to represent, but 'short int' only has 16 bits Date: Wed, 23 Nov 2022 19:02:00 +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: 13.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D107846 --- Comment #2 from Andrew Pinski --- (In reply to David Faust from comment #1) > I think this is a bug in the test itself (or with these macros from libbp= f). No I think there might be a bug in GCC though I have to double check. cc1: error: result of '8000 << 8' requires 22 bits to represent, but 'short int' only has 16 bits [-Werror=3Dshift-overflow=3D] ((__u16)(8000) << 8) Hmm, we should have prompted that to int and not warned about it ...=