aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/PowerPC/2010-02-04-EmptyGlobal.ll
blob: 1ba11d3fd036da204e7ffd82c1d261b72148db0d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
; RUN: llc < %s -mtriple=powerpc-apple-darwin10 -relocation-model=pic -disable-fp-elim | FileCheck %s
; <rdar://problem/7604010>

%cmd.type = type { }

@_cmd = constant %cmd.type zeroinitializer

; CHECK:      .globl __cmd
; CHECK-NEXT: .align 3
; CHECK-NEXT: __cmd:
; CHECK-NEXT: .byte 0

; PR6340

%Ty = type { i32, {}, i32 }
@k = global %Ty { i32 1, {} zeroinitializer, i32 3 }

; CHECK: _k:
; CHECK-NEXT:	.long	1
; CHECK-NEXT:	.long	3