blob: 264bb353c315e79a298d1f562579583629f5c375 [file] [log] [blame]
Chris Lattner6022ad02002-05-06 05:51:26 +00001; 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
9implementation
10
11bool "test1"(int %A) {
12 %B = seteq int %A, %A
13 ret bool %B
14}
15
16bool "test2"(int %A) {
17 %B = setne int %A, %A
18 ret bool %B
19}
20
21bool "test3"(int %A) {
22 %B = setlt int %A, %A
23 ret bool %B
24}
25
26bool "test4"(int %A) {
27 %B = setgt int %A, %A
28 ret bool %B
29}
30
31bool "test5"(int %A) {
32 %B = setle int %A, %A
33 ret bool %B
34}
35
36bool "test6"(int %A) {
37 %B = setge int %A, %A
38 ret bool %B
39}