Message ID | 20231004215742.929536-1-patrick@rivosinc.com |
---|---|
State | Accepted |
Headers |
Return-Path: <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:254a:b0:403:3b70:6f57 with SMTP id hf10csp424156vqb; Wed, 4 Oct 2023 14:58:36 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFzP8hr+2XVsHznKn9bDbLuTZt9c2UBu8sYaVFAgrM3y6gw8VBktXOtkpZwkD9WYLKjWt5O X-Received: by 2002:a17:906:3ca1:b0:9b7:37de:6009 with SMTP id b1-20020a1709063ca100b009b737de6009mr3190300ejh.3.1696456716131; Wed, 04 Oct 2023 14:58:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696456716; cv=none; d=google.com; s=arc-20160816; b=QI8crOhfXcQoRiShoyoRE/K6EWMAYoKLi556GX10vHbN/0HEXzZqG0mXmMPS9eHvBf 9IHhTpEibrSFGCcQOxM8KWjX+FIZDGo1noOA53c3tFHNisZzWsYBBwECgSGukJWx0FFr x/SMTlE8X0wS9vBiSII0+31iP64ZCJ8lef6vG1EMOqQ8vJhp9qzUzbCbtqQsIOCj2e0E /IzyswF6PVU4YRBa2oMqyGrk0YZTyQSzsW8tBouIQeoccEqccMwyI78Sa60UHBhsfgP/ Ia1G6/3vdE9z6ugGYKkho19iNQA3J/rtJd154YLlH326CPSplz9jAoRWB0RZdi8319BT ew5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature :dmarc-filter:delivered-to; bh=RX7oY4DPl6j2SW6JzM5x71ALjqHCuRIovjixWJVW6Lc=; fh=xi+8S33qoT1qqmHz7kiXAEJ/UzEqUVyf8WWCUibYUTc=; b=VEDzJ71M7FHnAZluE2LqyYSJBOFMiskLMcKSw/hRPkQh200FL6WCYSeRuNOIjJuqLV N0hAfV4GkJBspjIxOzft4AUgntnlI5f1pFaOpZxw1Y6JrXWpKIFqE7P9XKldZ/ape0CO o1x2+fTu6HyoVEkLK5LGzzL+W9TBLsgyJmJ+hXkGM+NRWvE8jvO7BJ4qyHtxF3kQk3Zv 35wV/vaeiDAGI817d7k/upcbGIpKbGmlpJkykMcSyssMJUf6t+KR5VLsSiwfh7wvuUW4 TkiGHdrarVmz107q62oKBVQEDKO+4ksS3ctRin3UJJWcx70lE6GUVsYyWj2VQnkzeawc IcMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rivosinc-com.20230601.gappssmtp.com header.s=20230601 header.b=bcSjfyRp; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id h22-20020a17090619d600b009adbab54df1si41484ejd.98.2023.10.04.14.58.35 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Oct 2023 14:58:36 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@rivosinc-com.20230601.gappssmtp.com header.s=20230601 header.b=bcSjfyRp; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 083B53857033 for <ouuuleilei@gmail.com>; Wed, 4 Oct 2023 21:58:29 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-pf1-x42d.google.com (mail-pf1-x42d.google.com [IPv6:2607:f8b0:4864:20::42d]) by sourceware.org (Postfix) with ESMTPS id 6B9D23858D3C for <gcc-patches@gcc.gnu.org>; Wed, 4 Oct 2023 21:58:04 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 6B9D23858D3C Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=rivosinc.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=rivosinc.com Received: by mail-pf1-x42d.google.com with SMTP id d2e1a72fcca58-6969b391791so214951b3a.3 for <gcc-patches@gcc.gnu.org>; Wed, 04 Oct 2023 14:58:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20230601.gappssmtp.com; s=20230601; t=1696456683; x=1697061483; darn=gcc.gnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=RX7oY4DPl6j2SW6JzM5x71ALjqHCuRIovjixWJVW6Lc=; b=bcSjfyRpQ1VKHEekYMIiqyyLbXk1kCojx5Q+++JXdkZTtAuD3wnT+Q7khCVYMoP7xQ v4MsIy0AfoBg/v9uiNJ0CdsZ2/EyCU9Z913rUhSN/hiJe7Q3ziLnDgOAB52Hs604tOpU t/Gbvy5bgL6J7XsUNgIHSqIi8ghdPytj4a/Kra4Sdr6th6kbwrv+LotJBSazt1/nZS8h rQKV+lBhltVZ0Ry4v5Zxbe47rRcVKtdJV1eatKp6K13vJ8hJAm3ni1gNhlyRO8xagB4Q R4rhTx4chR0BFcu+NJjBkgyLb94drrxbpm7sE4teZh8oEq0MnRNdqltZADQQMjYmmhz/ 7mFg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696456683; x=1697061483; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=RX7oY4DPl6j2SW6JzM5x71ALjqHCuRIovjixWJVW6Lc=; b=mTS9IYu130F6SqIELyV+H9m+J5BC25+QjFPjF0vEnN/Br5oNk7ni+ZwWTzGF2nUpqm 6MKXjuQypzgtLzXH5cc3fhY5U3Whw59J7kA3zdhjUIMN4wcmokxhvhMQid+0VxMIcn/3 i0tZ6ERTL79/1hmM+tCQtC0XSV5rpd2cTydGelICQgQddcQ/PL5Bo2sD3qffD2qb3fJW Enl7XEjfA/Z0Jta/nXbSMz6YQW3ukv5aLoJkYC0Fj5Tg6Jk++K6Fuqk5wdQBQ5QUCNdg vkb4HAUxTT4Y3TtIDD+owqbN2crwTcjrzRrmNW5PReFVsWTx2kxVqZC4vsNK1unYPEI8 xK7A== X-Gm-Message-State: AOJu0Yyg97fyV8PU1C7ZlpzIzm/R2zp1hmM1aHWtJhjbPE7DcJjgg58Z WqqcwEerG8lJrPjGnvpSClLHU4iJ8sBDxINfnp8= X-Received: by 2002:a05:6a21:35c8:b0:126:9081:2156 with SMTP id ba8-20020a056a2135c800b0012690812156mr3270017pzc.4.1696456683399; Wed, 04 Oct 2023 14:58:03 -0700 (PDT) Received: from patrick-ThinkPad-X1-Carbon-Gen-8.ba.rivosinc.com ([2601:647:5700:6860:5d01:b505:51d5:3b5e]) by smtp.gmail.com with ESMTPSA id j22-20020aa78d16000000b00690c4577101sm3812851pfe.140.2023.10.04.14.57.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Oct 2023 14:57:55 -0700 (PDT) From: Patrick O'Neill <patrick@rivosinc.com> To: joern.rennecke@embecosm.com, gcc-patches@gcc.gnu.org Cc: JeffreyALaw@gmail.com, gnu-toolchain@rivosinc.com, Patrick O'Neill <patrick@rivosinc.com> Subject: [PATCH] RISC-V: xfail gcc.dg/pr90263.c for riscv_v Date: Wed, 4 Oct 2023 14:57:42 -0700 Message-Id: <20231004215742.929536-1-patrick@rivosinc.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-12.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, 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> Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1778863797269063412 X-GMAIL-MSGID: 1778863797269063412 |
Series |
RISC-V: xfail gcc.dg/pr90263.c for riscv_v
|
|
Checks
Context | Check | Description |
---|---|---|
snail/gcc-patch-check | success | Github commit url |
Commit Message
Patrick O'Neill
Oct. 4, 2023, 9:57 p.m. UTC
Since r14-4358-g9464e72bcc9 riscv_v targets use vector instructions to
perform a memcpy. We no longer expect memcpy for riscv_v targets.
gcc/testsuite/ChangeLog:
* gcc.dg/pr90263.c: xfail riscv_v targets.
Signed-off-by: Patrick O'Neill <patrick@rivosinc.com>
Co-authored-by: Joern Rennecke <joern.rennecke@embecosm.com>
---
gcc/testsuite/gcc.dg/pr90263.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--
2.34.1
Comments
On 10/4/23 15:57, Patrick O'Neill wrote: > Since r14-4358-g9464e72bcc9 riscv_v targets use vector instructions to > perform a memcpy. We no longer expect memcpy for riscv_v targets. > > gcc/testsuite/ChangeLog: > > * gcc.dg/pr90263.c: xfail riscv_v targets. Or rather than XFAIL skip the test? XFAIL kind of implies its something we'd like to fix. But in this case we don't want a memcpy call as the inlined vector implementation is almost certainly better. You might be able to use riscv_v in a dg-skip-if directive. Not sure. Jeff
On 10/4/23 15:14, Jeff Law wrote: > > > On 10/4/23 15:57, Patrick O'Neill wrote: >> Since r14-4358-g9464e72bcc9 riscv_v targets use vector instructions to >> perform a memcpy. We no longer expect memcpy for riscv_v targets. >> >> gcc/testsuite/ChangeLog: >> >> * gcc.dg/pr90263.c: xfail riscv_v targets. > Or rather than XFAIL skip the test? XFAIL kind of implies its > something we'd like to fix. But in this case we don't want a memcpy > call as the inlined vector implementation is almost certainly better. Ah. Since XFAIL notifies us if a test starts passing (via xpass) I thought it would help us ensure the test doesn't start passing on riscv_v. I didn't know it implied something needed to be fixed. I'll rework it to skip riscv_v targets. Thanks, Patrick > You might be able to use riscv_v in a dg-skip-if directive. Not sure. > > > Jeff
On 10/4/23 16:21, Patrick O'Neill wrote: > > On 10/4/23 15:14, Jeff Law wrote: >> >> >> On 10/4/23 15:57, Patrick O'Neill wrote: >>> Since r14-4358-g9464e72bcc9 riscv_v targets use vector instructions to >>> perform a memcpy. We no longer expect memcpy for riscv_v targets. >>> >>> gcc/testsuite/ChangeLog: >>> >>> * gcc.dg/pr90263.c: xfail riscv_v targets. >> Or rather than XFAIL skip the test? XFAIL kind of implies its >> something we'd like to fix. But in this case we don't want a memcpy >> call as the inlined vector implementation is almost certainly better. > Ah. Since XFAIL notifies us if a test starts passing (via xpass) I > thought it would help us ensure the test doesn't start passing > on riscv_v. I didn't know it implied something needed to be fixed. > > I'll rework it to skip riscv_v targets. Hopefully that works. If you wanted a test to verify that we don't go backwards and start emitting a memcpy, you can set up a test like // dg-directives #include "pr90263.c" // dg directives for scanning Where the scanning verifies that we don't have a call to memcpy. The kind of neat thing here is the dg directives in the included file are ignored, so you can use the same test sources in multiple ways. Given this is kindof specific to risc-v, it might make more sense in the riscv directory. Jeff
On 10/4/23 15:29, Jeff Law wrote: > > > On 10/4/23 16:21, Patrick O'Neill wrote: >> >> On 10/4/23 15:14, Jeff Law wrote: >>> >>> >>> On 10/4/23 15:57, Patrick O'Neill wrote: >>>> Since r14-4358-g9464e72bcc9 riscv_v targets use vector instructions to >>>> perform a memcpy. We no longer expect memcpy for riscv_v targets. >>>> >>>> gcc/testsuite/ChangeLog: >>>> >>>> * gcc.dg/pr90263.c: xfail riscv_v targets. >>> Or rather than XFAIL skip the test? XFAIL kind of implies its >>> something we'd like to fix. But in this case we don't want a memcpy >>> call as the inlined vector implementation is almost certainly better. >> Ah. Since XFAIL notifies us if a test starts passing (via xpass) I >> thought it would help us ensure the test doesn't start passing >> on riscv_v. I didn't know it implied something needed to be fixed. >> >> I'll rework it to skip riscv_v targets. > Hopefully that works. > > If you wanted a test to verify that we don't go backwards and start > emitting a memcpy, you can set up a test like > > // dg-directives > #include "pr90263.c" > > // dg directives for scanning > > Where the scanning verifies that we don't have a call to memcpy. The > kind of neat thing here is the dg directives in the included file are > ignored, so you can use the same test sources in multiple ways. > > Given this is kindof specific to risc-v, it might make more sense in > the riscv directory. > > Jeff Title changed/superseded by: https://inbox.sourceware.org/gcc-patches/20231004225527.930610-1-patrick@rivosinc.com/T/#u Patrick
diff --git a/gcc/testsuite/gcc.dg/pr90263.c b/gcc/testsuite/gcc.dg/pr90263.c index 3222a5331c1..13f4a85fa0f 100644 --- a/gcc/testsuite/gcc.dg/pr90263.c +++ b/gcc/testsuite/gcc.dg/pr90263.c @@ -9,4 +9,4 @@ int *f (int *p, int *q, long n) } /* { dg-final { scan-assembler "mempcpy" { target { i?86-*-* x86_64-*-* } } } } */ -/* { dg-final { scan-assembler "memcpy" { target { ! { i?86-*-* x86_64-*-* } } } } } */ +/* { dg-final { scan-assembler "memcpy" { target { ! { i?86-*-* x86_64-*-* } } xfail { riscv_v } } } } */