From patchwork Tue Aug 20 13:11:16 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Li, Pan2" X-Patchwork-Id: 1974409 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=Mt8+NRje; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=8.43.85.97; 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 [8.43.85.97]) (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 4Wp8y55RK8z1yYZ for ; Tue, 20 Aug 2024 23:12:13 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 02522384A06C for ; Tue, 20 Aug 2024 13:12:12 +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.18]) by sourceware.org (Postfix) with ESMTPS id C96EC3844778 for ; Tue, 20 Aug 2024 13:11:45 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org C96EC3844778 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 C96EC3844778 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=198.175.65.18 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1724159509; cv=none; b=dv1jNUn/HC55HuM14IpjEOYIScWv0AqJ+gaa0Xc6boNe+Q2LRxVAjgPwoMTHtgy36LK9r50jHAWWp9oxasFRKLcaj9RktSfzAvIUMsX1Ec/bopuUU6fOKKvwsgjAfHvxUt5SAQsJE2+0PmmC+bEu10ngyMp4MDOT0XJCzanyYME= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1724159509; c=relaxed/simple; bh=KrK8Uswy/2oKTJ01+YcwQ3HK65M3yICCSR+J1UnaLCk=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=SYWaet82hG/k/PnGdRQNnjPc7U+Uez9wWVw01ybusDXl96n6hASp4RnE0ekvqeVsvFeZBLrk2+XUjfFD6mnl3MLJ/xqSncmFPPksU9N+iXhOYlVwmfU3uW1jz8xLr2wQdss4gHRnUuytDbTP5wxtOrm3ACfOthUfwf645Z+JXhU= 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=1724159506; x=1755695506; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=KrK8Uswy/2oKTJ01+YcwQ3HK65M3yICCSR+J1UnaLCk=; b=Mt8+NRje8xmsRJbqicy8422Suq78Sy3vWWj6m9jelise0HDtZDkBJl6g lMZo2nYInzihLhUEgt9XhU1FQGPzSvnong/CzkFhirbho9cj7K/t5nRwE meG6NMzJhvkXYofq/eSM7kitMSoCcqn95chgww/x7szCkvd1f1KGJ3WLN 137M6uZ02DgwmtqxvdlcymVCQwSy8ouOloMfl4pwZyOmxmlJOB4tRLG6t flxAC6esM/V3ix/efsh2nozEjUO+ei5Gd8qwtqAsBgzcV9VCr5e8dO3BA nl1h6Nqtw61L0kCtPuQyV1d1RSVZQg5475xjVnC9WaW1AWELUUrhmJGJp w==; X-CSE-ConnectionGUID: uNG4krw5Q2Wp87rQ9OhdUA== X-CSE-MsgGUID: iyI43o2oQs6g7zBDoObB8g== X-IronPort-AV: E=McAfee;i="6700,10204,11170"; a="22604341" X-IronPort-AV: E=Sophos;i="6.10,162,1719903600"; d="scan'208";a="22604341" Received: from fmviesa006.fm.intel.com ([10.60.135.146]) by orvoesa110.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Aug 2024 06:11:45 -0700 X-CSE-ConnectionGUID: La2DijMOQ/SGzl9uyyCdDA== X-CSE-MsgGUID: VbsJXo14SyWr0se3V6I1HQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.10,162,1719903600"; d="scan'208";a="60384870" Received: from panli.sh.intel.com ([10.239.154.73]) by fmviesa006.fm.intel.com with ESMTP; 20 Aug 2024 06:11:42 -0700 From: pan2.li@intel.com To: gcc-patches@gcc.gnu.org Cc: richard.guenther@gmail.com, juzhe.zhong@rivai.ai, kito.cheng@gmail.com, jeffreyalaw@gmail.com, rdapp.gcc@gmail.com, Pan Li Subject: [PATCH v1] RISC-V: Fix one typo in .SAT_TRUNC test func name [NFC] Date: Tue, 20 Aug 2024 21:11:16 +0800 Message-ID: <20240820131116.2742818-1-pan2.li@intel.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 X-Spam-Status: No, score=-11.6 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.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 Fix one typo `sat_truc` to `sat_trunc`, as well as `SAT_TRUC` to `SAT_TRUNC`. gcc/testsuite/ChangeLog: * gcc.target/riscv/sat_arith.h: Fix SAT_TRUNC typo. * gcc.target/riscv/sat_u_trunc-1.c: Ditto. * gcc.target/riscv/sat_u_trunc-13.c: Ditto. * gcc.target/riscv/sat_u_trunc-14.c: Ditto. * gcc.target/riscv/sat_u_trunc-15.c: Ditto. * gcc.target/riscv/sat_u_trunc-2.c: Ditto. * gcc.target/riscv/sat_u_trunc-3.c: Ditto. * gcc.target/riscv/sat_u_trunc-4.c: Ditto. * gcc.target/riscv/sat_u_trunc-5.c: Ditto. * gcc.target/riscv/sat_u_trunc-6.c: Ditto. * gcc.target/riscv/sat_u_trunc-7.c: Ditto. * gcc.target/riscv/sat_u_trunc-8.c: Ditto. * gcc.target/riscv/sat_u_trunc-9.c: Ditto. * gcc.target/riscv/sat_u_trunc-run-1.c: Ditto. * gcc.target/riscv/sat_u_trunc-run-13.c: Ditto. * gcc.target/riscv/sat_u_trunc-run-14.c: Ditto. * gcc.target/riscv/sat_u_trunc-run-15.c: Ditto. * gcc.target/riscv/sat_u_trunc-run-2.c: Ditto. * gcc.target/riscv/sat_u_trunc-run-3.c: Ditto. * gcc.target/riscv/sat_u_trunc-run-4.c: Ditto. * gcc.target/riscv/sat_u_trunc-run-5.c: Ditto. * gcc.target/riscv/sat_u_trunc-run-6.c: Ditto. * gcc.target/riscv/sat_u_trunc-run-7.c: Ditto. * gcc.target/riscv/sat_u_trunc-run-8.c: Ditto. * gcc.target/riscv/sat_u_trunc-run-9.c: Ditto. Signed-off-by: Pan Li --- gcc/testsuite/gcc.target/riscv/sat_arith.h | 30 +++++++++---------- .../gcc.target/riscv/sat_u_trunc-1.c | 4 +-- .../gcc.target/riscv/sat_u_trunc-13.c | 4 +-- .../gcc.target/riscv/sat_u_trunc-14.c | 4 +-- .../gcc.target/riscv/sat_u_trunc-15.c | 4 +-- .../gcc.target/riscv/sat_u_trunc-2.c | 4 +-- .../gcc.target/riscv/sat_u_trunc-3.c | 4 +-- .../gcc.target/riscv/sat_u_trunc-4.c | 4 +-- .../gcc.target/riscv/sat_u_trunc-5.c | 4 +-- .../gcc.target/riscv/sat_u_trunc-6.c | 4 +-- .../gcc.target/riscv/sat_u_trunc-7.c | 4 +-- .../gcc.target/riscv/sat_u_trunc-8.c | 4 +-- .../gcc.target/riscv/sat_u_trunc-9.c | 4 +-- .../gcc.target/riscv/sat_u_trunc-run-1.c | 4 +-- .../gcc.target/riscv/sat_u_trunc-run-13.c | 4 +-- .../gcc.target/riscv/sat_u_trunc-run-14.c | 4 +-- .../gcc.target/riscv/sat_u_trunc-run-15.c | 4 +-- .../gcc.target/riscv/sat_u_trunc-run-2.c | 4 +-- .../gcc.target/riscv/sat_u_trunc-run-3.c | 4 +-- .../gcc.target/riscv/sat_u_trunc-run-4.c | 4 +-- .../gcc.target/riscv/sat_u_trunc-run-5.c | 4 +-- .../gcc.target/riscv/sat_u_trunc-run-6.c | 4 +-- .../gcc.target/riscv/sat_u_trunc-run-7.c | 4 +-- .../gcc.target/riscv/sat_u_trunc-run-8.c | 4 +-- .../gcc.target/riscv/sat_u_trunc-run-9.c | 4 +-- 25 files changed, 63 insertions(+), 63 deletions(-) diff --git a/gcc/testsuite/gcc.target/riscv/sat_arith.h b/gcc/testsuite/gcc.target/riscv/sat_arith.h index cf055410fd1..91853b60f59 100644 --- a/gcc/testsuite/gcc.target/riscv/sat_arith.h +++ b/gcc/testsuite/gcc.target/riscv/sat_arith.h @@ -218,40 +218,40 @@ sat_u_sub_##T##_fmt_12 (T x, T y) \ /* Saturation Truncate (unsigned and signed) */ /******************************************************************************/ -#define DEF_SAT_U_TRUC_FMT_1(NT, WT) \ +#define DEF_SAT_U_TRUNC_FMT_1(NT, WT) \ NT __attribute__((noinline)) \ -sat_u_truc_##WT##_to_##NT##_fmt_1 (WT x) \ +sat_u_trunc_##WT##_to_##NT##_fmt_1 (WT x) \ { \ bool overflow = x > (WT)(NT)(-1); \ return ((NT)x) | (NT)-overflow; \ } -#define DEF_SAT_U_TRUC_FMT_1_WRAP(NT, WT) DEF_SAT_U_TRUC_FMT_1(NT, WT) +#define DEF_SAT_U_TRUNC_FMT_1_WRAP(NT, WT) DEF_SAT_U_TRUNC_FMT_1(NT, WT) -#define DEF_SAT_U_TRUC_FMT_2(NT, WT) \ +#define DEF_SAT_U_TRUNC_FMT_2(NT, WT) \ NT __attribute__((noinline)) \ -sat_u_truc_##WT##_to_##NT##_fmt_2 (WT x) \ +sat_u_trunc_##WT##_to_##NT##_fmt_2 (WT x) \ { \ WT max = (WT)(NT)-1; \ return x > max ? (NT) max : (NT)x; \ } -#define DEF_SAT_U_TRUC_FMT_2_WRAP(NT, WT) DEF_SAT_U_TRUC_FMT_2(NT, WT) +#define DEF_SAT_U_TRUNC_FMT_2_WRAP(NT, WT) DEF_SAT_U_TRUNC_FMT_2(NT, WT) -#define DEF_SAT_U_TRUC_FMT_3(NT, WT) \ +#define DEF_SAT_U_TRUNC_FMT_3(NT, WT) \ NT __attribute__((noinline)) \ -sat_u_truc_##WT##_to_##NT##_fmt_3 (WT x) \ +sat_u_trunc_##WT##_to_##NT##_fmt_3 (WT x) \ { \ WT max = (WT)(NT)-1; \ return x <= max ? (NT)x : (NT) max; \ } -#define DEF_SAT_U_TRUC_FMT_3_WRAP(NT, WT) DEF_SAT_U_TRUC_FMT_3(NT, WT) +#define DEF_SAT_U_TRUNC_FMT_3_WRAP(NT, WT) DEF_SAT_U_TRUNC_FMT_3(NT, WT) -#define RUN_SAT_U_TRUC_FMT_1(NT, WT, x) sat_u_truc_##WT##_to_##NT##_fmt_1 (x) -#define RUN_SAT_U_TRUC_FMT_1_WRAP(NT, WT, x) RUN_SAT_U_TRUC_FMT_1(NT, WT, x) +#define RUN_SAT_U_TRUNC_FMT_1(NT, WT, x) sat_u_trunc_##WT##_to_##NT##_fmt_1 (x) +#define RUN_SAT_U_TRUNC_FMT_1_WRAP(NT, WT, x) RUN_SAT_U_TRUNC_FMT_1(NT, WT, x) -#define RUN_SAT_U_TRUC_FMT_2(NT, WT, x) sat_u_truc_##WT##_to_##NT##_fmt_2 (x) -#define RUN_SAT_U_TRUC_FMT_2_WRAP(NT, WT, x) RUN_SAT_U_TRUC_FMT_2(NT, WT, x) +#define RUN_SAT_U_TRUNC_FMT_2(NT, WT, x) sat_u_trunc_##WT##_to_##NT##_fmt_2 (x) +#define RUN_SAT_U_TRUNC_FMT_2_WRAP(NT, WT, x) RUN_SAT_U_TRUNC_FMT_2(NT, WT, x) -#define RUN_SAT_U_TRUC_FMT_3(NT, WT, x) sat_u_truc_##WT##_to_##NT##_fmt_3 (x) -#define RUN_SAT_U_TRUC_FMT_3_WRAP(NT, WT, x) RUN_SAT_U_TRUC_FMT_3(NT, WT, x) +#define RUN_SAT_U_TRUNC_FMT_3(NT, WT, x) sat_u_trunc_##WT##_to_##NT##_fmt_3 (x) +#define RUN_SAT_U_TRUNC_FMT_3_WRAP(NT, WT, x) RUN_SAT_U_TRUNC_FMT_3(NT, WT, x) #endif diff --git a/gcc/testsuite/gcc.target/riscv/sat_u_trunc-1.c b/gcc/testsuite/gcc.target/riscv/sat_u_trunc-1.c index 354831005b5..84836070411 100644 --- a/gcc/testsuite/gcc.target/riscv/sat_u_trunc-1.c +++ b/gcc/testsuite/gcc.target/riscv/sat_u_trunc-1.c @@ -5,13 +5,13 @@ #include "sat_arith.h" /* -** sat_u_truc_uint16_t_to_uint8_t_fmt_1: +** sat_u_trunc_uint16_t_to_uint8_t_fmt_1: ** sltiu\s+[atx][0-9]+,\s*a0,\s*255 ** addi\s+[atx][0-9]+,\s*[atx][0-9]+,\s*-1 ** or\s+[atx][0-9]+,\s*[atx][0-9]+,\s*[atx][0-9]+ ** andi\s+[atx][0-9]+,\s*[atx][0-9]+,\s*0xff ** ret */ -DEF_SAT_U_TRUC_FMT_1(uint8_t, uint16_t) +DEF_SAT_U_TRUNC_FMT_1(uint8_t, uint16_t) /* { dg-final { scan-rtl-dump-times ".SAT_TRUNC " 2 "expand" } } */ diff --git a/gcc/testsuite/gcc.target/riscv/sat_u_trunc-13.c b/gcc/testsuite/gcc.target/riscv/sat_u_trunc-13.c index 58910793a80..060350ada45 100644 --- a/gcc/testsuite/gcc.target/riscv/sat_u_trunc-13.c +++ b/gcc/testsuite/gcc.target/riscv/sat_u_trunc-13.c @@ -5,13 +5,13 @@ #include "sat_arith.h" /* -** sat_u_truc_uint16_t_to_uint8_t_fmt_3: +** sat_u_trunc_uint16_t_to_uint8_t_fmt_3: ** sltiu\s+[atx][0-9]+,\s*a0,\s*255 ** addi\s+[atx][0-9]+,\s*[atx][0-9]+,\s*-1 ** or\s+[atx][0-9]+,\s*[atx][0-9]+,\s*[atx][0-9]+ ** andi\s+[atx][0-9]+,\s*[atx][0-9]+,\s*0xff ** ret */ -DEF_SAT_U_TRUC_FMT_3(uint8_t, uint16_t) +DEF_SAT_U_TRUNC_FMT_3(uint8_t, uint16_t) /* { dg-final { scan-rtl-dump-times ".SAT_TRUNC " 2 "expand" } } */ diff --git a/gcc/testsuite/gcc.target/riscv/sat_u_trunc-14.c b/gcc/testsuite/gcc.target/riscv/sat_u_trunc-14.c index 236ea1d45f7..a21c40c26c6 100644 --- a/gcc/testsuite/gcc.target/riscv/sat_u_trunc-14.c +++ b/gcc/testsuite/gcc.target/riscv/sat_u_trunc-14.c @@ -5,7 +5,7 @@ #include "sat_arith.h" /* -** sat_u_truc_uint32_t_to_uint16_t_fmt_3: +** sat_u_trunc_uint32_t_to_uint16_t_fmt_3: ** li\s+[atx][0-9]+,\s*65536 ** addi\s+[atx][0-9]+,\s*[atx][0-9]+,\s*-1 ** sltu\s+[atx][0-9]+,\s*a0,\s*[atx][0-9]+ @@ -15,6 +15,6 @@ ** srli\s+a0,\s*a0,\s*48 ** ret */ -DEF_SAT_U_TRUC_FMT_3(uint16_t, uint32_t) +DEF_SAT_U_TRUNC_FMT_3(uint16_t, uint32_t) /* { dg-final { scan-rtl-dump-times ".SAT_TRUNC " 2 "expand" } } */ diff --git a/gcc/testsuite/gcc.target/riscv/sat_u_trunc-15.c b/gcc/testsuite/gcc.target/riscv/sat_u_trunc-15.c index 33c3686c053..229371f1c5e 100644 --- a/gcc/testsuite/gcc.target/riscv/sat_u_trunc-15.c +++ b/gcc/testsuite/gcc.target/riscv/sat_u_trunc-15.c @@ -5,7 +5,7 @@ #include "sat_arith.h" /* -** sat_u_truc_uint64_t_to_uint32_t_fmt_3: +** sat_u_trunc_uint64_t_to_uint32_t_fmt_3: ** li\s+[atx][0-9]+,\s*-1 ** srli\s+[atx][0-9]+,\s*[atx][0-9]+,\s*32 ** sltu\s+[atx][0-9]+,\s*a0,\s*[atx][0-9]+ @@ -14,6 +14,6 @@ ** sext.w\s+a0,\s*a0 ** ret */ -DEF_SAT_U_TRUC_FMT_3(uint32_t, uint64_t) +DEF_SAT_U_TRUNC_FMT_3(uint32_t, uint64_t) /* { dg-final { scan-rtl-dump-times ".SAT_TRUNC " 2 "expand" } } */ diff --git a/gcc/testsuite/gcc.target/riscv/sat_u_trunc-2.c b/gcc/testsuite/gcc.target/riscv/sat_u_trunc-2.c index 0001d8a9ed9..68d4e56c1f3 100644 --- a/gcc/testsuite/gcc.target/riscv/sat_u_trunc-2.c +++ b/gcc/testsuite/gcc.target/riscv/sat_u_trunc-2.c @@ -5,7 +5,7 @@ #include "sat_arith.h" /* -** sat_u_truc_uint32_t_to_uint16_t_fmt_1: +** sat_u_trunc_uint32_t_to_uint16_t_fmt_1: ** li\s+[atx][0-9]+,\s*65536 ** addi\s+[atx][0-9]+,\s*[atx][0-9]+,\s*-1 ** sltu\s+[atx][0-9]+,\s*a0,\s*[atx][0-9]+ @@ -15,6 +15,6 @@ ** srli\s+a0,\s*a0,\s*48 ** ret */ -DEF_SAT_U_TRUC_FMT_1(uint16_t, uint32_t) +DEF_SAT_U_TRUNC_FMT_1(uint16_t, uint32_t) /* { dg-final { scan-rtl-dump-times ".SAT_TRUNC " 2 "expand" } } */ diff --git a/gcc/testsuite/gcc.target/riscv/sat_u_trunc-3.c b/gcc/testsuite/gcc.target/riscv/sat_u_trunc-3.c index 4359935a9d7..a77f4d3fdbe 100644 --- a/gcc/testsuite/gcc.target/riscv/sat_u_trunc-3.c +++ b/gcc/testsuite/gcc.target/riscv/sat_u_trunc-3.c @@ -5,7 +5,7 @@ #include "sat_arith.h" /* -** sat_u_truc_uint64_t_to_uint32_t_fmt_1: +** sat_u_trunc_uint64_t_to_uint32_t_fmt_1: ** li\s+[atx][0-9]+,\s*-1 ** srli\s+[atx][0-9]+,\s*[atx][0-9]+,\s*32 ** sltu\s+[atx][0-9]+,\s*a0,\s*[atx][0-9]+ @@ -14,6 +14,6 @@ ** sext.w\s+a0,\s*a0 ** ret */ -DEF_SAT_U_TRUC_FMT_1(uint32_t, uint64_t) +DEF_SAT_U_TRUNC_FMT_1(uint32_t, uint64_t) /* { dg-final { scan-rtl-dump-times ".SAT_TRUNC " 2 "expand" } } */ diff --git a/gcc/testsuite/gcc.target/riscv/sat_u_trunc-4.c b/gcc/testsuite/gcc.target/riscv/sat_u_trunc-4.c index 7d84b2689ce..f16af46294f 100644 --- a/gcc/testsuite/gcc.target/riscv/sat_u_trunc-4.c +++ b/gcc/testsuite/gcc.target/riscv/sat_u_trunc-4.c @@ -5,13 +5,13 @@ #include "sat_arith.h" /* -** sat_u_truc_uint32_t_to_uint8_t_fmt_1: +** sat_u_trunc_uint32_t_to_uint8_t_fmt_1: ** sltiu\s+[atx][0-9]+,\s*a0,\s*255 ** addi\s+[atx][0-9]+,\s*[atx][0-9]+,\s*-1 ** or\s+[atx][0-9]+,\s*[atx][0-9]+,\s*[atx][0-9]+ ** andi\s+[atx][0-9]+,\s*[atx][0-9]+,\s*0xff ** ret */ -DEF_SAT_U_TRUC_FMT_1(uint8_t, uint32_t) +DEF_SAT_U_TRUNC_FMT_1(uint8_t, uint32_t) /* { dg-final { scan-rtl-dump-times ".SAT_TRUNC " 2 "expand" } } */ diff --git a/gcc/testsuite/gcc.target/riscv/sat_u_trunc-5.c b/gcc/testsuite/gcc.target/riscv/sat_u_trunc-5.c index 87e6c649fbb..f54be149528 100644 --- a/gcc/testsuite/gcc.target/riscv/sat_u_trunc-5.c +++ b/gcc/testsuite/gcc.target/riscv/sat_u_trunc-5.c @@ -5,13 +5,13 @@ #include "sat_arith.h" /* -** sat_u_truc_uint64_t_to_uint8_t_fmt_1: +** sat_u_trunc_uint64_t_to_uint8_t_fmt_1: ** sltiu\s+[atx][0-9]+,\s*a0,\s*255 ** addi\s+[atx][0-9]+,\s*[atx][0-9]+,\s*-1 ** or\s+[atx][0-9]+,\s*[atx][0-9]+,\s*[atx][0-9]+ ** andi\s+[atx][0-9]+,\s*[atx][0-9]+,\s*0xff ** ret */ -DEF_SAT_U_TRUC_FMT_1(uint8_t, uint64_t) +DEF_SAT_U_TRUNC_FMT_1(uint8_t, uint64_t) /* { dg-final { scan-rtl-dump-times ".SAT_TRUNC " 2 "expand" } } */ diff --git a/gcc/testsuite/gcc.target/riscv/sat_u_trunc-6.c b/gcc/testsuite/gcc.target/riscv/sat_u_trunc-6.c index af410916fb2..04d55b6df9f 100644 --- a/gcc/testsuite/gcc.target/riscv/sat_u_trunc-6.c +++ b/gcc/testsuite/gcc.target/riscv/sat_u_trunc-6.c @@ -5,7 +5,7 @@ #include "sat_arith.h" /* -** sat_u_truc_uint64_t_to_uint16_t_fmt_1: +** sat_u_trunc_uint64_t_to_uint16_t_fmt_1: ** li\s+[atx][0-9]+,\s*65536 ** addi\s+[atx][0-9]+,\s*[atx][0-9]+,\s*-1 ** sltu\s+[atx][0-9]+,\s*a0,\s*[atx][0-9]+ @@ -15,6 +15,6 @@ ** srli\s+a0,\s*a0,\s*48 ** ret */ -DEF_SAT_U_TRUC_FMT_1(uint16_t, uint64_t) +DEF_SAT_U_TRUNC_FMT_1(uint16_t, uint64_t) /* { dg-final { scan-rtl-dump-times ".SAT_TRUNC " 2 "expand" } } */ diff --git a/gcc/testsuite/gcc.target/riscv/sat_u_trunc-7.c b/gcc/testsuite/gcc.target/riscv/sat_u_trunc-7.c index 95d513a15fb..5ecd6a835a5 100644 --- a/gcc/testsuite/gcc.target/riscv/sat_u_trunc-7.c +++ b/gcc/testsuite/gcc.target/riscv/sat_u_trunc-7.c @@ -5,13 +5,13 @@ #include "sat_arith.h" /* -** sat_u_truc_uint16_t_to_uint8_t_fmt_2: +** sat_u_trunc_uint16_t_to_uint8_t_fmt_2: ** sltiu\s+[atx][0-9]+,\s*a0,\s*255 ** addi\s+[atx][0-9]+,\s*[atx][0-9]+,\s*-1 ** or\s+[atx][0-9]+,\s*[atx][0-9]+,\s*[atx][0-9]+ ** andi\s+[atx][0-9]+,\s*[atx][0-9]+,\s*0xff ** ret */ -DEF_SAT_U_TRUC_FMT_2(uint8_t, uint16_t) +DEF_SAT_U_TRUNC_FMT_2(uint8_t, uint16_t) /* { dg-final { scan-rtl-dump-times ".SAT_TRUNC " 2 "expand" } } */ diff --git a/gcc/testsuite/gcc.target/riscv/sat_u_trunc-8.c b/gcc/testsuite/gcc.target/riscv/sat_u_trunc-8.c index f168912293d..f88965f2065 100644 --- a/gcc/testsuite/gcc.target/riscv/sat_u_trunc-8.c +++ b/gcc/testsuite/gcc.target/riscv/sat_u_trunc-8.c @@ -5,7 +5,7 @@ #include "sat_arith.h" /* -** sat_u_truc_uint32_t_to_uint16_t_fmt_2: +** sat_u_trunc_uint32_t_to_uint16_t_fmt_2: ** li\s+[atx][0-9]+,\s*65536 ** addi\s+[atx][0-9]+,\s*[atx][0-9]+,\s*-1 ** sltu\s+[atx][0-9]+,\s*a0,\s*[atx][0-9]+ @@ -15,6 +15,6 @@ ** srli\s+a0,\s*a0,\s*48 ** ret */ -DEF_SAT_U_TRUC_FMT_2(uint16_t, uint32_t) +DEF_SAT_U_TRUNC_FMT_2(uint16_t, uint32_t) /* { dg-final { scan-rtl-dump-times ".SAT_TRUNC " 2 "expand" } } */ diff --git a/gcc/testsuite/gcc.target/riscv/sat_u_trunc-9.c b/gcc/testsuite/gcc.target/riscv/sat_u_trunc-9.c index d82363d6aef..a77efb1ce92 100644 --- a/gcc/testsuite/gcc.target/riscv/sat_u_trunc-9.c +++ b/gcc/testsuite/gcc.target/riscv/sat_u_trunc-9.c @@ -5,7 +5,7 @@ #include "sat_arith.h" /* -** sat_u_truc_uint64_t_to_uint32_t_fmt_2: +** sat_u_trunc_uint64_t_to_uint32_t_fmt_2: ** li\s+[atx][0-9]+,\s*-1 ** srli\s+[atx][0-9]+,\s*[atx][0-9]+,\s*32 ** sltu\s+[atx][0-9]+,\s*a0,\s*[atx][0-9]+ @@ -14,6 +14,6 @@ ** sext.w\s+a0,\s*a0 ** ret */ -DEF_SAT_U_TRUC_FMT_2(uint32_t, uint64_t) +DEF_SAT_U_TRUNC_FMT_2(uint32_t, uint64_t) /* { dg-final { scan-rtl-dump-times ".SAT_TRUNC " 2 "expand" } } */ diff --git a/gcc/testsuite/gcc.target/riscv/sat_u_trunc-run-1.c b/gcc/testsuite/gcc.target/riscv/sat_u_trunc-run-1.c index 39a5ce2b675..adaa421b239 100644 --- a/gcc/testsuite/gcc.target/riscv/sat_u_trunc-run-1.c +++ b/gcc/testsuite/gcc.target/riscv/sat_u_trunc-run-1.c @@ -7,10 +7,10 @@ #define T1 uint8_t #define T2 uint16_t -DEF_SAT_U_TRUC_FMT_1_WRAP(T1, T2) +DEF_SAT_U_TRUNC_FMT_1_WRAP(T1, T2) #define DATA TEST_UNARY_DATA_WRAP(T1, T2) #define T TEST_UNARY_STRUCT_DECL(T1, T2) -#define RUN_UNARY(x) RUN_SAT_U_TRUC_FMT_1_WRAP(T1, T2, x) +#define RUN_UNARY(x) RUN_SAT_U_TRUNC_FMT_1_WRAP(T1, T2, x) #include "scalar_sat_unary.h" diff --git a/gcc/testsuite/gcc.target/riscv/sat_u_trunc-run-13.c b/gcc/testsuite/gcc.target/riscv/sat_u_trunc-run-13.c index 6322305c5ed..7011e5040c5 100644 --- a/gcc/testsuite/gcc.target/riscv/sat_u_trunc-run-13.c +++ b/gcc/testsuite/gcc.target/riscv/sat_u_trunc-run-13.c @@ -7,10 +7,10 @@ #define T1 uint8_t #define T2 uint16_t -DEF_SAT_U_TRUC_FMT_3_WRAP(T1, T2) +DEF_SAT_U_TRUNC_FMT_3_WRAP(T1, T2) #define DATA TEST_UNARY_DATA_WRAP(T1, T2) #define T TEST_UNARY_STRUCT_DECL(T1, T2) -#define RUN_UNARY(x) RUN_SAT_U_TRUC_FMT_3_WRAP(T1, T2, x) +#define RUN_UNARY(x) RUN_SAT_U_TRUNC_FMT_3_WRAP(T1, T2, x) #include "scalar_sat_unary.h" diff --git a/gcc/testsuite/gcc.target/riscv/sat_u_trunc-run-14.c b/gcc/testsuite/gcc.target/riscv/sat_u_trunc-run-14.c index a29e887aeeb..8952c06fcc9 100644 --- a/gcc/testsuite/gcc.target/riscv/sat_u_trunc-run-14.c +++ b/gcc/testsuite/gcc.target/riscv/sat_u_trunc-run-14.c @@ -7,10 +7,10 @@ #define T1 uint16_t #define T2 uint32_t -DEF_SAT_U_TRUC_FMT_3_WRAP(T1, T2) +DEF_SAT_U_TRUNC_FMT_3_WRAP(T1, T2) #define DATA TEST_UNARY_DATA_WRAP(T1, T2) #define T TEST_UNARY_STRUCT_DECL(T1, T2) -#define RUN_UNARY(x) RUN_SAT_U_TRUC_FMT_3_WRAP(T1, T2, x) +#define RUN_UNARY(x) RUN_SAT_U_TRUNC_FMT_3_WRAP(T1, T2, x) #include "scalar_sat_unary.h" diff --git a/gcc/testsuite/gcc.target/riscv/sat_u_trunc-run-15.c b/gcc/testsuite/gcc.target/riscv/sat_u_trunc-run-15.c index a29e887aeeb..8952c06fcc9 100644 --- a/gcc/testsuite/gcc.target/riscv/sat_u_trunc-run-15.c +++ b/gcc/testsuite/gcc.target/riscv/sat_u_trunc-run-15.c @@ -7,10 +7,10 @@ #define T1 uint16_t #define T2 uint32_t -DEF_SAT_U_TRUC_FMT_3_WRAP(T1, T2) +DEF_SAT_U_TRUNC_FMT_3_WRAP(T1, T2) #define DATA TEST_UNARY_DATA_WRAP(T1, T2) #define T TEST_UNARY_STRUCT_DECL(T1, T2) -#define RUN_UNARY(x) RUN_SAT_U_TRUC_FMT_3_WRAP(T1, T2, x) +#define RUN_UNARY(x) RUN_SAT_U_TRUNC_FMT_3_WRAP(T1, T2, x) #include "scalar_sat_unary.h" diff --git a/gcc/testsuite/gcc.target/riscv/sat_u_trunc-run-2.c b/gcc/testsuite/gcc.target/riscv/sat_u_trunc-run-2.c index b98114a7dfc..a5f43e93a8d 100644 --- a/gcc/testsuite/gcc.target/riscv/sat_u_trunc-run-2.c +++ b/gcc/testsuite/gcc.target/riscv/sat_u_trunc-run-2.c @@ -7,10 +7,10 @@ #define T1 uint16_t #define T2 uint32_t -DEF_SAT_U_TRUC_FMT_1_WRAP(T1, T2) +DEF_SAT_U_TRUNC_FMT_1_WRAP(T1, T2) #define DATA TEST_UNARY_DATA_WRAP(T1, T2) #define T TEST_UNARY_STRUCT_DECL(T1, T2) -#define RUN_UNARY(x) RUN_SAT_U_TRUC_FMT_1_WRAP(T1, T2, x) +#define RUN_UNARY(x) RUN_SAT_U_TRUNC_FMT_1_WRAP(T1, T2, x) #include "scalar_sat_unary.h" diff --git a/gcc/testsuite/gcc.target/riscv/sat_u_trunc-run-3.c b/gcc/testsuite/gcc.target/riscv/sat_u_trunc-run-3.c index 8a92a8c1f55..a76ae0848da 100644 --- a/gcc/testsuite/gcc.target/riscv/sat_u_trunc-run-3.c +++ b/gcc/testsuite/gcc.target/riscv/sat_u_trunc-run-3.c @@ -7,10 +7,10 @@ #define T1 uint32_t #define T2 uint64_t -DEF_SAT_U_TRUC_FMT_1_WRAP(T1, T2) +DEF_SAT_U_TRUNC_FMT_1_WRAP(T1, T2) #define DATA TEST_UNARY_DATA_WRAP(T1, T2) #define T TEST_UNARY_STRUCT_DECL(T1, T2) -#define RUN_UNARY(x) RUN_SAT_U_TRUC_FMT_1_WRAP(T1, T2, x) +#define RUN_UNARY(x) RUN_SAT_U_TRUNC_FMT_1_WRAP(T1, T2, x) #include "scalar_sat_unary.h" diff --git a/gcc/testsuite/gcc.target/riscv/sat_u_trunc-run-4.c b/gcc/testsuite/gcc.target/riscv/sat_u_trunc-run-4.c index 609f3540555..d05ea792409 100644 --- a/gcc/testsuite/gcc.target/riscv/sat_u_trunc-run-4.c +++ b/gcc/testsuite/gcc.target/riscv/sat_u_trunc-run-4.c @@ -7,10 +7,10 @@ #define T1 uint8_t #define T2 uint32_t -DEF_SAT_U_TRUC_FMT_1_WRAP(T1, T2) +DEF_SAT_U_TRUNC_FMT_1_WRAP(T1, T2) #define DATA TEST_UNARY_DATA_WRAP(T1, T2) #define T TEST_UNARY_STRUCT_DECL(T1, T2) -#define RUN_UNARY(x) RUN_SAT_U_TRUC_FMT_1_WRAP(T1, T2, x) +#define RUN_UNARY(x) RUN_SAT_U_TRUNC_FMT_1_WRAP(T1, T2, x) #include "scalar_sat_unary.h" diff --git a/gcc/testsuite/gcc.target/riscv/sat_u_trunc-run-5.c b/gcc/testsuite/gcc.target/riscv/sat_u_trunc-run-5.c index 8629b3e956e..4fbdc9159cd 100644 --- a/gcc/testsuite/gcc.target/riscv/sat_u_trunc-run-5.c +++ b/gcc/testsuite/gcc.target/riscv/sat_u_trunc-run-5.c @@ -7,10 +7,10 @@ #define T1 uint8_t #define T2 uint64_t -DEF_SAT_U_TRUC_FMT_1_WRAP(T1, T2) +DEF_SAT_U_TRUNC_FMT_1_WRAP(T1, T2) #define DATA TEST_UNARY_DATA_WRAP(T1, T2) #define T TEST_UNARY_STRUCT_DECL(T1, T2) -#define RUN_UNARY(x) RUN_SAT_U_TRUC_FMT_1_WRAP(T1, T2, x) +#define RUN_UNARY(x) RUN_SAT_U_TRUNC_FMT_1_WRAP(T1, T2, x) #include "scalar_sat_unary.h" diff --git a/gcc/testsuite/gcc.target/riscv/sat_u_trunc-run-6.c b/gcc/testsuite/gcc.target/riscv/sat_u_trunc-run-6.c index 6d25869d239..38fcba3749c 100644 --- a/gcc/testsuite/gcc.target/riscv/sat_u_trunc-run-6.c +++ b/gcc/testsuite/gcc.target/riscv/sat_u_trunc-run-6.c @@ -7,10 +7,10 @@ #define T1 uint16_t #define T2 uint64_t -DEF_SAT_U_TRUC_FMT_1_WRAP(T1, T2) +DEF_SAT_U_TRUNC_FMT_1_WRAP(T1, T2) #define DATA TEST_UNARY_DATA_WRAP(T1, T2) #define T TEST_UNARY_STRUCT_DECL(T1, T2) -#define RUN_UNARY(x) RUN_SAT_U_TRUC_FMT_1_WRAP(T1, T2, x) +#define RUN_UNARY(x) RUN_SAT_U_TRUNC_FMT_1_WRAP(T1, T2, x) #include "scalar_sat_unary.h" diff --git a/gcc/testsuite/gcc.target/riscv/sat_u_trunc-run-7.c b/gcc/testsuite/gcc.target/riscv/sat_u_trunc-run-7.c index b98d40fa7ec..93705f97293 100644 --- a/gcc/testsuite/gcc.target/riscv/sat_u_trunc-run-7.c +++ b/gcc/testsuite/gcc.target/riscv/sat_u_trunc-run-7.c @@ -7,10 +7,10 @@ #define T1 uint8_t #define T2 uint16_t -DEF_SAT_U_TRUC_FMT_2_WRAP(T1, T2) +DEF_SAT_U_TRUNC_FMT_2_WRAP(T1, T2) #define DATA TEST_UNARY_DATA_WRAP(T1, T2) #define T TEST_UNARY_STRUCT_DECL(T1, T2) -#define RUN_UNARY(x) RUN_SAT_U_TRUC_FMT_2_WRAP(T1, T2, x) +#define RUN_UNARY(x) RUN_SAT_U_TRUNC_FMT_2_WRAP(T1, T2, x) #include "scalar_sat_unary.h" diff --git a/gcc/testsuite/gcc.target/riscv/sat_u_trunc-run-8.c b/gcc/testsuite/gcc.target/riscv/sat_u_trunc-run-8.c index 486585df7b8..c1164843df9 100644 --- a/gcc/testsuite/gcc.target/riscv/sat_u_trunc-run-8.c +++ b/gcc/testsuite/gcc.target/riscv/sat_u_trunc-run-8.c @@ -7,10 +7,10 @@ #define T1 uint16_t #define T2 uint32_t -DEF_SAT_U_TRUC_FMT_2_WRAP(T1, T2) +DEF_SAT_U_TRUNC_FMT_2_WRAP(T1, T2) #define DATA TEST_UNARY_DATA_WRAP(T1, T2) #define T TEST_UNARY_STRUCT_DECL(T1, T2) -#define RUN_UNARY(x) RUN_SAT_U_TRUC_FMT_2_WRAP(T1, T2, x) +#define RUN_UNARY(x) RUN_SAT_U_TRUNC_FMT_2_WRAP(T1, T2, x) #include "scalar_sat_unary.h" diff --git a/gcc/testsuite/gcc.target/riscv/sat_u_trunc-run-9.c b/gcc/testsuite/gcc.target/riscv/sat_u_trunc-run-9.c index 2099304a0be..4142e8727bd 100644 --- a/gcc/testsuite/gcc.target/riscv/sat_u_trunc-run-9.c +++ b/gcc/testsuite/gcc.target/riscv/sat_u_trunc-run-9.c @@ -7,10 +7,10 @@ #define T1 uint32_t #define T2 uint64_t -DEF_SAT_U_TRUC_FMT_2_WRAP(T1, T2) +DEF_SAT_U_TRUNC_FMT_2_WRAP(T1, T2) #define DATA TEST_UNARY_DATA_WRAP(T1, T2) #define T TEST_UNARY_STRUCT_DECL(T1, T2) -#define RUN_UNARY(x) RUN_SAT_U_TRUC_FMT_2_WRAP(T1, T2, x) +#define RUN_UNARY(x) RUN_SAT_U_TRUNC_FMT_2_WRAP(T1, T2, x) #include "scalar_sat_unary.h"