aboutsummaryrefslogtreecommitdiffstats
path: root/test/Transforms/Reassociate/2002-05-15-MissedTree.ll
blob: 1d08a1054e26651d62f180e88023f9c254fbefd1 (plain)
1
2
3
4
5
6
7
8
9
10
11
; RUN: if as < %s | opt -reassociate -instcombine -constprop -die | dis | grep 5
; RUN: then exit 1
; RUN: else exit 0
; RUN: fi

int "test"(int %A, int %B) {
        %W = add int %B, -5
        %Y = add int %A, 5
        %Z = add int %W, %Y
        ret int %Z
}