Make LLVM Assembly dramatically easier to read by aligning the comments,
[oota-llvm.git] / test / Integer / testconstants_bt.ll
1 ; RUN: llvm-as %s -o - | llvm-dis > %t1.ll
2 ; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
3 ; RUN: diff %t1.ll %t2.ll
4
5 @somestr = constant [11x i8] c"hello world"
6 @array   = constant [2 x i55] [ i55 12, i55 52 ]
7            constant { i55, i55 } { i55 4, i55 3 }
8
9  
10 define [2 x i55]* @testfunction(i55 %i0, i55 %j0)
11 begin
12         ret [2x i55]* @array
13 end
14
15 define  i8* @otherfunc(i55, double)
16 begin
17         %somestr = getelementptr [11x i8]* @somestr, i64 0, i64 0
18         ret i8* %somestr
19 end
20
21 define i8* @yetanotherfunc(i55, double)
22 begin
23         ret i8* null            ; Test null
24 end
25
26 define i55 @negativeUnsigned() {
27         ret i55 -1
28 }
29
30 define i55 @largeSigned() {
31        ret i55 3900000000
32 }