blob: 6b6b340097dc6eda315b7cd2b93dd7acaf25f6dc [file] [log] [blame]
Chris Lattner8617b352002-09-03 20:09:23 +00001; SetCC on boolean values was not implemented!
2
Reid Spencer69ccadd2006-12-02 04:23:10 +00003; RUN: llvm-upgrade < %s | llvm-as | opt -constprop -die | llvm-dis | not grep 'set'
Chris Lattner8617b352002-09-03 20:09:23 +00004
5bool "test1"() {
6 %A = setle bool true, false
7 %B = setge bool true, false
8 %C = setlt bool false, true
9 %D = setgt bool true, false
10 %E = seteq bool false, false
11 %F = setne bool false, true
12 %G = and bool %A, %B
13 %H = and bool %C, %D
14 %I = and bool %E, %F
15 %J = and bool %G, %H
16 %K = and bool %I, %J
17 ret bool %K
18}
19