[llvm-commits] CVS: llvm/test/Regression/Assembler/2003-08-20-ConstantExprGEP-Fold.llx
Chris Lattner
lattner at cs.uiuc.edu
Wed Aug 20 11:12:02 PDT 2003
Changes in directory llvm/test/Regression/Assembler:
2003-08-20-ConstantExprGEP-Fold.llx added (r1.1)
---
Log message:
New testcase for GEP folding
---
Diffs of the changes:
Index: llvm/test/Regression/Assembler/2003-08-20-ConstantExprGEP-Fold.llx
diff -c /dev/null llvm/test/Regression/Assembler/2003-08-20-ConstantExprGEP-Fold.llx:1.1
*** /dev/null Wed Aug 20 11:11:15 2003
--- llvm/test/Regression/Assembler/2003-08-20-ConstantExprGEP-Fold.llx Wed Aug 20 11:11:05 2003
***************
*** 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
+
+ }
+
More information about the llvm-commits
mailing list