1 ; RUN: llc %s -o - -mtriple=x86_64-linux-gnu | FileCheck %s
3 ; This cannot get rounded up to the preferred alignment (16) if they have an
4 ; explicit alignment specified.
5 @GlobalA = global { [384 x i8] } zeroinitializer, align 8
8 ; CHECK: .globl GlobalA
13 ; Common variables should not get rounded up to the preferred alignment (16) if
14 ; they have an explicit alignment specified.
16 @GlobalB = common global { [384 x i8] } zeroinitializer, align 8
18 ; CHECK: .comm GlobalB,384,16
21 @GlobalC = common global { [384 x i8] } zeroinitializer, align 2
23 ; CHECK: .comm GlobalC,384,16
27 ; This cannot get rounded up to the preferred alignment (16) if they have an
28 ; explicit alignment specified *and* a section specified.
29 @GlobalAS = global { [384 x i8] } zeroinitializer, align 8, section "foo"
31 ; CHECK: .globl GlobalAS
36 ; Common variables should not get rounded up to the preferred alignment (16) if
37 ; they have an explicit alignment specified and a section specified.
39 @GlobalBS = common global { [384 x i8] } zeroinitializer, align 8, section "foo"
40 ; CHECK: .comm GlobalBS,384,8
42 @GlobalCS = common global { [384 x i8] } zeroinitializer, align 2, section "foo"
43 ; CHECK: .comm GlobalCS,384,2