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