aboutsummaryrefslogtreecommitdiff
path: root/test/Transforms/ConstProp/2005-01-28-SetCCGEP.ll
blob: b4984a81727eee903bb05a03f2e574c9047b7924 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
; RUN: llvm-as < %s | opt -constprop | llvm-dis | not grep 'ret bool false'

%b = external global [2 x {  }] 

implementation

bool %f() {
	; tmp.2 -> true, not false.
	%tmp.2 = seteq {  }* getelementptr ([2 x {  }]* %b, int 0, int 0), 
                             getelementptr ([2 x {  }]* %b, int 0, int 1)
	ret bool %tmp.2
}