aboutsummaryrefslogtreecommitdiff
path: root/test/Transforms/ConstProp/2003-05-12-DivideError.ll
blob: 289384bfc5dce16f6f639857fc49e53f7b3280a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
; Make sure that the constant propagator doesn't cause a sigfpe
;
; RUN: llvm-upgrade < %s | llvm-as | opt -constprop
;

int "test"() {
        %R = div int -2147483648, -1
        ret int %R
}

int "test2"() {
        %R = rem int -2147483648, -1
        ret int %R
}