[all-commits] [llvm/llvm-project] 599421: [RISCV] Use unsigned instead of signed types for Z...
Craig Topper via All-commits
all-commits at lists.llvm.org
Sat Jul 15 11:19:38 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 599421ae36c332474c5034b4baaab59833e76418
https://github.com/llvm/llvm-project/commit/599421ae36c332474c5034b4baaab59833e76418
Author: Craig Topper <craig.topper at sifive.com>
Date: 2023-07-15 (Sat, 15 Jul 2023)
Changed paths:
M clang/include/clang/Basic/BuiltinsRISCV.def
M clang/test/CodeGen/RISCV/rvb-intrinsics/riscv32-zbkb.c
M clang/test/CodeGen/RISCV/rvb-intrinsics/riscv32-zbkx.c
M clang/test/CodeGen/RISCV/rvb-intrinsics/riscv64-zbkb-error.c
M clang/test/CodeGen/RISCV/rvb-intrinsics/riscv64-zbkb.c
M clang/test/CodeGen/RISCV/rvb-intrinsics/riscv64-zbkx.c
M clang/test/CodeGen/RISCV/rvk-intrinsics/riscv32-zknd.c
M clang/test/CodeGen/RISCV/rvk-intrinsics/riscv32-zkne.c
M clang/test/CodeGen/RISCV/rvk-intrinsics/riscv32-zknh.c
M clang/test/CodeGen/RISCV/rvk-intrinsics/riscv32-zksed.c
M clang/test/CodeGen/RISCV/rvk-intrinsics/riscv32-zksh.c
M clang/test/CodeGen/RISCV/rvk-intrinsics/riscv64-zknd-zkne.c
M clang/test/CodeGen/RISCV/rvk-intrinsics/riscv64-zknd.c
M clang/test/CodeGen/RISCV/rvk-intrinsics/riscv64-zkne.c
M clang/test/CodeGen/RISCV/rvk-intrinsics/riscv64-zknh.c
M clang/test/CodeGen/RISCV/rvk-intrinsics/riscv64-zksed.c
M clang/test/CodeGen/RISCV/rvk-intrinsics/riscv64-zksh.c
Log Message:
-----------
[RISCV] Use unsigned instead of signed types for Zk* and Zb* builtins.
Unsigned is a better representation for bitmanipulation and cryptography.w
The only exception being the return values for clz and ctz intrinsics is
a signed int. That matches the target independent clz and ctz builtins.
This is consistent with the current scalar crypto proposal
https://github.com/riscv-non-isa/riscv-c-api-doc/pull/44
Reviewed By: VincentWu
Differential Revision: https://reviews.llvm.org/D154616
More information about the All-commits
mailing list