[llvm-commits] CVS: llvm/test/Regression/Transforms/ConstProp/2003-05-12-DivideError.ll
Chris Lattner
lattner at cs.uiuc.edu
Mon May 12 10:20:02 PDT 2003
Changes in directory llvm/test/Regression/Transforms/ConstProp:
2003-05-12-DivideError.ll added (r1.1)
---
Log message:
Testcase which kills the constant folder
---
Diffs of the changes:
Index: llvm/test/Regression/Transforms/ConstProp/2003-05-12-DivideError.ll
diff -c /dev/null llvm/test/Regression/Transforms/ConstProp/2003-05-12-DivideError.ll:1.1
*** /dev/null Mon May 12 10:19:03 2003
--- llvm/test/Regression/Transforms/ConstProp/2003-05-12-DivideError.ll Mon May 12 10:18:53 2003
***************
*** 0 ****
--- 1,15 ----
+ ; Make sure that the constant propagator doesn't cause a sigfpe
+ ;
+ ; RUN: as < %s | opt -constprop
+ ;
+
+ int "test"() {
+ %R = div int -2147483648, -1
+ ret int %R
+ }
+
+ int "test2"() {
+ %R = rem int -2147483648, -1
+ ret int %R
+ }
+
More information about the llvm-commits
mailing list