llvm.org GIT mirror llvm / 2fac727
New testcase. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19873 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 14 years ago
1 changed file(s) with 12 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 ; RUN: llvm-as < %s | opt -constprop | llvm-dis | not grep 'ret bool false'
1
2 %b = external global [2 x { }]
3
4 implementation
5
6 bool %f() {
7 ; tmp.2 -> true, not false.
8 %tmp.2 = seteq { }* getelementptr ([2 x { }]* %b, int 0, int 0),
9 getelementptr ([2 x { }]* %b, int 0, int 1)
10 ret bool %tmp.2
11 }