blob: 6e5c3c48fa4dd8d09a8469dd8ec0b72458d2a51b [file] [log] [blame]
Tanya Lattnercd0aa812004-11-06 21:40:51 +00001; RUN: llvm-as < %s | llc
2
Misha Brukman5b160f12004-08-11 14:16:34 +00003%.str_1 = internal constant [4 x sbyte] c"%d\0A\00"
4
5declare int %printf(sbyte*, ...)
6
7int %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