From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by sourceware.org (Postfix) with ESMTP id E0FC138582B4 for ; Thu, 1 Feb 2024 07:59:07 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org E0FC138582B4 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=arm.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org E0FC138582B4 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=217.140.110.172 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1706774349; cv=none; b=dcI/z43yjKCsiWfr/OiaMahu+mPn0Q0aRRTESrRDTYESHn9vUXzMuGs/46lX5gNfawha+e1h5uXak4s6N3FGk/r2ZtmxXC9MfFspZQdGv4z2IHUglBrEnof2TlHIRVWo8Ma/Gwv4R0Rtqrbb9l+LGvitRwHMbNgbl3vGY+l3LV8= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1706774349; c=relaxed/simple; bh=OB3spc2KitnQQH7nKFfDEFwmRv8Ut1KzbJvX3Ibx6ZI=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=LKuP68+RbNHUxzGKzDTvR9Xv1aMkIRaAGU2+0PRDxa7HJPiKfQPFuoS7b+ecC/TZBwyAhwdfEIYjezqTOx3bhsZs+bimjS7Xg36psfJ/68JHDLq/jWJX1QNBASBLAqz7z9fzqVLVHurFej/ddtKHjQfZagaCPzBPcoyiB3TewfI= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 3A5F2DA7; Wed, 31 Jan 2024 23:59:50 -0800 (PST) Received: from localhost (e121540-lin.manchester.arm.com [10.32.110.72]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id D97453F738; Wed, 31 Jan 2024 23:59:06 -0800 (PST) From: Richard Sandiford To: "Andre Vieira \(lists\)" Mail-Followup-To: "Andre Vieira \(lists\)" ,Richard Biener , gcc-patches@gcc.gnu.org, richard.sandiford@arm.com Cc: Richard Biener , gcc-patches@gcc.gnu.org Subject: Re: [PATCH 1/3] vect: Pass stmt_vec_info to TARGET_SIMD_CLONE_USABLE References: <20240130143132.9575-1-andre.simoesdiasvieira@arm.com> <20240130143132.9575-2-andre.simoesdiasvieira@arm.com> <47e1aeb2-94ac-4733-b49f-ea97932cc49f@arm.com> <545r8s73-675p-4o48-sr66-q6956nqp6r6p@fhfr.qr> <3rq8sn71-8188-o4rq-9spp-q9spn98163q5@fhfr.qr> Date: Thu, 01 Feb 2024 07:59:05 +0000 In-Reply-To: (Andre Vieira's message of "Wed, 31 Jan 2024 16:36:42 +0000") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-15.1 required=5.0 tests=BAYES_00,KAM_DMARC_NONE,KAM_DMARC_STATUS,KAM_LAZY_DOMAIN_SECURITY,SPF_HELO_NONE,SPF_NONE,TXREP,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: "Andre Vieira (lists)" writes: > [...] The question at hand > here is, what can the vectorizer use for a specific loop. If we are > using Advanced SIMD modes then it needs to call an Advanced SIMD clone, > and if we are using SVE modes then it needs to call an SVE clone. At > least until we support the ABI conversion, because like I said for an > unpacked argument they behave differently. Probably also worth noting that multi-byte elements are laid out differently for big-endian. E.g. V4SI is loaded as a 128-bit integer whereas VNx4SI is loaded as an array of 4 32-bit integers, with the first 32-bit integer going in the least significant bits of the register. So it would only be possible to use Advanced SIMD clones for SVE modes and vice versa for little-endian, or if the elements are all bytes, or if we add some reverses to the inputs and outputs. Richard