• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: llc < %s -mtriple powerpc-apple-darwin8 -march=ppc32 | FileCheck %s
2
3; Check that *coal* sections are emitted.
4
5; CHECK: .section  __TEXT,__textcoal_nt,coalesced,pure_instructions
6; CHECK: .section  __TEXT,__textcoal_nt,coalesced,pure_instructions
7; CHECK-NEXT: .globl  _foo
8
9; CHECK: .section  __TEXT,__const_coal,coalesced
10; CHECK-NEXT: .globl  _a
11
12; CHECK: .section  __DATA,__datacoal_nt,coalesced
13; CHECK-NEXT: .globl  _b
14
15@a = weak_odr constant [4 x i32] [i32 1, i32 2, i32 3, i32 4], align 16
16@b = weak global i32 5, align 4
17@g = common global i32* null, align 8
18
19; Function Attrs: nounwind ssp uwtable
20define weak i32* @foo() {
21entry:
22  store i32* getelementptr inbounds ([4 x i32], [4 x i32]* @a, i64 0, i64 0), i32** @g, align 8
23  ret i32* @b
24}
25