aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/Generic/2005-10-21-longlonggtu.ll
blob: 602321398af29beb902216845925828ec1d2a6fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
; RUN: llvm-upgrade < %s | llvm-as | llc
float %t(long %u) {
	%u = cast long %u to ulong		; <ulong> [#uses=1]
	%tmp5 = add ulong %u, 9007199254740991		; <ulong> [#uses=1]
	%tmp = setgt ulong %tmp5, 18014398509481982		; <bool> [#uses=1]
	br bool %tmp, label %T, label %F
T:
	ret float 1.0
F:
	call float %t(long 0)
	ret float 0.0
}