llvm.org GIT mirror llvm / 038557d
Testcase for PR2054 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47946 91177308-0d34-0410-b5e6-96231b3b80d8 Anton Korobeynikov 12 years ago
2 changed file(s) with 28 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 ; PR2054
1 ; RUN: llvm-as %s -o %t1.bc -f
2 ; RUN: llvm-as %p/2008-03-05-AliasReference2.ll -o %t2.bc -f
3 ; RUN: llvm-link %t2.bc %t1.bc -f -o %t3.bc
4
5 ; ModuleID = 'bug.o'
6 target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128"
7 target triple = "x86_64-unknown-linux-gnu"
8 @foo = weak global i32 0 ; [#uses=1]
9
10 @bar = alias weak i32* @foo ; [#uses=1]
11
12 define i32 @baz() nounwind {
13 entry:
14 %tmp1 = load i32* @bar, align 4 ; [#uses=1]
15 ret i32 %tmp1
16 }
0 ; This file is used by 2008-03-05-AliasReference.ll
1 ; RUN: true
2
3 ; ModuleID = 'bug.o'
4 target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128"
5 target triple = "x86_64-unknown-linux-gnu"
6
7 define i32 @baz1() nounwind {
8 entry:
9 ret i32 0
10 }