diff options
author | Chris Lattner <sabre@nondot.org> | 2002-05-03 20:25:40 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-05-03 20:25:40 +0000 |
commit | 8a2e64ce87302a80d3d4877f498dfb1df3ba87e1 (patch) | |
tree | 006c8ea42b5def95c3cf3fec7f9872f44f585305 /test/Transforms | |
parent | 6a7cd2206b3d3c5e2026a6f3b70bd6161761aa78 (diff) | |
download | external_llvm-8a2e64ce87302a80d3d4877f498dfb1df3ba87e1.zip external_llvm-8a2e64ce87302a80d3d4877f498dfb1df3ba87e1.tar.gz external_llvm-8a2e64ce87302a80d3d4877f498dfb1df3ba87e1.tar.bz2 |
New testcase for bugs in the constant propogator
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2462 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms')
-rw-r--r-- | test/Transforms/ConstProp/2002-05-03-DivideByZeroException.ll | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/Transforms/ConstProp/2002-05-03-DivideByZeroException.ll b/test/Transforms/ConstProp/2002-05-03-DivideByZeroException.ll new file mode 100644 index 0000000..ddfd7d1 --- /dev/null +++ b/test/Transforms/ConstProp/2002-05-03-DivideByZeroException.ll @@ -0,0 +1,14 @@ +; Make sure that the constant propogator doesn't divide by zero! +; +; RUN: as < %s | opt -constprop +; + +int "test"() { + %R = div int 12, 0 + ret int %R +} + +int "test2"() { + %R = rem int 12, 0 + ret int %R +} |