1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 19:52:54 +01:00

New testcase for bugs in the constant propogator

llvm-svn: 2462
This commit is contained in:
Chris Lattner 2002-05-03 20:25:40 +00:00
parent bc361e36af
commit 578cb6582b

View File

@ -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
}