0d4e8cac59469d2bc1f3b10a4e388794ef37c426
[oota-llvm.git] / test / Transforms / InstCombine / 2005-06-15-DivSelectCrash.ll
1 ; RUN: llvm-as < %s | opt -instcombine -disable-output
2
3 int %_Z13func_31585107li(int %l_39521025, int %l_59244666) {
4         %shortcirc_val = select bool false, uint 1, uint 0              ; <uint> [#uses=1]
5         %tmp.8 = div uint 0, %shortcirc_val             ; <uint> [#uses=1]
6         %tmp.9 = seteq uint %tmp.8, 0           ; <bool> [#uses=1]
7         %retval = select bool %tmp.9, int %l_59244666, int -1621308501          ; <int> [#uses=1]
8         ret int %retval
9 }