Message ID | 20230909082014.100341-1-xry111@xry111.site |
---|---|
State | Unresolved |
Headers |
Return-Path: <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ab0a:0:b0:3f2:4152:657d with SMTP id m10csp1016233vqo; Sat, 9 Sep 2023 01:22:07 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFu0UkSI8zarMpKXhMYNpTgG6YLlccU5//8wPHlzTvVk+lf+2qdeyBZXyY4ji4HFhzdqHyv X-Received: by 2002:a2e:8784:0:b0:2bc:fdec:a3f6 with SMTP id n4-20020a2e8784000000b002bcfdeca3f6mr3606561lji.48.1694247727640; Sat, 09 Sep 2023 01:22:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694247727; cv=none; d=google.com; s=arc-20160816; b=kRmsvhzzIULby3uzzlhk8EQ2HrAO4lQcJ/12kfpz7wtUc45NZJbYrC1X+9iwHzQuDa gYppLXykBh6v0hK9DrUvLafALMp6sLP7fu8Uk3Ti9tvj5Ue3tKyhlJKcLd1UtxwBkDHh sIlT8xwCGn1YUBE+PfWlW1bATvAOvsrPd9YTRmPiq6l5J7w7nUSVhtgddcPkGo0e1HLq 5jimIKTWu8vUzGfarU084GrjZUCSsFV0Lnsf3O4JqtYqNiJZ672bzA8yTS4Q+oeSuG3B uPGyvR6an3yFljmcE0DCBF+3TSvu/qgrQw3m6f8TZHcNje53igdwTFE1+SLOWRRhV1FI BUTA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:reply-to:from:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence :content-transfer-encoding:mime-version:message-id:date:subject:to :dmarc-filter:delivered-to:dkim-signature:dkim-filter; bh=eofhinXoOj8PwqxxvpAtPlmm+LL14JCRatDhU/pNw5c=; fh=q6FHtQ1B3olX6oLgixZqvnH85nrSbljxIHPliKzeBJ0=; b=go6MOaj36cY9iCkEu1+gXMzzncYnSp6ouCEO5tJBrvYR4AhPevdWTrJNGCUOzyojr9 G3BM7EO41OTM1VuQxIJ65TpRJvlA68rZAuMgBinTLZ4DfNNMTAH2PkPA3cz2w+wSok6r SVv2oQdPaRSzZQrI5AMTAzopFAkQBx55jhNiWC+NYPbwVpyJxQXaikMy51ZJBUP9CuXG XuBy0XW2rZLGxSEpV9oTjEQDWKnvd2Mli5kJoHjTNNHmFgxSPzj+F3MjEokFTbpLQR8l EloD3+AwVbg9IV7C83VaeoLpp2DvoEWNjcyjysSXpLrpRtP4CfosMVaUwuzoqO37+8Cp 9nsQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=KCGZWTgn; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from server2.sourceware.org (ip-8-43-85-97.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id rs10-20020a170907036a00b00992acfbcee1si2689199ejb.851.2023.09.09.01.22.07 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 09 Sep 2023 01:22:07 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=KCGZWTgn; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 862AF3858C2D for <ouuuleilei@gmail.com>; Sat, 9 Sep 2023 08:22:06 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 862AF3858C2D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1694247726; bh=eofhinXoOj8PwqxxvpAtPlmm+LL14JCRatDhU/pNw5c=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:Cc:From; b=KCGZWTgnioMU2tS4eE+1WVgi9YlmaGAZyDdTw1XdORsT6yDITFBaC0O+Z1M58IsWV tYppTgW+v0fi18LSLrAKXPg0BbtHfiCbi2hDEwhE8DH04S5eMSGChe+wM8wisb2hB1 TFDEeNVkQFSUrwfycYqQtyYN4wsLq1r5x4W9qT9M= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from xry111.site (xry111.site [89.208.246.23]) by sourceware.org (Postfix) with ESMTPS id 1FF433858D38 for <gcc-patches@gcc.gnu.org>; Sat, 9 Sep 2023 08:21:03 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 1FF433858D38 Received: from stargazer.. (unknown [IPv6:240e:358:11c0:f500:dc73:854d:832e:6]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 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 DA136659C0; Sat, 9 Sep 2023 04:20:59 -0400 (EDT) To: gcc-patches@gcc.gnu.org Subject: [PATCH] LoongArch: Fix up memcpy-vec-3.c test case Date: Sat, 9 Sep 2023 16:20:14 +0800 Message-ID: <20230909082014.100341-1-xry111@xry111.site> X-Mailer: git-send-email 2.42.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-8.2 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_SHORT, LIKELY_SPAM_FROM, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gcc-patches mailing list <gcc-patches.gcc.gnu.org> List-Unsubscribe: <https://gcc.gnu.org/mailman/options/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe> List-Archive: <https://gcc.gnu.org/pipermail/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-request@gcc.gnu.org?subject=help> List-Subscribe: <https://gcc.gnu.org/mailman/listinfo/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> From: Xi Ruoyao via Gcc-patches <gcc-patches@gcc.gnu.org> Reply-To: Xi Ruoyao <xry111@xry111.site> Cc: xuchenghua@loongson.cn, chenglulu <chenglulu@loongson.cn>, i@xen0n.name Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1776547504813436989 X-GMAIL-MSGID: 1776547504813436989 |
Series |
LoongArch: Fix up memcpy-vec-3.c test case
|
|
Checks
Context | Check | Description |
---|---|---|
snail/gcc-patch-check | warning | Git am fail log |
Commit Message
Xi Ruoyao
Sept. 9, 2023, 8:20 a.m. UTC
The generic code will split 16-byte copy into two 8-byte copies, so the vector code wouldn't be used even if -mno-strict-align. This contradicted with the purpose of this test case. gcc/testsuite/ChangeLog: * gcc.target/loongarch/memcpy-vec-3.c: Increase the amount of copied bytes to 32. --- gcc/testsuite/gcc.target/loongarch/memcpy-vec-3.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Comments
LGTM! 在 2023/9/9 下午4:20, Xi Ruoyao 写道: > The generic code will split 16-byte copy into two 8-byte copies, so the > vector code wouldn't be used even if -mno-strict-align. This > contradicted with the purpose of this test case. > > gcc/testsuite/ChangeLog: > > * gcc.target/loongarch/memcpy-vec-3.c: Increase the amount of > copied bytes to 32. > --- > gcc/testsuite/gcc.target/loongarch/memcpy-vec-3.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/gcc/testsuite/gcc.target/loongarch/memcpy-vec-3.c b/gcc/testsuite/gcc.target/loongarch/memcpy-vec-3.c > index 233ed215078..db2ea510b09 100644 > --- a/gcc/testsuite/gcc.target/loongarch/memcpy-vec-3.c > +++ b/gcc/testsuite/gcc.target/loongarch/memcpy-vec-3.c > @@ -3,4 +3,4 @@ > /* { dg-final { scan-assembler-not "vst" } } */ > > extern char a[], b[]; > -void test() { __builtin_memcpy(a, b, 16); } > +void test() { __builtin_memcpy(a, b, 32); }
On Sat, 2023-09-09 at 16:21 +0800, chenglulu wrote: > LGTM! Pushed r14-3821. > 在 2023/9/9 下午4:20, Xi Ruoyao 写道: > > The generic code will split 16-byte copy into two 8-byte copies, so the > > vector code wouldn't be used even if -mno-strict-align. This > > contradicted with the purpose of this test case. > > > > gcc/testsuite/ChangeLog: > > > > * gcc.target/loongarch/memcpy-vec-3.c: Increase the amount of > > copied bytes to 32.
diff --git a/gcc/testsuite/gcc.target/loongarch/memcpy-vec-3.c b/gcc/testsuite/gcc.target/loongarch/memcpy-vec-3.c index 233ed215078..db2ea510b09 100644 --- a/gcc/testsuite/gcc.target/loongarch/memcpy-vec-3.c +++ b/gcc/testsuite/gcc.target/loongarch/memcpy-vec-3.c @@ -3,4 +3,4 @@ /* { dg-final { scan-assembler-not "vst" } } */ extern char a[], b[]; -void test() { __builtin_memcpy(a, b, 16); } +void test() { __builtin_memcpy(a, b, 32); }