1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 19:23:23 +01:00
llvm-mirror/test/CodeGen/PowerPC/aix-xcoff-common.ll
Sean Fertile 0b54a7b679 Stubs out TLOF for AIX and add support for common vars in assembly output.
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
2019-07-22 19:15:29 +00:00

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