xref: /llvm-project/llvm/test/CodeGen/X86/tls-align.ll (revision 14705a912f6296700cef4d2aa7eb100f71dfbd0a)
1; RUN: opt -passes=instcombine -S < %s | FileCheck %s
2
3%class.Arr = type <{ [160 x %class.Derived], i32, [4 x i8] }>
4%class.Derived = type { %class.Base, ptr }
5%class.Base = type { ptr }
6
7@array = hidden thread_local global %class.Arr zeroinitializer, align 32
8; CHECK: @array{{.*}}align 32
9
10@_ZTV7Derived = constant { [4 x ptr] } { [4 x ptr] [ptr null, ptr null, ptr null, ptr null] }, align 8
11
12define internal fastcc void @foo() unnamed_addr {
13entry:
14  store <8 x ptr> <ptr getelementptr inbounds ({ [4 x ptr] }, ptr @_ZTV7Derived, i64 0, i32 0, i64 2), ptr null, ptr getelementptr inbounds ({ [4 x ptr] }, ptr @_ZTV7Derived, i64 0, i32 0, i64 2), ptr null, ptr getelementptr inbounds ({ [4 x ptr] }, ptr @_ZTV7Derived, i64 0, i32 0, i64 2), ptr null, ptr getelementptr inbounds ({ [4 x ptr] }, ptr @_ZTV7Derived, i64 0, i32 0, i64 2), ptr null>, ptr @array, align 32
15  ret void
16}
17
18!llvm.module.flags = !{!0}
19!0 = !{i32 1, !"MaxTLSAlign", i32 256}
20