This adds riscv_bitmanip and riscv_crypto.h
This is based on the proposed spec here https://github.com/riscv-non-isa/riscv-c-api-doc/pull/44
Tests that previously used builtins directly now use the intrinsics.
Paths
| Differential D155647
[RISCV] Add C intrinsics for scalar bitmanip and crypto ClosedPublic Authored by craig.topper on Jul 18 2023, 2:57 PM.
Details Summary This adds riscv_bitmanip and riscv_crypto.h This is based on the proposed spec here https://github.com/riscv-non-isa/riscv-c-api-doc/pull/44 Tests that previously used builtins directly now use the intrinsics.
Diff Detail
Unit TestsFailed Event TimelineComment Actions Can we run mem2reg pass in RUNs just like RVV tests (maybe another cleanup patch)? I think there are a lot of noises in CHECKS. Comment Actions Rebase after using mem2reg. craig.topper retitled this revision from [RISCV] Add C intrinsics for scalar crypto to [RISCV] Add C intrinsics for scalar bitmanip and crypto.Aug 1 2023, 9:58 PM This revision is now accepted and ready to land.Aug 21 2023, 1:23 AM Closed by commit rG1a3b14d26152: [RISCV] Add C intrinsics for scalar bitmanip and crypto (authored by craig.topper). · Explain WhyFri, Nov 24, 4:17 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 541759 clang/lib/Headers/CMakeLists.txt
clang/lib/Headers/riscv_crypto.h
clang/test/CodeGen/RISCV/rvb-intrinsics/riscv32-zbkb.c
clang/test/CodeGen/RISCV/rvb-intrinsics/riscv32-zbkc.c
clang/test/CodeGen/RISCV/rvb-intrinsics/riscv32-zbkx.c
clang/test/CodeGen/RISCV/rvb-intrinsics/riscv64-zbkb.c
clang/test/CodeGen/RISCV/rvb-intrinsics/riscv64-zbkc.c
clang/test/CodeGen/RISCV/rvb-intrinsics/riscv64-zbkx.c
clang/test/CodeGen/RISCV/rvk-intrinsics/riscv32-zknd.c
clang/test/CodeGen/RISCV/rvk-intrinsics/riscv32-zkne.c
clang/test/CodeGen/RISCV/rvk-intrinsics/riscv32-zknh.c
clang/test/CodeGen/RISCV/rvk-intrinsics/riscv64-zknd-zkne.c
clang/test/CodeGen/RISCV/rvk-intrinsics/riscv64-zknd.c
clang/test/CodeGen/RISCV/rvk-intrinsics/riscv64-zkne.c
clang/test/CodeGen/RISCV/rvk-intrinsics/riscv64-zknh.c
clang/test/CodeGen/RISCV/rvk-intrinsics/zksed.c
clang/test/CodeGen/RISCV/rvk-intrinsics/zksh.c
|
clang-format not found in user’s local PATH; not linting file.