summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/InstCombine/2005-06-15-DivSelectCrash.ll
blob: fa862fed2a8b8651236e5509172a6e33e0bf91a0 (plain)
1
2
3
4
5
6
7
8
9
; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine -disable-output

int %_Z13func_31585107li(int %l_39521025, int %l_59244666) {
	%shortcirc_val = select bool false, uint 1, uint 0		; <uint> [#uses=1]
	%tmp.8 = div uint 0, %shortcirc_val		; <uint> [#uses=1]
	%tmp.9 = seteq uint %tmp.8, 0		; <bool> [#uses=1]
	%retval = select bool %tmp.9, int %l_59244666, int -1621308501		; <int> [#uses=1]
	ret int %retval
}
OpenPOWER on IntegriCloud