[clang] 3313c25 - [RISCV] Fix a couple copy/paste mistakes in riscv_crypto.h. NFC

Craig Topper via cfe-commits cfe-commits at lists.llvm.org
Wed Nov 29 12:32:04 PST 2023


Author: Craig Topper
Date: 2023-11-29T12:31:46-08:00
New Revision: 3313c256c82e16e6f15a182bbf77ad2d60548a56

URL: https://github.com/llvm/llvm-project/commit/3313c256c82e16e6f15a182bbf77ad2d60548a56
DIFF: https://github.com/llvm/llvm-project/commit/3313c256c82e16e6f15a182bbf77ad2d60548a56.diff

LOG: [RISCV] Fix a couple copy/paste mistakes in riscv_crypto.h. NFC

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 1c938c60b58ad61..7cd2a708f557563 100644
--- a/clang/lib/Headers/riscv_crypto.h
+++ b/clang/lib/Headers/riscv_crypto.h
@@ -57,7 +57,7 @@ __riscv_aes64esm(uint64_t __x, uint64_t __y) {
   return __builtin_riscv_aes64esm(__x, __y);
 }
 #endif
-#endif // defined(__riscv_zknd)
+#endif // defined(__riscv_zkne)
 
 #if defined(__riscv_zknd) || defined(__riscv_zkne)
 #if __riscv_xlen == 64
@@ -161,7 +161,7 @@ __riscv_sm3p1(uint32_t __x) {
 #if defined(__riscv_zksed)
 #define __riscv_sm4ed(x, y, bs) __builtin_riscv_sm4ed(x, y, bs);
 #define __riscv_sm4ks(x, y, bs) __builtin_riscv_sm4ks(x, y, bs);
-#endif // defined(__riscv_zksh)
+#endif // defined(__riscv_zksed)
 
 #if defined(__cplusplus)
 }


        


More information about the cfe-commits mailing list