Dan Gohman | f17a25c | 2007-07-18 16:29:46 +0000 | [diff] [blame^] | 1 | ; SetCC on boolean values was not implemented! |
| 2 | |
| 3 | ; RUN: llvm-upgrade < %s | llvm-as | opt -constprop -die | llvm-dis | \ |
| 4 | ; RUN: not grep set |
| 5 | |
| 6 | bool "test1"() { |
| 7 | %A = setle bool true, false |
| 8 | %B = setge bool true, false |
| 9 | %C = setlt bool false, true |
| 10 | %D = setgt bool true, false |
| 11 | %E = seteq bool false, false |
| 12 | %F = setne bool false, true |
| 13 | %G = and bool %A, %B |
| 14 | %H = and bool %C, %D |
| 15 | %I = and bool %E, %F |
| 16 | %J = and bool %G, %H |
| 17 | %K = and bool %I, %J |
| 18 | ret bool %K |
| 19 | } |
| 20 | |