From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 47C563857013; Wed, 26 Aug 2020 09:39:24 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 47C563857013 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1598434764; bh=WWg12rcKFCxeTOvfg4qXJjCQpUru3I8GW2+8jUDdZEw=; h=From:To:Subject:Date:From; b=YXFJTiNyTthgT2SRBgpowSMw29kGc28yMvJlodS+j/mHOqzx3wOLhKGk+JIEkmLmh 6GBdbDNT+4CfjCGhx8LUqn4oL95Cw6/En9hp6kOV0ZmFSyixhsprspy5iBst1eg/P7 NneuIv6jBSxn/12+EN4No4P5HWJrhfHTh1lK+LSA= From: "avieira at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/96795] New: MVE: issue with polymorphism and integer promotion Date: Wed, 26 Aug 2020 09:39:24 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: avieira 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: Wed, 26 Aug 2020 09:39:24 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D96795 Bug ID: 96795 Summary: MVE: issue with polymorphism and integer promotion Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: avieira at gcc dot gnu.org Target Milestone: --- An example of this issue can be observed when trying to compile: #include uint16x8_t foo (uint16x8_t a, int16_t b) { return vaddq (a, (b<<3)); } This will lead to an __ARM_undef being selected. I believe this is because __ARM_mve_coerce only accepts one type for scalar parameters and should have accepted the same range of types for scalar as is done in __ARM_mve_typeid. A workaround for this is to cast (b<<3) to uint16_t.=