From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 90BE9384406D; Thu, 9 Jul 2020 19:44:38 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 90BE9384406D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1594323878; bh=2OTtc+I8dkEqBcSBfhU8nwHW1JKum5eP+C/llvGmRY0=; h=From:To:Subject:Date:From; b=kqhKYYyVMCWMUGNChaz7LbpLad0kIxdDyze/aouQf8O+LFFhR/WQ7NelrjnOifDNE j77h1fxmY6XQl/df5/BhoIUDTjowLUaY+iO5CzE6jsGk+7rV+sCmxcL/TSQswB2czI qUAHfwDtbr8L7RhnSK2bfUnvAVyiJZD1QsHkRks8= From: "munroesj at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/96139] New: Vector element extract mistypes long long int down to long int Date: Thu, 09 Jul 2020 19:44:38 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 9.3.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: munroesj 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: 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, 09 Jul 2020 19:44:38 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D96139 Bug ID: 96139 Summary: Vector element extract mistypes long long int down to long int Product: gcc Version: 9.3.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: munroesj at gcc dot gnu.org Target Milestone: --- When printing vector element for example: printf ("%s %016llx,%016llx\n", prefix, val[1], val[0]); where val is a vector unsigned long long int -Wall reports: ../src/printll.c: In function =E2=80=98print_v2xint64=E2=80=99: ../src/printll.c:20:21: warning: format =E2=80=98%llx=E2=80=99 expects argu= ment of type =E2=80=98long long unsigned int=E2=80=99, but argument 3 has type =E2=80=98long unsigned = int=E2=80=99 [-Wformat=3D] printf ("%s %016llx,%016llx\n", prefix, val[1], val[0]); ^ Here gcc claims that val[1] is a =E2=80=98long unsigned int=E2=80=99 then i= t is actually typed as: typedef __vector unsigned long long int vui64_t; Some how the vector element extract has dropped the long long int type to l= ong int. This should not be an issue for PPC64 as long long int and long int are both 64-bit but would matter for PPC32.=