blob: d635ffd8b5a7a21139b0d96428b912df4ad37f08 [file] [log] [blame]
Chris Lattnerfd747f82004-03-12 06:01:00 +00001; This test makes sure that these instructions are properly eliminated.
2;
3
4; RUN: llvm-as < %s | opt -instcombine | llvm-dis | not grep select
5
6implementation
7
8int %test1(int %A, int %B) {
9 %C = select bool false, int %A, int %B
10 ret int %C
11}
12
13int %test2(int %A, int %B) {
14 %C = select bool true, int %A, int %B
15 ret int %C
16}
17
18