From 9ea7e4f7c14267ada92aa6e04d7f460d2562bf19 Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Wed, 7 Sep 2022 10:29:58 -0700 Subject: [PATCH] [RISCV] Remove unnecessary word from error message. --- clang/include/clang/Basic/DiagnosticSemaKinds.td | 2 +- clang/test/CodeGen/RISCV/rvb-intrinsics/riscv32-zbb-error.c | 2 +- clang/test/CodeGen/RISCV/rvb-intrinsics/riscv64-zbkb-error.c | 4 ++-- clang/test/CodeGen/RISCV/rvv-intrinsics/rvv-error.c | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/clang/include/clang/Basic/DiagnosticSemaKinds.td b/clang/include/clang/Basic/DiagnosticSemaKinds.td index 15a4e2aefdb7..43e70ece8c54 100644 --- a/clang/include/clang/Basic/DiagnosticSemaKinds.td +++ b/clang/include/clang/Basic/DiagnosticSemaKinds.td @@ -11636,7 +11636,7 @@ def warn_tcb_enforcement_violation : Warning< // RISC-V builtin required extension warning def err_riscv_builtin_requires_extension : Error< - "builtin requires at least one of the following extensions support to be enabled : %0">; + "builtin requires at least one of the following extensions to be enabled : %0">; def err_riscv_builtin_invalid_lmul : Error< "LMUL argument must be in the range [0,3] or [5,7]">; diff --git a/clang/test/CodeGen/RISCV/rvb-intrinsics/riscv32-zbb-error.c b/clang/test/CodeGen/RISCV/rvb-intrinsics/riscv32-zbb-error.c index a544434105c8..778141311b41 100644 --- a/clang/test/CodeGen/RISCV/rvb-intrinsics/riscv32-zbb-error.c +++ b/clang/test/CodeGen/RISCV/rvb-intrinsics/riscv32-zbb-error.c @@ -2,5 +2,5 @@ // RUN: %clang_cc1 -triple riscv32 -target-feature +zbb -verify %s -o - int orc_b_64(int a) { - return __builtin_riscv_orc_b_64(a); // expected-error {{builtin requires at least one of the following extensions support to be enabled : 'RV64'}} + return __builtin_riscv_orc_b_64(a); // expected-error {{builtin requires at least one of the following extensions to be enabled : 'RV64'}} } diff --git a/clang/test/CodeGen/RISCV/rvb-intrinsics/riscv64-zbkb-error.c b/clang/test/CodeGen/RISCV/rvb-intrinsics/riscv64-zbkb-error.c index d372435b5d1f..a932d56595b2 100644 --- a/clang/test/CodeGen/RISCV/rvb-intrinsics/riscv64-zbkb-error.c +++ b/clang/test/CodeGen/RISCV/rvb-intrinsics/riscv64-zbkb-error.c @@ -3,10 +3,10 @@ int zip(int rs1) { - return __builtin_riscv_zip_32(rs1); // expected-error {{builtin requires at least one of the following extensions support to be enabled : 'RV32'}} + return __builtin_riscv_zip_32(rs1); // expected-error {{builtin requires at least one of the following extensions to be enabled : 'RV32'}} } int unzip(int rs1) { - return __builtin_riscv_unzip_32(rs1); // expected-error {{builtin requires at least one of the following extensions support to be enabled : 'RV32'}} + return __builtin_riscv_unzip_32(rs1); // expected-error {{builtin requires at least one of the following extensions to be enabled : 'RV32'}} } diff --git a/clang/test/CodeGen/RISCV/rvv-intrinsics/rvv-error.c b/clang/test/CodeGen/RISCV/rvv-intrinsics/rvv-error.c index 4436744a3c26..67f188e46986 100644 --- a/clang/test/CodeGen/RISCV/rvv-intrinsics/rvv-error.c +++ b/clang/test/CodeGen/RISCV/rvv-intrinsics/rvv-error.c @@ -11,7 +11,7 @@ // CHECK-RV64V-NEXT: ret i32 [[CONV]] // -// CHECK-RV64-ERR: error: builtin requires at least one of the following extensions support to be enabled : 'Zve32x' +// CHECK-RV64-ERR: error: builtin requires at least one of the following extensions to be enabled : 'Zve32x' int test() { return __builtin_rvv_vsetvli(1, 0, 0);