Message ID | 20231027175650.1361174-1-patrick@rivosinc.com |
---|---|
State | Unresolved |
Headers |
Return-Path: <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:d641:0:b0:403:3b70:6f57 with SMTP id cy1csp784170vqb; Fri, 27 Oct 2023 10:57:22 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFOeLTYG+9lKiVHvAoneog4uynDKHXgy7+/nIJrwUkgFyBZ1tx2D/B1epepGdqmNmFWEJ6s X-Received: by 2002:a05:620a:c4a:b0:774:2c5c:557e with SMTP id u10-20020a05620a0c4a00b007742c5c557emr3627883qki.1.1698429442065; Fri, 27 Oct 2023 10:57:22 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1698429442; cv=pass; d=google.com; s=arc-20160816; b=L8btAs1sJDGjwYdHDdFZF5bf50bKErk79Cvplva7goppkAhnl416kSqGroXKEPOwCP 0dt+c8ZSpImHpxq1BMz7ldKRgcIuV4KWUbt/hcbwidjkmzlktzzTrP+oqOh+lZKBc4kR Auaz42iHqkfK25tGbfzNtAe7H1riY2xF5tWYLTn1r4XLhgMJHl33b4hBA2NbHrbwtixE cagktxAkg6XF4/bIY0cFDKeTNNuZvZIq56dDM95t68VRazBGLmp/PzaH32lZWc9rLSDe 0KhjbeuBnUGOqPCq7xZap/xCWqefAUYAj1Ictn5cWGKZypfTjxRotoaTzmr7Xh9/dwMp Mfcg== ARC-Message-Signature: i=2; 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 :arc-filter:dmarc-filter:delivered-to; bh=l8cvMGDSufnPCxFjWEzpN5j58c1lZtY4g5s7ipd5udU=; fh=cBa/Xsbxrvd2iA918nXmJDTLdJbRmhnQJgmWlR89sQ8=; b=I6wOYFRSzGu5RQMiDx41NC5vBZuTLfvd19eOzDo9fCagCIRkxq4bOJAO5XxK8SMGxE jpOPpR57RTH8WVwG/OBkY21Y0FYHkhxXTSG8n6+qx40DdK5cjZ1TQJbEPrYdC2pJaXXt 4FnDBrHhCAD8XYeU8oTOwTCKPEwqSzPrkLUQ/H6quhw8N2dRf5mxdOm8ac/DIlmPw7yE x3v1vdn9QcT2vW2Pw2u0s2T3V5DwodndsrxQbbaaIj8hCAQ9lLCuZc0+CI9Ob7GdSscx w2Pdn6o9hO9e2GJ8ztVLRddKEbGy3Y2pKWOs3OYgwRQOTI+OC9dwx0+ngWVwTTq10Eh4 rzPg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@rivosinc-com.20230601.gappssmtp.com header.s=20230601 header.b=0uf6+i98; arc=pass (i=1); 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" Received: from server2.sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id e13-20020a05620a014d00b0077898e33d26si911397qkn.232.2023.10.27.10.57.22 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Oct 2023 10:57:22 -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=@rivosinc-com.20230601.gappssmtp.com header.s=20230601 header.b=0uf6+i98; arc=pass (i=1); 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" Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id D0CF63861808 for <ouuuleilei@gmail.com>; Fri, 27 Oct 2023 17:57:21 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-pf1-x432.google.com (mail-pf1-x432.google.com [IPv6:2607:f8b0:4864:20::432]) by sourceware.org (Postfix) with ESMTPS id 5802E3858298 for <gcc-patches@gcc.gnu.org>; Fri, 27 Oct 2023 17:56:55 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 5802E3858298 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=rivosinc.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=rivosinc.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 5802E3858298 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::432 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1698429419; cv=none; b=YxbJBt8fDGbAiHigzuVdUgzrADkIMcWqufea/uTpLfpBHmhQTFl8sy2dT6hYpR9p0cjz/mXHa4iE5gO7c0xNy4VreOkugvu+aAq8cdC4hnfxRkHTr1r87n574vIx3wJJfeDbucdpUcmaRk5BQRkPX9CtkGmON3d1mZ8hYkHnLkI= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1698429419; c=relaxed/simple; bh=mw8fplnH7yzsQdLgJlX5onEfz5rbH8GInDeOKSOs6Fw=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=JB0w1U2nNWQM0GNijpRfuiT/ufLAo4YSkkFFrKnITQJ1bSbbwS0vqAjtWpPO6kXNgI2BkiB/amUS7zWvL1Wxsq+JYCaPp8ezSfW1Ri/2iJbxH21GBQd3gXYj760KtpsS3KAUQNV8vGsTNvO924UOxqOyCp7UmkBNZ+FbV0dwDsM= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-pf1-x432.google.com with SMTP id d2e1a72fcca58-6ba54c3ed97so2333569b3a.2 for <gcc-patches@gcc.gnu.org>; Fri, 27 Oct 2023 10:56:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20230601.gappssmtp.com; s=20230601; t=1698429414; x=1699034214; 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=l8cvMGDSufnPCxFjWEzpN5j58c1lZtY4g5s7ipd5udU=; b=0uf6+i98RonAzPGBAJbBkFpNY6Gwez2TIqCMmkhh2Hh22/0cUp7PBwOpJ75+QGzOrL NdW4/AaqeF07e+SdlYdtRrSADiLB1f1Q6JvSodBp/2EDUorQHbRP87C9rk5YZMxXD/no 4aDLBIo1I/yJg9wnlDSxj7kRGQ/yOyhGaD2DOBYmWkcOxAv7X/tFrkGzEpJxaATSU8aE LKZCRFdJsRjfOwztJ7b/zTz4tDZlzxL6GZdV6CSC9lwG66u12SR878NS1ZIykI6k6hx5 fr0jLkjYzrOssJxx8OjY8cgGfq6YU6jY5ODoNdiRBaaG8pDB9oxxP7VpNV0RXq3D/5Lz 93FA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698429414; x=1699034214; 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=l8cvMGDSufnPCxFjWEzpN5j58c1lZtY4g5s7ipd5udU=; b=lZ5N7+8MB4gcuVsy2T0lKnv9mm4Ttaempv+Ydac27jfGsla6LgkUMcKOwbuL0lhOzh ED3/xhF93wA2JFOuqJRsIBGmVynFpg1PCkBCqNqyyVZQkjqYZ2zqZaMHELcnjQWt+d/+ 51+p4Kg76bjRa2Yqre3vFYuEgtV2nkz9DJPSUm9H+rfnbglTExClVLuraipJE5h31Hte COUQDZjk0TzrOjDtyjKQ55wIYfHzbJco78St4la1j1ye1jXBG1Hws1CdlI3pQjd9nFH6 6kgtvuH9+44J1ZGyXGTh4OGQy6E8xtTcub4ykZITRhLjDXBlYd3u7/OYKjXrnARKOc09 IkHQ== X-Gm-Message-State: AOJu0YyMaAiBeQ+4dF4fIpw/HGsYVVYfhDd2inCsMj1iAurdG2Yq2XOu XvkZVj/sNv0dhudBbg8wsrqav0Ek8Gviy1ld1/4= X-Received: by 2002:a05:6a00:130a:b0:6be:9c0:7195 with SMTP id j10-20020a056a00130a00b006be09c07195mr3243690pfu.20.1698429414031; Fri, 27 Oct 2023 10:56:54 -0700 (PDT) Received: from patrick-ThinkPad-X1-Carbon-Gen-8.hsd1.ca.comcast.net ([2601:647:5700:6860:1a42:ebf9:f19c:4fc2]) by smtp.gmail.com with ESMTPSA id r8-20020aa78b88000000b006b4ca26f3c9sm1660714pfd.74.2023.10.27.10.56.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Oct 2023 10:56:53 -0700 (PDT) From: Patrick O'Neill <patrick@rivosinc.com> To: gcc-patches@gcc.gnu.org Cc: jeffreyalaw@gmail.com, Patrick O'Neill <patrick@rivosinc.com> Subject: [PATCH] RISC-V: Make stack_save_restore_2 more robust Date: Fri, 27 Oct 2023 10:56:50 -0700 Message-ID: <20231027175650.1361174-1-patrick@rivosinc.com> X-Mailer: git-send-email 2.42.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-12.2 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, GIT_PATCH_0, KAM_SHORT, 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: 1780932350670590349 X-GMAIL-MSGID: 1780932350670590349 |
Series |
RISC-V: Make stack_save_restore_2 more robust
|
|
Checks
Context | Check | Description |
---|---|---|
snail/gcc-patch-check | warning | Git am fail log |
Commit Message
Patrick O'Neill
Oct. 27, 2023, 5:56 p.m. UTC
GCC recently changed to emit __riscv_restore_5 which causes this
testcase to fail.
This patch updates the regex to be more robust to change by accepting
any number after __riscv_save_ and __riscv_restore_.
gcc/testsuite/ChangeLog:
* gcc.target/riscv/stack_save_restore_2.c: Accept any number
after __riscv_save_ and __riscv_restore_.
Signed-off-by: Patrick O'Neill <patrick@rivosinc.com>
---
Tested using glibc rv64gc on r14-4980-g2672c60917d.
---
gcc/testsuite/gcc.target/riscv/stack_save_restore_2.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
Comments
On 10/27/23 11:56, Patrick O'Neill wrote: > GCC recently changed to emit __riscv_restore_5 which causes this > testcase to fail. > This patch updates the regex to be more robust to change by accepting > any number after __riscv_save_ and __riscv_restore_. > > gcc/testsuite/ChangeLog: > > * gcc.target/riscv/stack_save_restore_2.c: Accept any number > after __riscv_save_ and __riscv_restore_. OK jeff
On 10/27/23 11:02, Jeff Law wrote: > > > On 10/27/23 11:56, Patrick O'Neill wrote: >> GCC recently changed to emit __riscv_restore_5 which causes this >> testcase to fail. >> This patch updates the regex to be more robust to change by accepting >> any number after __riscv_save_ and __riscv_restore_. >> >> gcc/testsuite/ChangeLog: >> >> * gcc.target/riscv/stack_save_restore_2.c: Accept any number >> after __riscv_save_ and __riscv_restore_. > OK > jeff Committed Patrick
diff --git a/gcc/testsuite/gcc.target/riscv/stack_save_restore_2.c b/gcc/testsuite/gcc.target/riscv/stack_save_restore_2.c index 4c549cb11ae..5f0389243b1 100644 --- a/gcc/testsuite/gcc.target/riscv/stack_save_restore_2.c +++ b/gcc/testsuite/gcc.target/riscv/stack_save_restore_2.c @@ -7,7 +7,7 @@ float getf(); /* ** bar: -** call t0,__riscv_save_(3|4) +** call t0,__riscv_save_[0-9]+ ** addi sp,sp,-[0-9]+ ** ... ** li t0,-[0-9]+ @@ -17,7 +17,7 @@ float getf(); ** add sp,sp,t0 ** ... ** addi sp,sp,[0-9]+ -** tail __riscv_restore_(3|4) +** tail __riscv_restore_[0-9]+ */ int bar() {