Message ID | 20230427033142.949564-1-pan2.li@intel.com |
---|---|
State | Accepted |
Headers |
Return-Path: <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp5960vqo; Wed, 26 Apr 2023 20:32:38 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ638seE0wR6dtTpNmhf4NZ+2oAysSW/l9a8ZDlxSptsYPNHYoWqQghS6qIdhGLnAFjwJbTZ X-Received: by 2002:aa7:d9c6:0:b0:504:a248:3741 with SMTP id v6-20020aa7d9c6000000b00504a2483741mr369213eds.14.1682566357869; Wed, 26 Apr 2023 20:32:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682566357; cv=none; d=google.com; s=arc-20160816; b=i6ZBFsP07Ih2BIra+WlBrBvPb6aYt+QlPRw29PenURrHulaPbY9XA75465EvA0quOt iV6HKw/viOllTEeMF8B/OWRoZnXLleZGFg93354bQGU14CqYAEGp2DBQWK4RaTC3ObDc gIw7b2EC6cucYGnJoy0h/qraERTwBYVs7CBA4/x7GbxDqAHYLNAdJsN34BvNIGIRugta eSHSoM1/nbE07p5kq8C1BhbiQlsZeQBSHBla8FsI4oJVEQnv+ghjGVRs9K+00JmHZeqA sBgX9hb25aGuASgGaVVFbXIoz/of4yYWymRH4Y3IImG+VRjZaF4gk/M1Bg8txsI+AOY0 PITw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to: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:cc :to:dmarc-filter:delivered-to:dkim-signature:dkim-filter; bh=P/VV3rfK2jNTNV4Fw46rC+Affy6+ni02ttHtWvJQ0Jo=; b=oU1zHkMQKalLcWrBmwF/RyaJNu3A9DYFy5IVVlQT9f/emgbjMmJLLgP/yJ3TkS5kV/ RhK7d85J/rWcetx6hZxscA0UunY9HGcQTZ2bYLr/thlhtGpWCGm2ulzv8yKulnvNYpGC xpAyIwtAzGPJhxsbYSoF6lY6KJ1xLNkaIqjPjEDcP6KfI8FeAoMcGtfBFWtU62JeLkqv IXTO3taOYGpxIBa2VdDYcCWc3iRfygxyNFe6v2yFbasHHAT+SEIZDvbqCQ+cIDCiLapn in/0cfgYHBqy6JaPYG94JxbG0P21Toj065ZT1LLfXhy1QPYIVXtYaYqc3Zdsdv9bkqKd JcFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=LUSsn73j; 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"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id f15-20020aa7d84f000000b00506842842d2si9960953eds.463.2023.04.26.20.32.37 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Apr 2023 20:32:37 -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=@gcc.gnu.org header.s=default header.b=LUSsn73j; 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"; 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 84A1D3858C66 for <ouuuleilei@gmail.com>; Thu, 27 Apr 2023 03:32:36 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 84A1D3858C66 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1682566356; bh=P/VV3rfK2jNTNV4Fw46rC+Affy6+ni02ttHtWvJQ0Jo=; h=To:Cc:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=LUSsn73jkG0ocjLX4hr12wH9ovVWKxnaG3F6KpxBuM/NUfjrL7EErkQ0j3NpjfLTP aI5+u5yPHsaI7jttvfxzJjEJlMUdJUXDu279haw4IURHylKEErbzX0rgIgspdmQDIa XnuUG1tYCipKJx3SC1KkA2VNTYmcvvLHLa2kCU0Y= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by sourceware.org (Postfix) with ESMTPS id E33603858D20 for <gcc-patches@gcc.gnu.org>; Thu, 27 Apr 2023 03:31:51 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org E33603858D20 X-IronPort-AV: E=McAfee;i="6600,9927,10692"; a="344759348" X-IronPort-AV: E=Sophos;i="5.99,230,1677571200"; d="scan'208";a="344759348" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Apr 2023 20:31:47 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10692"; a="940496490" X-IronPort-AV: E=Sophos;i="5.99,230,1677571200"; d="scan'208";a="940496490" Received: from shvmail02.sh.intel.com ([10.239.244.9]) by fmsmga006.fm.intel.com with ESMTP; 26 Apr 2023 20:31:45 -0700 Received: from pli-ubuntu.sh.intel.com (pli-ubuntu.sh.intel.com [10.239.159.47]) by shvmail02.sh.intel.com (Postfix) with ESMTP id DDF911007CF0; Thu, 27 Apr 2023 11:31:44 +0800 (CST) To: gcc-patches@gcc.gnu.org Cc: juzhe.zhong@rivai.ai, kito.cheng@sifive.com, yanzhang.wang@intel.com, Pan Li <pan2.li@intel.com> Subject: [PATCH] RISC-V: Add required tls to read thread pointer test Date: Thu, 27 Apr 2023 11:31:42 +0800 Message-Id: <20230427033142.949564-1-pan2.li@intel.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-11.2 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_SHORT, SPF_HELO_NONE, SPF_NONE, TXREP, T_SCC_BODY_TEXT_LINE 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.29 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: Pan Li via Gcc-patches <gcc-patches@gcc.gnu.org> Reply-To: pan2.li@intel.com 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: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1764298701223662337?= X-GMAIL-MSGID: =?utf-8?q?1764298701223662337?= |
Series |
RISC-V: Add required tls to read thread pointer test
|
|
Checks
Context | Check | Description |
---|---|---|
snail/gcc-patch-check | success | Github commit url |
Commit Message
Li, Pan2
April 27, 2023, 3:31 a.m. UTC
From: Pan Li <pan2.li@intel.com> The read-thread-pointer test may require the gcc configured with --enable-tls. If no, there x4 (aka tp) register will not be presented in the assembly code. This patch requires the tls for the dg checking. It will perform the test checking if --enable-tls and mark the test as unsupported if --disable-tls. Configured with --enable-tls: === gcc Summary === of expected passes 16 Configured with --disable-tls: === gcc Summary === of unsupported tests 8 gcc/testsuite/ChangeLog: * gcc.target/riscv/read-thread-pointer.c: Add required tls. Signed-off-by: Pan Li <pan2.li@intel.com> --- gcc/testsuite/gcc.target/riscv/read-thread-pointer.c | 1 + 1 file changed, 1 insertion(+)
Comments
Thanks, pushed :) On Thu, Apr 27, 2023 at 11:32 AM Pan Li via Gcc-patches <gcc-patches@gcc.gnu.org> wrote: > > From: Pan Li <pan2.li@intel.com> > > The read-thread-pointer test may require the gcc configured > with --enable-tls. If no, there x4 (aka tp) register will not > be presented in the assembly code. > > This patch requires the tls for the dg checking. It will perform > the test checking if --enable-tls and mark the test as unsupported > if --disable-tls. > > Configured with --enable-tls: > === gcc Summary === > of expected passes 16 > > Configured with --disable-tls: > === gcc Summary === > of unsupported tests 8 > > gcc/testsuite/ChangeLog: > > * gcc.target/riscv/read-thread-pointer.c: Add required tls. > > Signed-off-by: Pan Li <pan2.li@intel.com> > --- > gcc/testsuite/gcc.target/riscv/read-thread-pointer.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/gcc/testsuite/gcc.target/riscv/read-thread-pointer.c b/gcc/testsuite/gcc.target/riscv/read-thread-pointer.c > index 401fb421129..5f460b5f746 100644 > --- a/gcc/testsuite/gcc.target/riscv/read-thread-pointer.c > +++ b/gcc/testsuite/gcc.target/riscv/read-thread-pointer.c > @@ -1,4 +1,5 @@ > /* { dg-do compile } */ > +/* { dg-require-effective-target tls_native } */ > > void *get_tp() > { > -- > 2.34.1 >
diff --git a/gcc/testsuite/gcc.target/riscv/read-thread-pointer.c b/gcc/testsuite/gcc.target/riscv/read-thread-pointer.c index 401fb421129..5f460b5f746 100644 --- a/gcc/testsuite/gcc.target/riscv/read-thread-pointer.c +++ b/gcc/testsuite/gcc.target/riscv/read-thread-pointer.c @@ -1,4 +1,5 @@ /* { dg-do compile } */ +/* { dg-require-effective-target tls_native } */ void *get_tp() {