2002-09-04 04:09:23 +08:00
|
|
|
; SetCC on boolean values was not implemented!
|
|
|
|
|
2007-04-16 23:31:49 +08:00
|
|
|
; RUN: llvm-upgrade < %s | llvm-as | opt -constprop -die | llvm-dis | \
|
|
|
|
; RUN: not grep set
|
2002-09-04 04:09:23 +08:00
|
|
|
|
|
|
|
bool "test1"() {
|
|
|
|
%A = setle bool true, false
|
|
|
|
%B = setge bool true, false
|
|
|
|
%C = setlt bool false, true
|
|
|
|
%D = setgt bool true, false
|
|
|
|
%E = seteq bool false, false
|
|
|
|
%F = setne bool false, true
|
|
|
|
%G = and bool %A, %B
|
|
|
|
%H = and bool %C, %D
|
|
|
|
%I = and bool %E, %F
|
|
|
|
%J = and bool %G, %H
|
|
|
|
%K = and bool %I, %J
|
|
|
|
ret bool %K
|
|
|
|
}
|
|
|
|
|