From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from xry111.site (xry111.site [89.208.246.23]) by sourceware.org (Postfix) with ESMTPS id ADADB3858D1E for ; Sat, 9 Sep 2023 07:15:56 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org ADADB3858D1E Authentication-Results: sourceware.org; dmarc=pass (p=reject dis=none) header.from=xry111.site Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=xry111.site DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=xry111.site; s=default; t=1694243756; bh=73RTIEThmOOsO2yqKaIPflGUK8Aa6s+GKcm3RTl3d2Q=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=cevbkfXszMRQ+Diq8Ni+zbqKBy55jmpZYYLMhD2CKr6iVNU9+IRpfDPxuVsqGjyZ/ ZKSJDNrv2UKVJBK/uXwgqSeHElwgJFxoQcJHSaOfcuVEczmTNZ56lz6uUamKhMiNm7 cZqBmopbqYsRvTZ4iB29ZpkNO8qO+yN0UY24X1Aw= Received: from localhost.localdomain (xry111.site [IPv6:2001:470:683e::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature ECDSA (P-384) server-digest SHA384) (Client did not present a certificate) (Authenticated sender: xry111@xry111.site) by xry111.site (Postfix) with ESMTPSA id 11377659C0; Sat, 9 Sep 2023 03:15:54 -0400 (EDT) Message-ID: <039c11fd55c0b808a78db8d81be5d1b4d880ca7a.camel@xry111.site> Subject: Re: [PATCH] LoongArch: Use LSX and LASX for block move From: Xi Ruoyao To: chenglulu , gcc-patches@gcc.gnu.org Cc: Chenghui Pan , i@xen0n.name, xuchenghua@loongson.cn Date: Sat, 09 Sep 2023 15:15:53 +0800 In-Reply-To: <0140721c-9281-a832-2874-04230af24698@loongson.cn> References: <20230907161407.27338-2-xry111@xry111.site> <3875e341-97a0-29cc-be12-417ee62a38e8@loongson.cn> <0140721c-9281-a832-2874-04230af24698@loongson.cn> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.48.4 MIME-Version: 1.0 X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,LIKELY_SPAM_FROM,SPF_HELO_PASS,SPF_PASS,TXREP 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: On Sat, 2023-09-09 at 15:14 +0800, chenglulu wrote: >=20 > =E5=9C=A8 2023/9/9 =E4=B8=8B=E5=8D=883:06, Xi Ruoyao =E5=86=99=E9=81=93: > > On Sat, 2023-09-09 at 15:04 +0800, chenglulu wrote: > > > Hi,RuoYao: > > >=20 > > > =C2=A0=C2=A0=C2=A0I think the test example memcpy-vec-3.c submitted i= n r14-3818 is > > > implemented incorrectly. > > >=20 > > > The 16-byte length in this test example will cause can_move_by_pieces= to > > > return true when with '-mstrict-align', so no vector load instruction= s > > > will be generated. > > Yes, in this case we cannot use vst because we don't know if b is > > aligned.=C2=A0 Thus a { scan-assembler-not "vst" } guarantees that. > >=20 > > Or am I understanding something wrongly here? > >=20 > Well, what I mean is that even if '-mno-strict-align' is used here,=20 > vst/vld will not be used, >=20 > so this test example cannot test what we want to test. Let me revise it... --=20 Xi Ruoyao School of Aerospace Science and Technology, Xidian University