• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; taken from X86 version of the same test
2; RUN: llc -mtriple=powerpc-apple-darwin10 -O0 < %s | FileCheck %s
3; RUN: llc -mtriple=powerpc-apple-darwin9 -O0 < %s | FileCheck --check-prefix=CHECK-D89 %s
4; RUN: llc -mtriple=powerpc-apple-darwin8 -O0 < %s | FileCheck --check-prefix=CHECK-D89 %s
5
6@v1 = linkonce_odr local_unnamed_addr constant i32 32
7; CHECK: .globl  _v1
8; CHECK: .weak_def_can_be_hidden _v1
9
10; CHECK-D89: .globl  _v1
11; CHECK-D89: .weak_definition _v1
12
13define i32 @f1() {
14  %x = load i32 , i32 * @v1
15  ret i32 %x
16}
17
18@v2 = linkonce_odr constant i32 32
19; CHECK: .globl  _v2
20; CHECK: .weak_definition _v2
21
22; CHECK-D89: .globl  _v2
23; CHECK-D89: .weak_definition _v2
24
25define i32* @f2() {
26  ret i32* @v2
27}
28
29@v3 = linkonce_odr unnamed_addr constant i32 32
30; CHECK: .globl  _v3
31; CHECK: .weak_def_can_be_hidden _v3
32
33; CHECK-D89: .globl  _v3
34; CHECK-D89: .weak_definition _v3
35
36define i32* @f3() {
37  ret i32* @v3
38}
39
40@v4 = linkonce_odr unnamed_addr global i32 32
41; CHECK: .globl  _v4
42; CHECK: .weak_def_can_be_hidden _v4
43
44; CHECK-D89: .globl  _v4
45; CHECK-D89: .weak_definition _v4
46
47define i32 @f4() {
48  %x = load i32 , i32 * @v4
49  ret i32 %x
50}
51