summaryrefslogtreecommitdiff
path: root/test/Assembler/2003-08-20-ConstantExprGEP-Fold.llx
blob: 27e3169337347977a0f825953c2f8388868c09e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine -simplifycfg | llvm-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

}