blob: d42c9c39daa6ec86aa69bd2a8ee47b4f29c78228 [file] [log] [blame]
Reid Spencerdeb4d5a2006-12-31 06:02:00 +00001; RUN: llvm-upgrade < %s | llvm-as | opt -argpromotion | llvm-dis | grep 'load i32\* %A'
Chris Lattner0a205ea2004-11-13 23:30:22 +00002
3implementation
4
5internal int %callee(bool %C, int* %P) {
6 br bool %C, label %T, label %F
7T:
8 ret int 17
9F:
10 %X = load int* %P
11 ret int %X
12}
13
14int %foo() {
15 %A = alloca int
16 store int 17, int* %A
17 %X = call int %callee(bool false, int* %A)
18 ret int %X
19}
20