Adding RUN lines.
[oota-llvm.git] / test / CodeGen / Generic / print-add.ll
1 ; RUN: llvm-as < %s | llc
2
3 %.str_1 = internal constant [4 x sbyte] c"%d\0A\00"
4
5 declare int %printf(sbyte*, ...)
6
7 int %main() {  
8   %f = getelementptr [4 x sbyte]* %.str_1, long 0, long 0
9   %d = add int 1, 0
10   call int (sbyte*, ...)* %printf(sbyte* %f, int %d)
11   %e = add int 38, 2
12   call int (sbyte*, ...)* %printf(sbyte* %f, int %e)
13   %g = add int %d, %d
14   %h = add int %e, %g
15   call int (sbyte*, ...)* %printf(sbyte* %f, int %h)
16   ret int 0
17 }
18