Model stacksave and stackrestore as both writing memory, since we
[oota-llvm.git] / test / Transforms / InstCombine / canonicalize_branch.ll
1 ; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | \
2 ; RUN:    not grep {setne\|setle\|setge}
3
4 int %test1(uint %X, uint %Y) {
5         %C = setne uint %X, %Y
6         br bool %C, label %T, label %F
7 T:
8         ret int 12
9 F:
10         ret int 123
11 }
12
13 int %test2(uint %X, uint %Y) {
14         %C = setle uint %X, %Y
15         br bool %C, label %T, label %F
16 T:
17         ret int 12
18 F:
19         ret int 123
20 }
21 int %test3(uint %X, uint %Y) {
22         %C = setge uint %X, %Y
23         br bool %C, label %T, label %F
24 T:
25         ret int 12
26 F:
27         ret int 123
28 }