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