From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qv1-xf2f.google.com (mail-qv1-xf2f.google.com [IPv6:2607:f8b0:4864:20::f2f]) by sourceware.org (Postfix) with ESMTPS id B2F013858C01 for ; Tue, 17 Oct 2023 18:51:57 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org B2F013858C01 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 B2F013858C01 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::f2f ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1697568719; cv=none; b=pCMWl87MgBRAvAqv67tSvnYa1rOmr0K7hYN6tvEsrYjolW8+tPuWmBf88IOpaXyDu2jM147AW1uRb+NGnYkFnxvxnkVoG+hn2g2qzYygsJ7K+LUu6goVtVTkk+Ym2vImjO9Pp2l8HChmWS5He80FkPLOV69qT9NLn76iQw7/JHc= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1697568719; c=relaxed/simple; bh=kcVHNSIGBaG0kHDeZT4eok63qkRbORpgwBwK1xa665w=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=xFq8EVeDbtoUG9R5nMBAwRpmZWmyA04F217o9i2lil4/+Hb3gI/pbccw1yo59dm1PjdpKkcQb5geYzERLEnc7gzXAG6Vde0mYqPdMVlfzIk/I/QMQtMNUy360EzSUZZU5G2YIBvXQYgfbb4pmJQi6HQH/soOob0GXM3zwdXhuCU= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-qv1-xf2f.google.com with SMTP id 6a1803df08f44-66d2f3bb312so28141866d6.0 for ; Tue, 17 Oct 2023 11:51:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20230601.gappssmtp.com; s=20230601; t=1697568717; x=1698173517; darn=gcc.gnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=d6EdMPEZZJ92yc2sqhtdHHifnl2emL8MbbssEnvXRNM=; b=HDQ0zGjF8iSW5PgYy5DAcIwHYc7ISfTX1mDAvvkfYBx764cy7VWFNIXWPzKWsUSvdh 4N3tKF9YRaQev+7aJ2TFvP/jqdthOpPuaJrpjEvEIsVTA45n3NBtdgLDW1g4YpsPlL6U k8Mwd1ZmIgTdwrvfBl5fv55RbMUy5B4dKWwGSr64P/aO5EQgOZCENxigluUjDryfgwdX 38Tvdd3G/0Etw5NzUqz0dpQ/B7i0mreOgSRI3yFT0CAYGT18j2HloYVq9MrzwUsqEjiV qMt5KOa3YOSrIvjVNaqMhl6z0rVExb0+kURVIrlX8/h7cNvyaRJWBB+5AADUARDogIDa hIeQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697568717; x=1698173517; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=d6EdMPEZZJ92yc2sqhtdHHifnl2emL8MbbssEnvXRNM=; b=WB2EtGImLJg9OfJFTAkvrXb3/qbH+9l6y5k5o8DEfqfBqJOq47qryWwtI49NgMLzFu 3cO8Brl2Pg46qy6+ijA/rpxWr/M3w2MqQnryh4gOFXruzBJ9LwqPvTRGqgfPSr1ayzcg a70SCTVaFTkSuZhwkcxk93WzzlvGtA1Jn9SVYhojW5uNgQrpCkpeK02JtTSPcL/vrJaK 5ODSTb2o/1p0UXAdsVPkQFBuQK7kNs4GfV1WYYyNmNUNzwtylmZoiQh+O7YFE/ehZnYi 6m4Xonv3BOtApTOXvYqNCyTDoSK3WUFhu+SOu1Xq5qmbcAPFzulLFP/X9heoPttFDMP2 ievg== X-Gm-Message-State: AOJu0YyWsJ3xUSiF9vHHbpSRMYaHy3gL2rCFP6xKFDMaS0YDCzOf9Ohg bpTtTYRj5EIZ0EoOdKozZHUE3yObKBAFwn/Ohn4= X-Google-Smtp-Source: AGHT+IEpNhbcOPmeOSQR0ogB9Ejsn4z6lEFGkOTaOXw7761bKjUc45XB+kRgZY+y4kgBfzhPiw25hg== X-Received: by 2002:ad4:5c64:0:b0:66d:6526:d605 with SMTP id i4-20020ad45c64000000b0066d6526d605mr3424563qvh.63.1697568716830; Tue, 17 Oct 2023 11:51:56 -0700 (PDT) Received: from vineet-framework.hq.rivosinc.com ([208.116.208.98]) by smtp.gmail.com with ESMTPSA id l13-20020a0cd6cd000000b0066d1d2242desm757180qvi.120.2023.10.17.11.51.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 11:51:56 -0700 (PDT) From: Vineet Gupta To: gcc-patches@gcc.gnu.org Cc: Jeff Law , kito.cheng@gmail.com, Palmer Dabbelt , gnu-toolchain@rivosinc.com, Vineet Gupta Subject: [PATCH v2] RISC-V/testsuite/pr111466.c: update test and expected output Date: Tue, 17 Oct 2023 11:51:53 -0700 Message-Id: <20231017185153.90833-1-vineetg@rivosinc.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231017180728.11846-1-vineetg@rivosinc.com> References: <20231017180728.11846-1-vineetg@rivosinc.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-11.3 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 List-Id: Update the test to potentially generate two SEXT.W instructions: one for incoming function arg, other for function return. But after commit 8eb9cdd14218 ("expr: don't clear SUBREG_PROMOTED_VAR_P flag for a promoted subreg") the test is not supposed to generate either of them so fix the expected assembler output which was errorneously introduced by commit above. gcc/testsuite/ChangeLog: * gcc.target/riscv/pr111466.c (foo2): Change return to unsigned int as that will potentially generate two SEXT.W instructions. dg-final: Change to scan-assembler-not SEXT.W. Signed-off-by: Vineet Gupta --- Changes since v1: - Changed function return to be unsigned int --- gcc/testsuite/gcc.target/riscv/pr111466.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gcc/testsuite/gcc.target/riscv/pr111466.c b/gcc/testsuite/gcc.target/riscv/pr111466.c index 007792466a51..3348d593813d 100644 --- a/gcc/testsuite/gcc.target/riscv/pr111466.c +++ b/gcc/testsuite/gcc.target/riscv/pr111466.c @@ -4,7 +4,7 @@ /* { dg-options "-march=rv64gc_zba_zbs -mabi=lp64" } */ /* { dg-skip-if "" { *-*-* } { "-O0" } } */ -int foo2(int unused, int n, unsigned y, unsigned delta){ +unsigned int foo2(int unused, int n, unsigned y, unsigned delta){ int s = 0; unsigned int x = 0; for (;x