blob: ef224a14036f0baddee772364641bff70a834ff6 [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001; RUN: llvm-upgrade < %s | llvm-as | llc
2
3%.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