[RISCV] Add '32bit' feature to rv32 only builtins.
authorCraig Topper <craig.topper@sifive.com>
Tue, 6 Sep 2022 21:45:17 +0000 (14:45 -0700)
committerCraig Topper <craig.topper@sifive.com>
Tue, 6 Sep 2022 21:46:35 +0000 (14:46 -0700)
commit7440e2274fbd840178cf73060201e6a2e225c5d1
tree8b9114ca99303bd70948057ee10616000e8b03b1
parentf3502afe852693a19848e9e328f2c2a55fc9e9bb
[RISCV] Add '32bit' feature to rv32 only builtins.

The backend now has a 32bit feature as part of the recent mtune
patch. We can now use that make our rv32-only builtin error checking
work the same way as rv64-only errors.

Reviewed By: kito-cheng

Differential Revision: https://reviews.llvm.org/D132192
clang/include/clang/Basic/BuiltinsRISCV.def
clang/lib/Basic/Targets/RISCV.cpp
clang/lib/Sema/SemaChecking.cpp
clang/test/CodeGen/RISCV/rvb-intrinsics/riscv64-zbkb-error.c [new file with mode: 0644]
clang/test/Driver/riscv-default-features.c