blob: d445e5920fa8a032a534cf9f4280ae6bae03258e [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001; RUN: llvm-upgrade < %s | llvm-as | llc
2float %t(long %u_arg) {
3 %u = cast long %u_arg to ulong ; <ulong> [#uses=1]
4 %tmp5 = add ulong %u, 9007199254740991 ; <ulong> [#uses=1]
5 %tmp = setgt ulong %tmp5, 18014398509481982 ; <bool> [#uses=1]
6 br bool %tmp, label %T, label %F
7T:
8 ret float 1.0
9F:
10 call float %t(long 0)
11 ret float 0.0
12}