mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 20:29:48 +00:00
d644d17dd4
This adds initial support for PPC32 ELF PIC (Position Independent Code; the -fPIC variety), thus rectifying a long-standing deficiency in the PowerPC backend. Patch by Justin Hibbits! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@213427 91177308-0d34-0410-b5e6-96231b3b80d8
13 lines
425 B
LLVM
13 lines
425 B
LLVM
; Test to make sure that bss sections are printed with '.section' directive.
|
|
; RUN: llc < %s -mtriple=powerpc-unknown-linux-gnu | FileCheck %s
|
|
; RUN: llc < %s -mtriple=powerpc-unknown-linux-gnu -relocation-model=pic | FileCheck %s -check-prefix=PIC
|
|
|
|
@A = global i32 0
|
|
|
|
; CHECK: .section .bss,"aw",@nobits
|
|
; CHECK: .globl A
|
|
|
|
; PIC: .section .got2,"aw",@progbits
|
|
; PIC: .section .bss,"aw",@nobits
|
|
; PIC: .globl A
|