Chris Lattner | b064baf | 2002-05-15 21:56:51 +0000 | [diff] [blame^] | 1 | ; 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 | |||||
6 | int "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 | } |