mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 19:23:23 +01:00
0b54a7b679
Stubs out a TargetLoweringObjectFileXCOFF class, implementing only SelectSectionForGlobal for common symbols. Also adds an override of EmitGlobalVariable in PPCAIXAsmPrinter which adds a number of defensive errors and adds support for emitting common globals. llvm-svn: 366727
25 lines
823 B
LLVM
25 lines
823 B
LLVM
; RUN: llc -mtriple powerpc-ibm-aix-xcoff < %s | FileCheck %s
|
|
|
|
@a = common global i32 0, align 4
|
|
@b = common global i64 0, align 8
|
|
@c = common global i16 0, align 2
|
|
|
|
@d = common local_unnamed_addr global double 0.000000e+00, align 8
|
|
@f = common local_unnamed_addr global float 0.000000e+00, align 4
|
|
@comm = common local_unnamed_addr global double 0.000000e+00, align 8
|
|
|
|
@over_aligned = common local_unnamed_addr global double 0.000000e+00, align 32
|
|
|
|
@array = common local_unnamed_addr global [32 x i8] zeroinitializer, align 1
|
|
|
|
; CHECK: .csect .text[PR]
|
|
; CHECK-NEXT: .file
|
|
; CHECK-NEXT: .comm a,4,2
|
|
; CHECK-NEXT: .comm b,8,3
|
|
; CHECK-NEXT: .comm c,2,1
|
|
; CHECK-NEXT: .comm d,8,3
|
|
; CHECK-NEXT: .comm f,4,2
|
|
; CHECK-NEXT: .comm comm,8,3
|
|
; CHECK-NEXT: .comm over_aligned,8,5
|
|
; CHECK-NEXT: .comm array,32,0
|