Skip to content

Commit

Permalink
New testcase for GEP folding
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7982 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
lattner committed Aug 20, 2003
1 parent c729415 commit baefa33
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions test/Assembler/2003-08-20-ConstantExprGEP-Fold.llx
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
; RUN: as < %s | opt -instcombine -simplifycfg | dis | not grep br

%.str_1 = internal constant [6 x sbyte] c"_Bool\00" ; <[6 x sbyte]*> [#uses=1]

implementation

int %test() {
%tmp.54 = load sbyte* getelementptr (sbyte* getelementptr ([6 x sbyte]* %.str_1, long 0, long 0), long 1)
; <sbyte> [#uses=1]
%tmp.55 = setne sbyte %tmp.54, 66 ; <bool> [#uses=1]
br bool %tmp.55, label %then.7, label %endif.7
then.7:
br label %then.7
endif.7:
ret int 0

}

0 comments on commit baefa33

Please sign in to comment.