~pali/+junk/llvm-toolchain-3.7

« back to all changes in this revision

Viewing changes to test/MC/ELF/align-bss.s

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2015-07-15 17:51:08 UTC
  • Revision ID: package-import@ubuntu.com-20150715175108-l8mynwovkx4zx697
Tags: upstream-3.7~+rc2
ImportĀ upstreamĀ versionĀ 3.7~+rc2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -s | FileCheck %s
 
2
 
 
3
// Test that the bss section is correctly aligned
 
4
 
 
5
        .local  foo
 
6
        .comm   foo,2048,16
 
7
 
 
8
// CHECK:        Section {
 
9
// CHECK:          Name: .bss
 
10
// CHECK-NEXT:     Type: SHT_NOBITS
 
11
// CHECK-NEXT:     Flags [
 
12
// CHECK-NEXT:       SHF_ALLOC
 
13
// CHECK-NEXT:       SHF_WRITE
 
14
// CHECK-NEXT:     ]
 
15
// CHECK-NEXT:     Address: 0x0
 
16
// CHECK-NEXT:     Offset: 0x40
 
17
// CHECK-NEXT:     Size: 2048
 
18
// CHECK-NEXT:     Link: 0
 
19
// CHECK-NEXT:     Info: 0
 
20
// CHECK-NEXT:     AddressAlignment: 16
 
21
// CHECK-NEXT:     EntrySize: 0
 
22
// CHECK-NEXT:   }