Chris Lattner | 567dd1f | 2010-04-26 18:46:46 +0000 | [diff] [blame] | 1 | ; RUN: llc %s -o - -mtriple=x86_64-linux-gnu | FileCheck %s |
| 2 | |
| 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 |
| 6 | |
| 7 | ; CHECK: .bss |
| 8 | ; CHECK: .globl GlobalA |
| 9 | ; CHECK: .align 8 |
| 10 | ; CHECK: GlobalA: |
| 11 | ; CHECK: .zero 384 |
| 12 | |
| 13 | ; Common variables should not get rounded up to the preferred alignment (16) if |
| 14 | ; they have an explicit alignment specified. |
| 15 | ; PR6921 |
| 16 | @GlobalB = common global { [384 x i8] } zeroinitializer, align 8 |
| 17 | |
| 18 | ; CHECK: .comm GlobalB,384,8 |