blob: 80a5446e6dc44b15dd4bbcb253db14fa0071bb49 [file] [log] [blame]
Chris Lattneredcee6f2005-05-09 21:21:10 +00001; RUN: llvm-as < %s | opt -simplifycfg | llvm-dis | not grep 'br'
2declare void %bar(int)
3
4void %test(bool %P, int* %Q) {
5 br bool %P, label %T, label %F
6T:
7 store int 1, int* %Q
8 %A = load int* %Q
9 call void %bar(int %A)
10 ret void
11F:
12 store int 1, int* %Q
13 %B = load int* %Q
14 call void %bar(int %B)
15 ret void
16}
17