From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id D47193857828; Fri, 28 Oct 2022 03:33:13 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D47193857828 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1666927993; bh=BVkPkEWWWpVON9Pp69Q60AsT1PycnbBMZCLE+exopsM=; h=From:To:Subject:Date:In-Reply-To:References:From; b=ptSGdI9CgPtoR6KYfsjykTxFPJI0RD+a0SEwqswtnUjRlfAp2aKhKbpBW9xeMenhe G78KGDMT4zndyAC6B/HWQy6K6C7NSHjRhKU+PSumlWxDMro3eBj32bYbV5S9WyQPA2 67sCbyYO/1mMBM9V3qP/QwsRinpdzZv8QLqasPNY= From: "crazylht at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/107432] __builtin_convertvector generates inefficient code Date: Fri, 28 Oct 2022 03:33:13 +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: unknown X-Bugzilla-Keywords: missed-optimization 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D107432 --- Comment #3 from Hongtao.liu --- typedef int v4si __attribute__((vector_size(16))); typedef long long v4di __attribute__((vector_size(32))); v4si foo (v4di a) { return __builtin_convertvector (a, v4si); } hmm, we actually support truncv4div4si2, but some how gcc failed to generate .VEC_CONVERT with truncmn2. hmm, what's optab for convert_optab_handler?=