blob: 1f4683cf54e02a359c855687a54ea88239f69a20 [file] [log] [blame]
Reid Spencerc0948362007-01-16 18:08:22 +00001; 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
9implementation
10
11define [2 x i55]* %testfunction(i55 %i0, i55 %j0)
12begin
13 ret [2x i55]* %array
14end
15
16define i8* %otherfunc(i55, double)
17begin
18 %somestr = getelementptr [11x i8]* %somestr, i64 0, i64 0
19 ret i8* %somestr
20end
21
22define i8* %yetanotherfunc(i55, double)
23begin
24 ret i8* null ; Test null
25end
26
27define i55 %negativeUnsigned() {
28 ret i55 -1
29}
30
31define i55 %largeSigned() {
32 ret i55 3900000000
33}