From patchwork Sat Mar 30 12:07:06 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Li, Pan2" X-Patchwork-Id: 1918075 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=A5yTjrOU; 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 4V6GHl5l7wz1yWv for ; Sat, 30 Mar 2024 23:07:46 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id E06993858C55 for ; Sat, 30 Mar 2024 12:07:42 +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.21]) by sourceware.org (Postfix) with ESMTPS id 21DCF3858D28 for ; Sat, 30 Mar 2024 12:07:20 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 21DCF3858D28 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 21DCF3858D28 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=198.175.65.21 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1711800443; cv=none; b=XBb5vik8PBG5yDQ0g24bcMND2q6kVKg1n56dqd5iYjcXzJZkrJ1wTcswfw+zNK6wI63A+UmmEHTRianp+1HlUFrjlKo6QH84v6nVB4/C/wbKAFypp9TKvjMxTyjPWomfxpORpNhIKndmpCmXDt/BBlISilBnSTE7XdJoIEbldl8= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1711800443; c=relaxed/simple; bh=zaqmnkoEv2KwnjrsRE9o9E0PMCHxR4QtIGacWPUiFhk=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=pJBgNrOsJeSlhoco1IF5juhlUv0I/hWmXYNtIIdsHmQcJIjwFi7Dvgyl6uszoBgxiDRaQu/KSCwK7mIkxDkOQZQYJXNuiKBzyw59PR0XrSqix22rfXdhn9pdO9nQPZfKZEYjOVpmKVylU2RvlHYw+rDMoQa5E/ltNHqBd+L2RO4= 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=1711800441; x=1743336441; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=zaqmnkoEv2KwnjrsRE9o9E0PMCHxR4QtIGacWPUiFhk=; b=A5yTjrOUP2cU+Avzk6ZdGFuBwWpODgZw3YHqlAtgHlrC7zgwFcYspa1E j0fZzdRRgAiC9nza6IUjTZnLdxNWrNUQKdPN9hnppG9x0C1plE+IvrZZV L/o4UQuAcdHtc+s/YS6wInOhyb61YkHX6iNd7/kouRdDp++hwpzsDyUFj NY9rh+nEKJ5Jp6yKH/UHpKArdv9MaPy2QgXcOXtGnsEAbiM5JQ0tkD1IM 3JA5qGm0ERg1N+l3YJ8XDzP4UwiZq5A1dSJJcHbIpOFgv3OXdCMAbDY0s jjy2/HurXCZk4GjbpU9EwrLwFEHk3H3iV4IOBh+N2SR340gkbUbdUokWp Q==; X-CSE-ConnectionGUID: ypDYZS+1TxKA9qZ91QFCVg== X-CSE-MsgGUID: xRmyr1fjRPuBMLyLxs2y6Q== X-IronPort-AV: E=McAfee;i="6600,9927,11028"; a="6913626" X-IronPort-AV: E=Sophos;i="6.07,166,1708416000"; d="scan'208";a="6913626" Received: from orviesa003.jf.intel.com ([10.64.159.143]) by orvoesa113.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Mar 2024 05:07:19 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,166,1708416000"; d="scan'208";a="21867638" Received: from shvmail02.sh.intel.com ([10.239.244.9]) by orviesa003.jf.intel.com with ESMTP; 30 Mar 2024 05:07:17 -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 6A9B21007EBA; Sat, 30 Mar 2024 20:07:16 +0800 (CST) From: pan2.li@intel.com To: gcc-patches@gcc.gnu.org Cc: juzhe.zhong@rivai.ai, kito.cheng@gmail.com, yanzhang.wang@intel.com, Pan Li Subject: [PATCH] RISC-V: Fix misspelled term builtin in error message Date: Sat, 30 Mar 2024 20:07:06 +0800 Message-Id: <20240330120706.2382857-1-pan2.li@intel.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Spam-Status: No, score=-11.7 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_SHORT, RCVD_IN_DNSWL_LOW, 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 This patch would like to fix below misspelled term in error message. ../../gcc/config/riscv/riscv-vector-builtins.cc:4592:16: error: misspelled term 'builtin function' in format; use 'built-in function' instead [-Werror=format-diag] 4592 | "builtin function %qE requires the V ISA extension", exp); The below tests are passed for this patch. * The riscv regression test on rvv.exp and riscv.exp. gcc/ChangeLog: * config/riscv/riscv-vector-builtins.cc (expand_builtin): Take the term built-in over builtin. gcc/testsuite/ChangeLog: * gcc.target/riscv/rvv/base/target_attribute_v_with_intrinsic-7.c: Adjust test dg-error. * gcc.target/riscv/rvv/base/target_attribute_v_with_intrinsic-8.c: Ditto. Signed-off-by: Pan Li --- gcc/config/riscv/riscv-vector-builtins.cc | 2 +- .../riscv/rvv/base/target_attribute_v_with_intrinsic-7.c | 2 +- .../riscv/rvv/base/target_attribute_v_with_intrinsic-8.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gcc/config/riscv/riscv-vector-builtins.cc b/gcc/config/riscv/riscv-vector-builtins.cc index e07373d8b57..db9246eed2d 100644 --- a/gcc/config/riscv/riscv-vector-builtins.cc +++ b/gcc/config/riscv/riscv-vector-builtins.cc @@ -4589,7 +4589,7 @@ expand_builtin (unsigned int code, tree exp, rtx target) if (!TARGET_VECTOR) error_at (EXPR_LOCATION (exp), - "builtin function %qE requires the V ISA extension", exp); + "built-in function %qE requires the V ISA extension", exp); return function_expander (rfn.instance, rfn.decl, exp, target).expand (); } diff --git a/gcc/testsuite/gcc.target/riscv/rvv/base/target_attribute_v_with_intrinsic-7.c b/gcc/testsuite/gcc.target/riscv/rvv/base/target_attribute_v_with_intrinsic-7.c index 520b2e59fae..a4cd67f4f95 100644 --- a/gcc/testsuite/gcc.target/riscv/rvv/base/target_attribute_v_with_intrinsic-7.c +++ b/gcc/testsuite/gcc.target/riscv/rvv/base/target_attribute_v_with_intrinsic-7.c @@ -5,5 +5,5 @@ size_t test_1 (size_t vl) { - return __riscv_vsetvl_e8m4 (vl); /* { dg-error {builtin function '__riscv_vsetvl_e8m4\(vl\)' requires the V ISA extension} } */ + return __riscv_vsetvl_e8m4 (vl); /* { dg-error {built-in function '__riscv_vsetvl_e8m4\(vl\)' requires the V ISA extension} } */ } diff --git a/gcc/testsuite/gcc.target/riscv/rvv/base/target_attribute_v_with_intrinsic-8.c b/gcc/testsuite/gcc.target/riscv/rvv/base/target_attribute_v_with_intrinsic-8.c index 9032d9d0b43..06ed9a9eddc 100644 --- a/gcc/testsuite/gcc.target/riscv/rvv/base/target_attribute_v_with_intrinsic-8.c +++ b/gcc/testsuite/gcc.target/riscv/rvv/base/target_attribute_v_with_intrinsic-8.c @@ -19,5 +19,5 @@ test_2 () size_t test_3 (size_t vl) { - return __riscv_vsetvl_e8m4 (vl); /* { dg-error {builtin function '__riscv_vsetvl_e8m4\(vl\)' requires the V ISA extension} } */ + return __riscv_vsetvl_e8m4 (vl); /* { dg-error {built-in function '__riscv_vsetvl_e8m4\(vl\)' requires the V ISA extension} } */ }