Use the llvm-upgrade program to upgrade llvm assembly.
[oota-llvm.git] / test / Transforms / ConstProp / 2003-05-12-DivideError.ll
1 ; Make sure that the constant propagator doesn't cause a sigfpe
2 ;
3 ; RUN: llvm-upgrade < %s | llvm-as | opt -constprop
4 ;
5
6 int "test"() {
7         %R = div int -2147483648, -1
8         ret int %R
9 }
10
11 int "test2"() {
12         %R = rem int -2147483648, -1
13         ret int %R
14 }
15