llvm.org GIT mirror llvm / baefa33
New testcase for GEP folding git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7982 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 16 years ago
1 changed file(s) with 18 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 ; RUN: as < %s | opt -instcombine -simplifycfg | dis | not grep br
1
2 %.str_1 = internal constant [6 x sbyte] c"_Bool\00" ; <[6 x sbyte]*> [#uses=1]
3
4 implementation
5
6 int %test() {
7 %tmp.54 = load sbyte* getelementptr (sbyte* getelementptr ([6 x sbyte]* %.str_1, long 0, long 0), long 1)
8 ; [#uses=1]
9 %tmp.55 = setne sbyte %tmp.54, 66 ; [#uses=1]
10 br bool %tmp.55, label %then.7, label %endif.7
11 then.7:
12 br label %then.7
13 endif.7:
14 ret int 0
15
16 }
17