• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: llc < %s -mtriple=arm-linux-gnueabi -o %t
2; RUN: grep { = } %t   | count 5
3; RUN: grep globl %t | count 4
4; RUN: grep weak %t  | count 1
5
6@bar = external global i32
7@foo1 = alias i32* @bar
8@foo2 = alias i32* @bar
9
10%FunTy = type i32()
11
12declare i32 @foo_f()
13@bar_f = alias weak %FunTy* @foo_f
14
15@bar_i = alias internal i32* @bar
16
17@A = alias bitcast (i32* @bar to i64*)
18
19define i32 @test() {
20entry:
21   %tmp = load i32* @foo1
22   %tmp1 = load i32* @foo2
23   %tmp0 = load i32* @bar_i
24   %tmp2 = call i32 @foo_f()
25   %tmp3 = add i32 %tmp, %tmp2
26   %tmp4 = call %FunTy* @bar_f()
27   %tmp5 = add i32 %tmp3, %tmp4
28   %tmp6 = add i32 %tmp1, %tmp5
29   %tmp7 = add i32 %tmp6, %tmp0
30   ret i32 %tmp7
31}
32