mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-11-27 07:31:28 +00:00
[RISCV] Remove 'experimental-' from extension name in diagnostic message.
I'm not sure how to test this because the intrinsic availability already seems to check this.
This commit is contained in:
parent
47b0052f31
commit
73beefc5d7
@ -5323,9 +5323,9 @@ bool Sema::CheckRISCVBuiltinFunctionCall(const TargetInfo &TI,
|
|||||||
QualType Op3Type = TheCall->getArg(2)->getType();
|
QualType Op3Type = TheCall->getArg(2)->getType();
|
||||||
uint64_t ElemSize = Op1Type->isRVVType(32, false) ? 32 : 64;
|
uint64_t ElemSize = Op1Type->isRVVType(32, false) ? 32 : 64;
|
||||||
if (ElemSize == 64 && !TI.hasFeature("experimental-zvknhb"))
|
if (ElemSize == 64 && !TI.hasFeature("experimental-zvknhb"))
|
||||||
return
|
return Diag(TheCall->getBeginLoc(),
|
||||||
Diag(TheCall->getBeginLoc(), diag::err_riscv_type_requires_extension)
|
diag::err_riscv_type_requires_extension)
|
||||||
<< Op1Type << "experimental-zvknhb";
|
<< Op1Type << "zvknhb";
|
||||||
|
|
||||||
return CheckInvalidVLENandLMUL(TI, TheCall, *this, Op1Type, ElemSize << 2) ||
|
return CheckInvalidVLENandLMUL(TI, TheCall, *this, Op1Type, ElemSize << 2) ||
|
||||||
CheckInvalidVLENandLMUL(TI, TheCall, *this, Op2Type, ElemSize << 2) ||
|
CheckInvalidVLENandLMUL(TI, TheCall, *this, Op2Type, ElemSize << 2) ||
|
||||||
|
Loading…
Reference in New Issue
Block a user