Pengcheng Wang 957f929eba
[RISCV] Set __GCC_CONSTRUCTIVE_SIZE/__GCC_DESTRUCTIVE_SIZE to 64 (#162986)
These two macros were added in
https://github.com/llvm/llvm-project/pull/89446.

But the previous values may not be reasonable for RV64 systems because
most
of them have a cache line size 64B. So here we change them to 64.
2025-11-11 14:16:05 +08:00

11 lines
420 B
C

// RUN: %clang_cc1 -E -dM -triple=riscv32 < /dev/null | \
// RUN: FileCheck -match-full-lines -check-prefixes=RV32 %s
// RUN: %clang_cc1 -E -dM -triple=riscv64 < /dev/null | \
// RUN: FileCheck -match-full-lines -check-prefixes=RV64 %s
// RV32: #define __GCC_CONSTRUCTIVE_SIZE 64
// RV32: #define __GCC_DESTRUCTIVE_SIZE 64
// RV64: #define __GCC_CONSTRUCTIVE_SIZE 64
// RV64: #define __GCC_DESTRUCTIVE_SIZE 64