[llvm-commits] CVS: llvm/test/Regression/Transforms/InstCombine/2003-06-22-ConstantExprCrash.ll

Chris Lattner lattner at cs.uiuc.edu
Sun Jun 22 15:46:01 PDT 2003


Changes in directory llvm/test/Regression/Transforms/InstCombine:

2003-06-22-ConstantExprCrash.ll added (r1.1)

---
Log message:

New testcase


---
Diffs of the changes:

Index: llvm/test/Regression/Transforms/InstCombine/2003-06-22-ConstantExprCrash.ll
diff -c /dev/null llvm/test/Regression/Transforms/InstCombine/2003-06-22-ConstantExprCrash.ll:1.1
*** /dev/null	Sun Jun 22 15:45:51 2003
--- llvm/test/Regression/Transforms/InstCombine/2003-06-22-ConstantExprCrash.ll	Sun Jun 22 15:45:39 2003
***************
*** 0 ****
--- 1,12 ----
+ ; This is a bug in the VMcode library, not instcombine, it's just convenient 
+ ; to expose it here.
+ 
+ ; RUN: as < %s | opt -instcombine -disable-output
+ 
+ %A = global int 1
+ %B = global int 2
+ 
+ bool %test() {
+ 	%C = setlt int* getelementptr (int* %A, long 1), getelementptr (int* %B, long 2)    ; Will get promoted to constantexpr
+ 	ret bool %C
+ }





More information about the llvm-commits mailing list