More tests
[oota-llvm.git] / test / Transforms / InstCombine / set.ll
1 ; This test makes sure that these instructions are properly eliminated.
2 ;
3
4 ; RUN: if as < %s | opt -instcombine -dce | dis | grep set
5 ; RUN: then exit 1
6 ; RUN: else exit 0
7 ; RUN: fi
8
9 implementation
10
11 bool "test1"(int %A) {
12         %B = seteq int %A, %A
13         ret bool %B
14 }
15
16 bool "test2"(int %A) {
17         %B = setne int %A, %A
18         ret bool %B
19 }
20
21 bool "test3"(int %A) {
22         %B = setlt int %A, %A
23         ret bool %B
24 }
25
26 bool "test4"(int %A) {
27         %B = setgt int %A, %A
28         ret bool %B
29 }
30
31 bool "test5"(int %A) {
32         %B = setle int %A, %A
33         ret bool %B
34 }
35
36 bool "test6"(int %A) {
37         %B = setge int %A, %A
38         ret bool %B
39 }