Use the llvm-upgrade program to upgrade llvm assembly.
[oota-llvm.git] / test / Transforms / Reassociate / 2002-05-15-MissedTree.ll
1 ; RUN: llvm-upgrade < %s | llvm-as | opt -reassociate -instcombine -constprop -die | llvm-dis | not grep 5
2
3 int %test(int %A, int %B) {
4         %W = add int %B, -5
5         %Y = add int %A, 5
6         %Z = add int %W, %Y
7         ret int %Z
8 }