Dan Gohman | f17a25c | 2007-07-18 16:29:46 +0000 | [diff] [blame^] | 1 | ; Make sure that the constant propogator doesn't divide by zero! |
2 | ; | ||||
3 | ; RUN: llvm-upgrade < %s | llvm-as | opt -constprop | ||||
4 | ; | ||||
5 | |||||
6 | int "test"() { | ||||
7 | %R = div int 12, 0 | ||||
8 | ret int %R | ||||
9 | } | ||||
10 | |||||
11 | int "test2"() { | ||||
12 | %R = rem int 12, 0 | ||||
13 | ret int %R | ||||
14 | } |