xref: /llvm-project/clang/test/CodeGen/tls-maxalign-modflag.c (revision 05ce95ef0412ba8b3e3189db5ed130a9949bbefd)
1 // REQUIRES: x86-registered-target
2 
3 // Test that we get the module flag TLSMaxAlign on the PS platforms.
4 // RUN: %clang_cc1 -triple x86_64-scei-ps4 -emit-llvm -o - %s | FileCheck %s
5 // RUN: %clang_cc1 -triple x86_64-sie-ps5 -emit-llvm -o - %s | FileCheck %s
6 
7 int main(void) {
8   return 0;
9 }
10 
11 // CHECK-DAG: ![[MDID:[0-9]+]] = !{i32 1, !"MaxTLSAlign", i32 256}
12 // CHECK-DAG: llvm.module.flags = {{.*}}![[MDID]]
13