blob: 1d08a1054e26651d62f180e88023f9c254fbefd1 [file] [log] [blame]
Chris Lattnerb064baf2002-05-15 21:56:51 +00001; RUN: if as < %s | opt -reassociate -instcombine -constprop -die | dis | grep 5
2; RUN: then exit 1
3; RUN: else exit 0
4; RUN: fi
5
6int "test"(int %A, int %B) {
7 %W = add int %B, -5
8 %Y = add int %A, 5
9 %Z = add int %W, %Y
10 ret int %Z
11}