aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/X86/alignment.ll
blob: 06a4f3f8e884b223116c400b43063a471516d022 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
; RUN: llc %s -o - -mtriple=x86_64-linux-gnu | FileCheck %s

; This cannot get rounded up to the preferred alignment (16) if they have an
; explicit alignment specified.
@GlobalA = global { [384 x i8] } zeroinitializer, align 8 

; CHECK:	.bss
; CHECK:	.globl	GlobalA
; CHECK:	.align	8
; CHECK: GlobalA:
; CHECK:	.zero	384

; Common variables should not get rounded up to the preferred alignment (16) if
; they have an explicit alignment specified.
; PR6921
@GlobalB = common global { [384 x i8] } zeroinitializer, align 8

; CHECK: 	.comm	GlobalB,384,8