44 lines · plain
1; RUN: llc %s -o - -mtriple=x86_64-linux-gnu | FileCheck %s2 3; This cannot get rounded up to the preferred alignment (16) if they have an4; explicit alignment specified.5@GlobalA = global { [384 x i8] } zeroinitializer, align 8 6 7; CHECK: .bss8; CHECK: .globl GlobalA9; CHECK: .p2align 310; CHECK: GlobalA:11; CHECK: .zero 38412 13; Common variables should not get rounded up to the preferred alignment (16) if14; they have an explicit alignment specified.15; PR692116@GlobalB = common global { [384 x i8] } zeroinitializer, align 817 18; CHECK: .comm GlobalB,384,819 20 21@GlobalC = common global { [384 x i8] } zeroinitializer, align 222 23; CHECK: .comm GlobalC,384,224 25 26 27; This cannot get rounded up to the preferred alignment (16) if they have an28; explicit alignment specified *and* a section specified.29@GlobalAS = global { [384 x i8] } zeroinitializer, align 8, section "foo"30 31; CHECK: .globl GlobalAS32; CHECK: .p2align 333; CHECK: GlobalAS:34; CHECK: .zero 38435 36; Common variables should not get rounded up to the preferred alignment (16) if37; they have an explicit alignment specified and a section specified.38; PR692139@GlobalBS = common global { [384 x i8] } zeroinitializer, align 8, section "foo"40; CHECK: .comm GlobalBS,384,841 42@GlobalCS = common global { [384 x i8] } zeroinitializer, align 2, section "foo"43; CHECK: .comm GlobalCS,384,244