blob: d77dfddd0f90b100030a5eef89ea1185c651508a [file] [log] [blame]
Bruno Cardoso Lopes62e6a8b2009-08-13 23:30:21 +00001; Test to make sure that bss sections are printed with '.section' directive.
Dan Gohmanc8054d92009-09-09 00:09:15 +00002; RUN: llc < %s -mtriple=powerpc-unknown-linux-gnu | FileCheck %s
Hal Finkel3ee2af72014-07-18 23:29:49 +00003; RUN: llc < %s -mtriple=powerpc-unknown-linux-gnu -relocation-model=pic | FileCheck %s -check-prefix=PIC
Bruno Cardoso Lopes62e6a8b2009-08-13 23:30:21 +00004
5@A = global i32 0
6
Joerg Sonnenberger62f75972011-03-04 20:03:14 +00007; CHECK: .section .bss,"aw",@nobits
Chris Lattnerc7a062d2010-01-19 05:38:33 +00008; CHECK: .globl A
Bruno Cardoso Lopes62e6a8b2009-08-13 23:30:21 +00009
Hal Finkel3ee2af72014-07-18 23:29:49 +000010; PIC: .section .got2,"aw",@progbits
11; PIC: .section .bss,"aw",@nobits
12; PIC: .globl A