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