mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-05-14 09:56:33 +00:00

Adding a module flag 'MaxTLSAlign' describing the maximum alignment a global TLS variable can have. Optimizers are prevented from increasing the alignment of such variables beyond this threshold. Reviewed By: probinson Differential Revision: https://reviews.llvm.org/D140123
13 lines
415 B
C
13 lines
415 B
C
// REQUIRES: x86-registered-target
|
|
|
|
// Test that we get the module flag TLSMaxAlign on the PS platforms.
|
|
// RUN: %clang_cc1 -triple x86_64-scei-ps4 -S -emit-llvm -o - %s | FileCheck %s
|
|
// RUN: %clang_cc1 -triple x86_64-scei-ps5 -S -emit-llvm -o - %s | FileCheck %s
|
|
|
|
int main(void) {
|
|
return 0;
|
|
}
|
|
|
|
// CHECK-DAG: ![[MDID:[0-9]+]] = !{i32 1, !"MaxTLSAlign", i32 256}
|
|
// CHECK-DAG: llvm.module.flags = {{.*}}![[MDID]]
|