blob: d243e3c7d1a30e1931f0ef8561ac95c0e34c9c31 [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001; This file is used by testlink1.ll, so it doesn't actually do anything itself
2;
3; RUN: true
4
Tanya Lattner003eae52008-03-10 07:21:50 +00005@MyVar = global i32 4 ; <i32*> [#uses=2]
6@MyIntList = external global { \2*, i32 } ; <{ \2*, i32 }*> [#uses=2]
7@AConst = constant i32 123 ; <i32*> [#uses=0]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008
Tanya Lattner003eae52008-03-10 07:21:50 +00009;; Intern in both testlink[12].ll
10@Intern1 = internal constant i32 52 ; <i32*> [#uses=0]
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011
Tanya Lattner003eae52008-03-10 07:21:50 +000012;; Intern in one but not in other
13@Intern2 = constant i32 12345 ; <i32*> [#uses=0]
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014
Tanya Lattner003eae52008-03-10 07:21:50 +000015@MyIntListPtr = constant { { \2*, i32 }* } { { \2*, i32 }* @MyIntList } ; <{ { \2*, i32 }* }*> [#uses=0]
16@MyVarPtr = linkonce global { i32* } { i32* @MyVar } ; <{ i32* }*> [#uses=0]
17constant i32 412 ; <i32*>:0 [#uses=1]
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018
Tanya Lattner003eae52008-03-10 07:21:50 +000019define i32 @foo(i32 %blah) {
20 store i32 %blah, i32* @MyVar
21 %idx = getelementptr { \2*, i32 }* @MyIntList, i64 0, i32 1 ; <i32*> [#uses=1]
22 store i32 12, i32* %idx
23 %ack = load i32* @0 ; <i32> [#uses=1]
24 %fzo = add i32 %ack, %blah ; <i32> [#uses=1]
25 ret i32 %fzo
26}
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027
Tanya Lattner003eae52008-03-10 07:21:50 +000028declare void @unimp(float, double)
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029
Tanya Lattner003eae52008-03-10 07:21:50 +000030define internal void @testintern() {
31 ret void
32}
Dan Gohmanf17a25c2007-07-18 16:29:46 +000033
Tanya Lattner003eae52008-03-10 07:21:50 +000034define void @Testintern() {
35 ret void
36}
Dan Gohmanf17a25c2007-07-18 16:29:46 +000037
Tanya Lattner003eae52008-03-10 07:21:50 +000038define internal void @testIntern() {
39 ret void
40}
Dan Gohmanf17a25c2007-07-18 16:29:46 +000041