| Tanya Lattner | cd0aa81 | 2004-11-06 21:40:51 +0000 | [diff] [blame] | 1 | ; RUN: llvm-as < %s | llc | 
 | 2 |  | 
| Misha Brukman | 5b160f1 | 2004-08-11 14:16:34 +0000 | [diff] [blame] | 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 |  |