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

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

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