aboutsummaryrefslogtreecommitdiffstats
path: root/test/Transforms/ConstProp/2003-05-12-DivideError.ll
blob: b634812abef3a561dd0eeeeecbf87aeea00f444f (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: as < %s | opt -constprop
;

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

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