[clang] 8f564a1 - [RISCV] Remove reference to non-existant __builtin_riscv_sha512sum0l/__builtin_riscv_sha512sum1l.

Craig Topper via cfe-commits cfe-commits at lists.llvm.org
Wed Nov 29 11:07:05 PST 2023


Author: Craig Topper
Date: 2023-11-29T11:06:49-08:00
New Revision: 8f564a1f30c160635a8225af5d20669ee42b468a

URL: https://github.com/llvm/llvm-project/commit/8f564a1f30c160635a8225af5d20669ee42b468a
DIFF: https://github.com/llvm/llvm-project/commit/8f564a1f30c160635a8225af5d20669ee42b468a.diff

LOG: [RISCV] Remove reference to non-existant __builtin_riscv_sha512sum0l/__builtin_riscv_sha512sum1l.

This was a copy/paste mistake from sig0/sig1 which have high and low halves.
sum0 and sum1 have sum0r and sum1r instead.

Added: 
    

Modified: 
    clang/lib/Headers/riscv_crypto.h

Removed: 
    


################################################################################
diff  --git a/clang/lib/Headers/riscv_crypto.h b/clang/lib/Headers/riscv_crypto.h
index 39ee0898af0ff05..1c938c60b58ad61 100644
--- a/clang/lib/Headers/riscv_crypto.h
+++ b/clang/lib/Headers/riscv_crypto.h
@@ -112,21 +112,11 @@ __riscv_sha512sig1l(uint32_t __x, uint32_t __y) {
   return __builtin_riscv_sha512sig1l(__x, __y);
 }
 
-static __inline__ uint32_t __attribute__((__always_inline__, __nodebug__))
-__riscv_sha512sum0l(uint32_t __x, uint32_t __y) {
-  return __builtin_riscv_sha512sum0l(__x, __y);
-}
-
 static __inline__ uint32_t __attribute__((__always_inline__, __nodebug__))
 __riscv_sha512sum0r(uint32_t __x, uint32_t __y) {
   return __builtin_riscv_sha512sum0r(__x, __y);
 }
 
-static __inline__ uint32_t __attribute__((__always_inline__, __nodebug__))
-__riscv_sha512sum1l(uint32_t __x, uint32_t __y) {
-  return __builtin_riscv_sha512sum1l(__x, __y);
-}
-
 static __inline__ uint32_t __attribute__((__always_inline__, __nodebug__))
 __riscv_sha512sum1r(uint32_t __x, uint32_t __y) {
   return __builtin_riscv_sha512sum1r(__x, __y);


        


More information about the cfe-commits mailing list