mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-27 20:16:05 +00:00
[compiler-rt] Fix the HWCAP2_EBF16 and HWCAP2_SVE_EBF16 macro value (#70905)
HWCAP2_EBF16 (1UL << 32) HWCAP2_SVE_EBF16 (1UL << 33) this will overflow in aarch64 ilp32 abi, and make func __init_cpu_features_constructor() wrong.
This commit is contained in:
parent
22078bd9f6
commit
0e5da2eceb
@ -1137,10 +1137,10 @@ typedef struct __ifunc_arg_t {
|
||||
#define HWCAP2_WFXT (1UL << 31)
|
||||
#endif
|
||||
#ifndef HWCAP2_EBF16
|
||||
#define HWCAP2_EBF16 (1UL << 32)
|
||||
#define HWCAP2_EBF16 (1ULL << 32)
|
||||
#endif
|
||||
#ifndef HWCAP2_SVE_EBF16
|
||||
#define HWCAP2_SVE_EBF16 (1UL << 33)
|
||||
#define HWCAP2_SVE_EBF16 (1ULL << 33)
|
||||
#endif
|
||||
|
||||
// Detect Exynos 9810 CPU
|
||||
|
Loading…
x
Reference in New Issue
Block a user