llvm.org GIT mirror llvm / d3c3235
Add a few extra cases to the test. NFC. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@223417 91177308-0d34-0410-b5e6-96231b3b80d8 Rafael Espindola 5 years ago
2 changed file(s) with 30 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
None @X = global i32 7, align 8
0 @A = global i32 7, align 8
1 @B = global i32 7, align 4
2
3 define void @C() align 8 {
4 ret void
5 }
6
7 define void @D() align 4 {
8 ret void
9 }
10
11 @E = common global i32 0, align 8
None ; The linker should choose the largest alignment when linking.
1
2 ; RUN: llvm-link %p/alignment.ll %p/Inputs/alignment.ll -S | FileCheck %s
31 ; RUN: llvm-link %p/Inputs/alignment.ll %p/alignment.ll -S | FileCheck %s
42
5 ; CHECK: @X = global i32 7, align 8
63
7 @X = weak global i32 7, align 4
4 @A = weak global i32 7, align 4
5 ; CHECK-DAG: @A = global i32 7, align 8
6
7 @B = weak global i32 7, align 8
8 ; CHECK-DAG: @B = global i32 7, align 4
9
10 define weak void @C() align 4 {
11 ret void
12 }
13 ; CHECK-DAG: define void @C() align 8 {
14
15 define weak void @D() align 8 {
16 ret void
17 }
18 ; CHECK-DAG: define void @D() align 4 {
19
20 @E = common global i32 0, align 4
21 ; CHECK-DAG: @E = common global i32 0, align 8