Bruno Cardoso Lopes | 62e6a8b | 2009-08-13 23:30:21 +0000 | [diff] [blame] | 1 | ; Test to make sure that bss sections are printed with '.section' directive. |
Dan Gohman | c8054d9 | 2009-09-09 00:09:15 +0000 | [diff] [blame] | 2 | ; RUN: llc < %s -mtriple=powerpc-unknown-linux-gnu | FileCheck %s |
Hal Finkel | 3ee2af7 | 2014-07-18 23:29:49 +0000 | [diff] [blame] | 3 | ; RUN: llc < %s -mtriple=powerpc-unknown-linux-gnu -relocation-model=pic | FileCheck %s -check-prefix=PIC |
Bruno Cardoso Lopes | 62e6a8b | 2009-08-13 23:30:21 +0000 | [diff] [blame] | 4 | |
| 5 | @A = global i32 0 |
| 6 | |
Joerg Sonnenberger | 62f7597 | 2011-03-04 20:03:14 +0000 | [diff] [blame] | 7 | ; CHECK: .section .bss,"aw",@nobits |
Chris Lattner | c7a062d | 2010-01-19 05:38:33 +0000 | [diff] [blame] | 8 | ; CHECK: .globl A |
Bruno Cardoso Lopes | 62e6a8b | 2009-08-13 23:30:21 +0000 | [diff] [blame] | 9 | |
Hal Finkel | 3ee2af7 | 2014-07-18 23:29:49 +0000 | [diff] [blame] | 10 | ; PIC: .section .got2,"aw",@progbits |
| 11 | ; PIC: .section .bss,"aw",@nobits |
| 12 | ; PIC: .globl A |