Mercurial > hg > CbC > CbC_llvm
diff test/Assembler/2003-08-20-ConstantExprGEP-Fold.ll @ 0:95c75e76d11b LLVM3.4
LLVM 3.4
author | Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 12 Dec 2013 13:56:28 +0900 |
parents | |
children | 54457678186b |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test/Assembler/2003-08-20-ConstantExprGEP-Fold.ll Thu Dec 12 13:56:28 2013 +0900 @@ -0,0 +1,16 @@ +; RUN: opt < %s -instcombine -simplifycfg -S | not grep br + +@.str_1 = internal constant [6 x i8] c"_Bool\00" ; <[6 x i8]*> [#uses=2] + +define i32 @test() { + %tmp.54 = load i8* getelementptr ([6 x i8]* @.str_1, i64 0, i64 1) ; <i8> [#uses=1] + %tmp.55 = icmp ne i8 %tmp.54, 66 ; <i1> [#uses=1] + br i1 %tmp.55, label %then.7, label %endif.7 + +then.7: ; preds = %then.7, %0 + br label %then.7 + +endif.7: ; preds = %0 + ret i32 0 +} +