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:
parent
bc361e36af
commit
578cb6582b
@ -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
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user