summaryrefslogtreecommitdiff
path: root/test/Transforms/ConstProp/2002-09-03-SetCC-Bools.ll
blob: 1d08e6f2d52e501b39e5ad4f4f19ccbbe7128a67 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
; SetCC on boolean values was not implemented!

; RUN: llvm-as < %s | opt -constprop -die | llvm-dis | not grep 'set'

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
}