From patchwork Fri Sep 13 01:21:41 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Li, Pan2" X-Patchwork-Id: 1984938 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=ODv5/4q5; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=server2.sourceware.org; envelope-from=gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=patchwork.ozlabs.org) Received: from server2.sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4X4c5B625Fz1y1C for ; Fri, 13 Sep 2024 11:23:26 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 737AD3858C98 for ; Fri, 13 Sep 2024 01:23:24 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.19]) by sourceware.org (Postfix) with ESMTPS id B7C013858D28 for ; Fri, 13 Sep 2024 01:22:38 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org B7C013858D28 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=intel.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org B7C013858D28 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=198.175.65.19 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1726190570; cv=none; b=tTRqn5EjBR90lrFsonBjcNotdlxOQ+UX9HaEVZryZINuTN5PQbRlOUr9IKlxfbuZ9hIn2GiZmU9M8f125yLGIDn/hVL7/3o5ey+2kVFG3B4GNLxH7sEKc6Y4tif3a8wpWa5PbiEM95cqzpneITCE0LBS+1KRwGF2k2uFn2XaK/k= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1726190570; c=relaxed/simple; bh=v9pSmlIh/T9ywVTAApghLnKQI7RSH1ha/VdITfXQMvI=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=ONCV0Rp64l+jp8Dm9E81VCicTHEuf8Z+ruLOK4kscqa9m4JeRfJMjzsbLXgjlsxC5L6qZSN8L66w+jXqIq3+GeZxu5FJ4ctznjbr3qNs6fGyD0/qwHjfhHpbmDKVV+JSmGPtY4MNQyfGcZwQRXrFyU06B0mesrBMuh+btfigRqQ= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1726190559; x=1757726559; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=v9pSmlIh/T9ywVTAApghLnKQI7RSH1ha/VdITfXQMvI=; b=ODv5/4q5hRtH6lu85EW/BVuEw4uGOfht2LbLdJVCbEmnbXAGD8qoKoEu BmhDlDLnYvb//7VrVM6mJ2pljWKdvP0O1CyfQ8WkVxGfcySnBhEqlj9zK rX7wbf9xpzsi8r0tv3naVSg8EThzVKPbI8bpI0V4DQdAURFX24qPorBYt /Tb2ZynP/XE4EPes5/0pidd+mBt6d+dHVcbci4Ljt6hTsa9s4WpfPsysE AlSoSE8xPmbY00M1nM+JN5oxHlNxM/EJIICC/FzGaZdVDKwdgOhtffCu3 fWiCNnN4dcwdjs04lVZFESLLgYs/n3A3rQPokUU/tFMppcUKKSr0ZyqV2 w==; X-CSE-ConnectionGUID: 6EqsW8OyQ6aIaekC/vsUhA== X-CSE-MsgGUID: oF1ddgPcQRGb0CTSnQgjXQ== X-IronPort-AV: E=McAfee;i="6700,10204,11193"; a="24949540" X-IronPort-AV: E=Sophos;i="6.10,224,1719903600"; d="scan'208";a="24949540" Received: from fmviesa005.fm.intel.com ([10.60.135.145]) by orvoesa111.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Sep 2024 18:22:38 -0700 X-CSE-ConnectionGUID: vGDcC4/7Sf+9W+av4cnASA== X-CSE-MsgGUID: 21MpdLT7RuWt80RwAIg+JQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.10,224,1719903600"; d="scan'208";a="72245559" Received: from panli.sh.intel.com ([10.239.154.73]) by fmviesa005.fm.intel.com with ESMTP; 12 Sep 2024 18:22:36 -0700 From: pan2.li@intel.com To: gcc-patches@gcc.gnu.org Cc: juzhe.zhong@rivai.ai, kito.cheng@gmail.com, jeffreyalaw@gmail.com, rdapp.gcc@gmail.com, Pan Li Subject: [PATCH v1] RISC-V: Fix signed SAT_ADD test case for int64_t Date: Fri, 13 Sep 2024 09:21:41 +0800 Message-ID: <20240913012141.1032016-1-pan2.li@intel.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 X-Spam-Status: No, score=-11.5 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 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org From: Pan Li The int8_t test for signed SAT_ADD is sat_s_add-1.c, the sat_s_add-4.c should be for int64_t. Thus, update sat_s_add-4.c for int64_t type. gcc/testsuite/ChangeLog: * gcc.target/riscv/sat_s_add-4.c: Update test for int64_t instead of int8_t. Signed-off-by: Pan Li --- gcc/testsuite/gcc.target/riscv/sat_s_add-4.c | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/gcc/testsuite/gcc.target/riscv/sat_s_add-4.c b/gcc/testsuite/gcc.target/riscv/sat_s_add-4.c index f85675c1a05..12c9540eaec 100644 --- a/gcc/testsuite/gcc.target/riscv/sat_s_add-4.c +++ b/gcc/testsuite/gcc.target/riscv/sat_s_add-4.c @@ -5,26 +5,25 @@ #include "sat_arith.h" /* -** sat_s_add_int8_t_fmt_1: +** sat_s_add_int64_t_fmt_1: ** add\s+[atx][0-9]+,\s*a0,\s*a1 ** xor\s+[atx][0-9]+,\s*a0,\s*a1 ** xor\s+[atx][0-9]+,\s*a0,\s*[atx][0-9]+ -** srli\s+[atx][0-9]+,\s*[atx][0-9]+,\s*7 -** srli\s+[atx][0-9]+,\s*[atx][0-9]+,\s*7 +** srli\s+[atx][0-9]+,\s*[atx][0-9]+,\s*63 +** srli\s+[atx][0-9]+,\s*[atx][0-9]+,\s*63 ** xori\s+[atx][0-9]+,\s*[atx][0-9]+,\s*1 ** and\s+[atx][0-9]+,\s*[atx][0-9]+,\s*[atx][0-9]+ -** andi\s+[atx][0-9]+,\s*[atx][0-9]+,\s*1 ** srai\s+[atx][0-9]+,\s*[atx][0-9]+,\s*63 -** xori\s+[atx][0-9]+,\s*[atx][0-9]+,\s*127 +** li\s+[atx][0-9]+,\s*-1 +** srli\s+[atx][0-9]+,\s*[atx][0-9]+,\s*1 +** xor\s+[atx][0-9]+,\s*[atx][0-9]+,\s*[atx][0-9]+ ** neg\s+[atx][0-9]+,\s*[atx][0-9]+ ** and\s+[atx][0-9]+,\s*[atx][0-9]+,\s*[atx][0-9]+ ** addi\s+[atx][0-9]+,\s*[atx][0-9]+,\s*-1 ** and\s+[atx][0-9]+,\s*[atx][0-9]+,\s*[atx][0-9]+ ** or\s+a0,\s*[atx][0-9]+,\s*[atx][0-9]+ -** slliw\s+a0,\s*a0,\s*24 -** sraiw\s+a0,\s*a0,\s*24 ** ret */ -DEF_SAT_S_ADD_FMT_1(int8_t, uint8_t, INT8_MIN, INT8_MAX) +DEF_SAT_S_ADD_FMT_1(int64_t, uint64_t, INT64_MIN, INT64_MAX) /* { dg-final { scan-rtl-dump-times ".SAT_ADD " 2 "expand" } } */