Use the llvm-upgrade program to upgrade llvm assembly.
[oota-llvm.git] / test / Transforms / GCSE / 2002-05-21-NoSharedDominator.ll
1 ; This testcase shows a bug where an common subexpression exists, but there
2 ; is no shared dominator block that the expression can be hoisted out to.
3 ;
4 ; RUN: llvm-upgrade < %s | llvm-as | opt -gcse | llvm-dis
5
6 int "test"(int %X, int %Y) {
7         %Z = add int %X, %Y
8         ret int %Z
9
10 Unreachable:
11         %Q = add int %X, %Y
12         ret int %Q
13 }