[RISCV] Remove unnecessary word from error message.

This commit is contained in:
Craig Topper 2022-09-07 10:29:58 -07:00
parent aa484c90cf
commit 9ea7e4f7c1
4 changed files with 5 additions and 5 deletions

View File

@ -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]">;

View File

@ -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'}}
}

View File

@ -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'}}
}

View File

@ -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);