Chris Lattner | 8617b35 | 2002-09-03 20:09:23 +0000 | [diff] [blame^] | 1 | ; SetCC on boolean values was not implemented! |
| 2 | |
| 3 | ; RUN: if as < %s | opt -constprop -die | dis | grep 'set' |
| 4 | ; RUN: then exit 1 |
| 5 | ; RUN: else exit 0 |
| 6 | ; RUN: fi |
| 7 | |
| 8 | bool "test1"() { |
| 9 | %A = setle bool true, false |
| 10 | %B = setge bool true, false |
| 11 | %C = setlt bool false, true |
| 12 | %D = setgt bool true, false |
| 13 | %E = seteq bool false, false |
| 14 | %F = setne bool false, true |
| 15 | %G = and bool %A, %B |
| 16 | %H = and bool %C, %D |
| 17 | %I = and bool %E, %F |
| 18 | %J = and bool %G, %H |
| 19 | %K = and bool %I, %J |
| 20 | ret bool %K |
| 21 | } |
| 22 | |