When the two operands of an icmp are equal, there are five possible predicates
[oota-llvm.git] / test / Feature / globalvars.ll
1 ; RUN: llvm-upgrade < %s | llvm-as | llvm-dis > %t1.ll
2 ; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
3 ; RUN: diff %t1.ll %t2.ll
4
5
6 %MyVar     = uninitialized global int
7 %MyIntList = uninitialized global { \2 *, int }
8              external global int      ; int*:0
9
10 %AConst    = constant int 123
11
12 %AString   = constant [4 x ubyte] c"test"
13
14 %ZeroInit  = global { [100 x int ], [40 x float ] } { [100 x int] zeroinitializer,
15                                                       [40  x float] zeroinitializer }
16
17 implementation
18
19 int "foo"(int %blah)
20 begin
21         store int 5, int *%MyVar
22         %idx = getelementptr { \2 *, int } * %MyIntList, long 0, uint 1
23         store int 12, int* %idx
24         ret int %blah
25 end
26