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 E197A395B818 for ; Wed, 16 Nov 2022 16:22:38 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org E197A395B818 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=1668615758; bh=/hMDrgy8pXpUhQb5787iCMYCCwQgf8eac9Rf7UctsZI=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=hQlz/MS+AF5wx78pCx3VO0gaZo3tMm+okJwTMmT+7qkIZjrHeMrRl4s+3knK/N50A MCgBtVyuAOYB7GAPHsS0rBHmaW6XY4k6w51I6xr7qVBraHOjoWJFh5Ek4aK02uwjEo IN1KZnZAvEXG+pLjuusbObtKAA6W1N363tvpspyw= Received: from [IPv6:240e:358:116a:f400:dc73:854d:832e:2] (unknown [IPv6:240e:358:116a:f400:dc73:854d:832e:2]) (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 5E07C6677F; Wed, 16 Nov 2022 11:22:33 -0500 (EST) Message-ID: <22ed42cf42737eec212f3708a65a755f2af41c24.camel@xry111.site> Subject: Re: [PATCH v3] LoongArch: Add prefetch instructions. From: Xi Ruoyao To: Lulu Cheng , WANG Xuerui , gcc-patches@gcc.gnu.org Cc: xuchenghua@loongson.cn, xujiahao Date: Thu, 17 Nov 2022 00:22:26 +0800 In-Reply-To: <05ac7d65-3f1a-92ff-401c-71fcc36dd422@loongson.cn> References: <20221116021027.519897-1-chenglulu@loongson.cn> <05ac7d65-3f1a-92ff-401c-71fcc36dd422@loongson.cn> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.46.0 MIME-Version: 1.0 X-Spam-Status: No, score=1.2 required=5.0 tests=BAYES_00,BODY_8BITS,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FROM_SUSPICIOUS_NTLD,LIKELY_SPAM_FROM,PDS_OTHER_BAD_TLD,SPF_HELO_PASS,SPF_PASS,TXREP autolearn=no autolearn_force=no version=3.4.6 X-Spam-Level: * X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On Wed, 2022-11-16 at 11:19 +0800, Lulu Cheng wrote: > The "m" constraint is defined as follows: > =C2=A0(define_memory_constraint "m" > =C2=A0=C2=A0 (and (match_code "mem") > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (match_test "loongarch_12bit_offset_= address_p (XEXP (op, 0), > mode)"))) > This setting must be a memory operand. > ''ZD" constraint is a address operand.=20 > I think (mem:mode (address operand)) =3D memory operand. Yes they are different. I tried reusing "m" in my previous attempt to add prefetch instruction but it didn't work. --=20 Xi Ruoyao School of Aerospace Science and Technology, Xidian University