int main() {
  if (test__fixunsdfti(0.0, 0))
    return 1;
  if (test__fixunsdfti(0.5, 0))
    return 1;
  if (test__fixunsdfti(0.99, 0))
    return 1;
  if (test__fixunsdfti(1.0, 1))
    return 1;
  if (test__fixunsdfti(1.5, 1))
    return 1;
  if (test__fixunsdfti(1.99, 1))
    return 1;
  if (test__fixunsdfti(2.0, 2))
    return 1;
  if (test__fixunsdfti(2.01, 2))
    return 1;
  if (test__fixunsdfti(-0.5, 0))
    return 1;
  if (test__fixunsdfti(-0.99, 0))
    return 1;
  if (test__fixunsdfti(-1.0, 0))
    return 1;
  if (test__fixunsdfti(-1.5, 0))
    return 1;
  if (test__fixunsdfti(-1.99, 0))
    return 1;
  if (test__fixunsdfti(-2.0, 0))
    return 1;
  if (test__fixunsdfti(-2.01, 0))
    return 1;
  if (test__fixunsdfti(0x1.FFFFFEp+62, 0x7FFFFF8000000000LL))
    return 1;
  if (test__fixunsdfti(0x1.FFFFFCp+62, 0x7FFFFF0000000000LL))
    return 1;
  if (test__fixunsdfti(-0x1.FFFFFEp+62, 0))
    return 1;
  if (test__fixunsdfti(-0x1.FFFFFCp+62, 0))
    return 1;
  if (test__fixunsdfti(0x1.FFFFFFFFFFFFFp+63, 0xFFFFFFFFFFFFF800LL))
    return 1;
  if (test__fixunsdfti(0x1.0000000000000p+63, 0x8000000000000000LL))
    return 1;
  if (test__fixunsdfti(0x1.FFFFFFFFFFFFFp+62, 0x7FFFFFFFFFFFFC00LL))
    return 1;
  if (test__fixunsdfti(0x1.FFFFFFFFFFFFEp+62, 0x7FFFFFFFFFFFF800LL))
    return 1;
  if (test__fixunsdfti(0x1.FFFFFFFFFFFFFp+127,
                       make_ti(0xFFFFFFFFFFFFF800LL, 0)))
    return 1;
  if (test__fixunsdfti(0x1.0000000000000p+127,
                       make_ti(0x8000000000000000LL, 0)))
    return 1;
  if (test__fixunsdfti(0x1.FFFFFFFFFFFFFp+126,
                       make_ti(0x7FFFFFFFFFFFFC00LL, 0)))
    return 1;
  if (test__fixunsdfti(0x1.FFFFFFFFFFFFEp+126,
                       make_ti(0x7FFFFFFFFFFFF800LL, 0)))
    return 1;
  if (test__fixunsdfti(-0x1.FFFFFFFFFFFFFp+62, 0))
    return 1;
  if (test__fixunsdfti(-0x1.FFFFFFFFFFFFEp+62, 0))
    return 1;
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
xorps  %xmm0,%xmm0
xor    %edi,%edi
mov    $0x1,%al
call   1030 <test__fixunsdfti@plt>
cmp    $0x0,%eax
je     1150 <main+0x30>
movl   $0x1,-0x4(%rbp)
jmp    1604 <main+0x4e4>
movsd  0xea8(%rip),%xmm0
xor    %edi,%edi
mov    $0x1,%al
call   1030 <test__fixunsdfti@plt>
cmp    $0x0,%eax
je     1176 <main+0x56>
movl   $0x1,-0x4(%rbp)
jmp    1604 <main+0x4e4>
movsd  0xe8a(%rip),%xmm0
xor    %edi,%edi
mov    $0x1,%al
call   1030 <test__fixunsdfti@plt>
cmp    $0x0,%eax
je     119c <main+0x7c>
movl   $0x1,-0x4(%rbp)
jmp    1604 <main+0x4e4>
movsd  0xe6c(%rip),%xmm0
mov    $0x1,%edi
mov    $0x1,%al
call   1030 <test__fixunsdfti@plt>
cmp    $0x0,%eax
je     11c5 <main+0xa5>
movl   $0x1,-0x4(%rbp)
jmp    1604 <main+0x4e4>
movsd  0xe4b(%rip),%xmm0
mov    $0x1,%edi
mov    $0x1,%al
call   1030 <test__fixunsdfti@plt>
cmp    $0x0,%eax
je     11ee <main+0xce>
movl   $0x1,-0x4(%rbp)
jmp    1604 <main+0x4e4>
movsd  0xe2a(%rip),%xmm0
mov    $0x1,%edi
mov    $0x1,%al
call   1030 <test__fixunsdfti@plt>
cmp    $0x0,%eax
je     1217 <main+0xf7>
movl   $0x1,-0x4(%rbp)
jmp    1604 <main+0x4e4>
movsd  0xe09(%rip),%xmm0
mov    $0x2,%edi
mov    $0x1,%al
call   1030 <test__fixunsdfti@plt>
cmp    $0x0,%eax
je     1240 <main+0x120>
movl   $0x1,-0x4(%rbp)
jmp    1604 <main+0x4e4>
movsd  0xde8(%rip),%xmm0
mov    $0x2,%edi
mov    $0x1,%al
call   1030 <test__fixunsdfti@plt>
cmp    $0x0,%eax
je     1269 <main+0x149>
movl   $0x1,-0x4(%rbp)
jmp    1604 <main+0x4e4>
movsd  0xdc7(%rip),%xmm0
xor    %edi,%edi
mov    $0x1,%al
call   1030 <test__fixunsdfti@plt>
cmp    $0x0,%eax
je     128f <main+0x16f>
movl   $0x1,-0x4(%rbp)
jmp    1604 <main+0x4e4>
movsd  0xda9(%rip),%xmm0
xor    %edi,%edi
mov    $0x1,%al
call   1030 <test__fixunsdfti@plt>
cmp    $0x0,%eax
je     12b5 <main+0x195>
movl   $0x1,-0x4(%rbp)
jmp    1604 <main+0x4e4>
movsd  0xd8b(%rip),%xmm0
xor    %edi,%edi
mov    $0x1,%al
call   1030 <test__fixunsdfti@plt>
cmp    $0x0,%eax
je     12db <main+0x1bb>
movl   $0x1,-0x4(%rbp)
jmp    1604 <main+0x4e4>
movsd  0xd6d(%rip),%xmm0
xor    %edi,%edi
mov    $0x1,%al
call   1030 <test__fixunsdfti@plt>
cmp    $0x0,%eax
je     1301 <main+0x1e1>
movl   $0x1,-0x4(%rbp)
jmp    1604 <main+0x4e4>
movsd  0xd4f(%rip),%xmm0
xor    %edi,%edi
mov    $0x1,%al
call   1030 <test__fixunsdfti@plt>
cmp    $0x0,%eax
je     1327 <main+0x207>
movl   $0x1,-0x4(%rbp)
jmp    1604 <main+0x4e4>
movsd  0xd31(%rip),%xmm0
xor    %edi,%edi
mov    $0x1,%al
call   1030 <test__fixunsdfti@plt>
cmp    $0x0,%eax
je     134d <main+0x22d>
movl   $0x1,-0x4(%rbp)
jmp    1604 <main+0x4e4>
movsd  0xd13(%rip),%xmm0
xor    %edi,%edi
mov    $0x1,%al
call   1030 <test__fixunsdfti@plt>
cmp    $0x0,%eax
je     1373 <main+0x253>
movl   $0x1,-0x4(%rbp)
jmp    1604 <main+0x4e4>
movsd  0xcf5(%rip),%xmm0
movabs $0x7fffff8000000000,%rdi
ff ff 7f
mov    $0x1,%al
call   1030 <test__fixunsdfti@plt>
cmp    $0x0,%eax
je     13a1 <main+0x281>
movl   $0x1,-0x4(%rbp)
jmp    1604 <main+0x4e4>
movsd  0xccf(%rip),%xmm0
movabs $0x7fffff0000000000,%rdi
ff ff 7f
mov    $0x1,%al
call   1030 <test__fixunsdfti@plt>
cmp    $0x0,%eax
je     13cf <main+0x2af>
movl   $0x1,-0x4(%rbp)
jmp    1604 <main+0x4e4>
movsd  0xca9(%rip),%xmm0
xor    %edi,%edi
mov    $0x1,%al
call   1030 <test__fixunsdfti@plt>
cmp    $0x0,%eax
je     13f5 <main+0x2d5>
movl   $0x1,-0x4(%rbp)
jmp    1604 <main+0x4e4>
movsd  0xc8b(%rip),%xmm0
xor    %edi,%edi
mov    $0x1,%al
call   1030 <test__fixunsdfti@plt>
cmp    $0x0,%eax
je     141b <main+0x2fb>
movl   $0x1,-0x4(%rbp)
jmp    1604 <main+0x4e4>
movsd  0xc6d(%rip),%xmm0
mov    $0xfffffffffffff800,%rdi
mov    $0x1,%al
call   1030 <test__fixunsdfti@plt>
cmp    $0x0,%eax
je     1446 <main+0x326>
movl   $0x1,-0x4(%rbp)
jmp    1604 <main+0x4e4>
movsd  0xc4a(%rip),%xmm0
movabs $0x8000000000000000,%rdi
mov    $0x1,%al
call   1030 <test__fixunsdfti@plt>
cmp    $0x0,%eax
je     1474 <main+0x354>
movl   $0x1,-0x4(%rbp)
jmp    1604 <main+0x4e4>
movsd  0xc24(%rip),%xmm0
movabs $0x7ffffffffffffc00,%rdi
ff ff 7f
mov    $0x1,%al
call   1030 <test__fixunsdfti@plt>
cmp    $0x0,%eax
je     14a2 <main+0x382>
movl   $0x1,-0x4(%rbp)
jmp    1604 <main+0x4e4>
movsd  0xbfe(%rip),%xmm0
movabs $0x7ffffffffffff800,%rdi
ff ff 7f
mov    $0x1,%al
call   1030 <test__fixunsdfti@plt>
cmp    $0x0,%eax
je     14d0 <main+0x3b0>
movl   $0x1,-0x4(%rbp)
jmp    1604 <main+0x4e4>
mov    $0xfffffffffffff800,%rdi
xor    %esi,%esi
mov    $0x0,%al
call   1040 <make_ti@plt>
mov    %eax,%edi
movsd  0xbc6(%rip),%xmm0
mov    $0x1,%al
call   1030 <test__fixunsdfti@plt>
cmp    $0x0,%eax
je     1506 <main+0x3e6>
movl   $0x1,-0x4(%rbp)
jmp    1604 <main+0x4e4>
movabs $0x8000000000000000,%rdi
xor    %esi,%esi
mov    $0x0,%al
call   1040 <make_ti@plt>
mov    %eax,%edi
movsd  0xb95(%rip),%xmm0
mov    $0x1,%al
call   1030 <test__fixunsdfti@plt>
cmp    $0x0,%eax
je     153f <main+0x41f>
movl   $0x1,-0x4(%rbp)
jmp    1604 <main+0x4e4>
movabs $0x7ffffffffffffc00,%rdi
ff ff 7f
xor    %esi,%esi
mov    $0x0,%al
call   1040 <make_ti@plt>
mov    %eax,%edi
movsd  0xb64(%rip),%xmm0
mov    $0x1,%al
call   1030 <test__fixunsdfti@plt>
cmp    $0x0,%eax
je     1578 <main+0x458>
movl   $0x1,-0x4(%rbp)
jmp    1604 <main+0x4e4>
movabs $0x7ffffffffffff800,%rdi
ff ff 7f
xor    %esi,%esi
mov    $0x0,%al
call   1040 <make_ti@plt>
mov    %eax,%edi
movsd  0xb33(%rip),%xmm0
mov    $0x1,%al
call   1030 <test__fixunsdfti@plt>
cmp    $0x0,%eax
je     15b1 <main+0x491>
movl   $0x1,-0x4(%rbp)
jmp    1604 <main+0x4e4>
movsd  0xb17(%rip),%xmm0
xor    %edi,%edi
mov    $0x1,%al
call   1030 <test__fixunsdfti@plt>
cmp    $0x0,%eax
je     15d7 <main+0x4b7>
movl   $0x1,-0x4(%rbp)
jmp    1604 <main+0x4e4>
movsd  0xaf9(%rip),%xmm0
xor    %edi,%edi
mov    $0x1,%al
call   1030 <test__fixunsdfti@plt>
cmp    $0x0,%eax
je     15fd <main+0x4dd>
movl   $0x1,-0x4(%rbp)
jmp    1604 <main+0x4e4>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r12
push   %rbx
push   %rax
xorps  %xmm0,%xmm0
xor    %edi,%edi
mov    $0x1,%al
call   1030 <test__fixunsdfti@plt>
mov    $0x1,%ebx
test   %eax,%eax
jne    146e <main+0x34e>
movsd  0xeb7(%rip),%xmm0
xor    %edi,%edi
mov    $0x1,%al
call   1030 <test__fixunsdfti@plt>
test   %eax,%eax
jne    146e <main+0x34e>
movsd  0xea6(%rip),%xmm0
xor    %edi,%edi
mov    $0x1,%al
call   1030 <test__fixunsdfti@plt>
test   %eax,%eax
jne    146e <main+0x34e>
movsd  0xe95(%rip),%xmm0
mov    $0x1,%ebx
mov    $0x1,%edi
mov    $0x1,%al
call   1030 <test__fixunsdfti@plt>
test   %eax,%eax
jne    146e <main+0x34e>
movsd  0xe7c(%rip),%xmm0
mov    $0x1,%ebx
mov    $0x1,%edi
mov    $0x1,%al
call   1030 <test__fixunsdfti@plt>
test   %eax,%eax
jne    146e <main+0x34e>
movsd  0xe63(%rip),%xmm0
mov    $0x1,%ebx
mov    $0x1,%edi
mov    $0x1,%al
call   1030 <test__fixunsdfti@plt>
test   %eax,%eax
jne    146e <main+0x34e>
movsd  0xe4a(%rip),%xmm0
mov    $0x2,%edi
mov    $0x1,%al
call   1030 <test__fixunsdfti@plt>
test   %eax,%eax
jne    146e <main+0x34e>
movsd  0xe36(%rip),%xmm0
mov    $0x2,%edi
mov    $0x1,%al
call   1030 <test__fixunsdfti@plt>
test   %eax,%eax
jne    146e <main+0x34e>
movsd  0xe22(%rip),%xmm0
xor    %edi,%edi
mov    $0x1,%al
call   1030 <test__fixunsdfti@plt>
test   %eax,%eax
jne    146e <main+0x34e>
movsd  0xe11(%rip),%xmm0
xor    %edi,%edi
mov    $0x1,%al
call   1030 <test__fixunsdfti@plt>
test   %eax,%eax
jne    146e <main+0x34e>
movsd  0xe00(%rip),%xmm0
xor    %edi,%edi
mov    $0x1,%al
call   1030 <test__fixunsdfti@plt>
test   %eax,%eax
jne    146e <main+0x34e>
movsd  0xdef(%rip),%xmm0
xor    %edi,%edi
mov    $0x1,%al
call   1030 <test__fixunsdfti@plt>
test   %eax,%eax
jne    146e <main+0x34e>
movsd  0xdde(%rip),%xmm0
xor    %edi,%edi
mov    $0x1,%al
call   1030 <test__fixunsdfti@plt>
test   %eax,%eax
jne    146e <main+0x34e>
movsd  0xdcd(%rip),%xmm0
xor    %edi,%edi
mov    $0x1,%al
call   1030 <test__fixunsdfti@plt>
test   %eax,%eax
jne    146e <main+0x34e>
movsd  0xdbc(%rip),%xmm0
xor    %edi,%edi
mov    $0x1,%al
call   1030 <test__fixunsdfti@plt>
test   %eax,%eax
jne    146e <main+0x34e>
movsd  0xdab(%rip),%xmm0
movabs $0x7fffff8000000000,%rdi
ff ff 7f
mov    $0x1,%al
call   1030 <test__fixunsdfti@plt>
test   %eax,%eax
jne    146e <main+0x34e>
movsd  0xd92(%rip),%xmm0
movabs $0x7fffff0000000000,%rdi
ff ff 7f
mov    $0x1,%al
call   1030 <test__fixunsdfti@plt>
test   %eax,%eax
jne    146e <main+0x34e>
movsd  0xd79(%rip),%xmm0
xor    %edi,%edi
mov    $0x1,%al
call   1030 <test__fixunsdfti@plt>
test   %eax,%eax
jne    146e <main+0x34e>
movsd  0xd68(%rip),%xmm0
xor    %edi,%edi
mov    $0x1,%al
call   1030 <test__fixunsdfti@plt>
test   %eax,%eax
jne    146e <main+0x34e>
movsd  0xd57(%rip),%xmm0
mov    $0xfffffffffffff800,%rdi
mov    $0x1,%al
call   1030 <test__fixunsdfti@plt>
test   %eax,%eax
jne    146e <main+0x34e>
movabs $0x7ffffffffffff800,%r14
ff ff 7f
lea    0x800(%r14),%r12
movsd  0xd30(%rip),%xmm0
mov    %r12,%rdi
mov    $0x1,%al
call   1030 <test__fixunsdfti@plt>
test   %eax,%eax
jne    146e <main+0x34e>
lea    0x400(%r14),%r15
movsd  0xd17(%rip),%xmm0
mov    %r15,%rdi
mov    $0x1,%al
call   1030 <test__fixunsdfti@plt>
test   %eax,%eax
jne    146e <main+0x34e>
movsd  0xd05(%rip),%xmm0
mov    %r14,%rdi
mov    $0x1,%al
call   1030 <test__fixunsdfti@plt>
test   %eax,%eax
jne    146e <main+0x34e>
mov    $0xfffffffffffff800,%rdi
xor    %esi,%esi
xor    %eax,%eax
call   1040 <make_ti@plt>
movsd  0xce3(%rip),%xmm0
mov    %eax,%edi
mov    $0x1,%al
call   1030 <test__fixunsdfti@plt>
test   %eax,%eax
jne    146e <main+0x34e>
mov    %r12,%rdi
xor    %esi,%esi
xor    %eax,%eax
call   1040 <make_ti@plt>
movsd  0xcc6(%rip),%xmm0
mov    %eax,%edi
mov    $0x1,%al
call   1030 <test__fixunsdfti@plt>
test   %eax,%eax
jne    146e <main+0x34e>
mov    %r15,%rdi
xor    %esi,%esi
xor    %eax,%eax
call   1040 <make_ti@plt>
movsd  0xcad(%rip),%xmm0
mov    %eax,%edi
mov    $0x1,%al
call   1030 <test__fixunsdfti@plt>
test   %eax,%eax
jne    146e <main+0x34e>
mov    %r14,%rdi
xor    %esi,%esi
xor    %eax,%eax
call   1040 <make_ti@plt>
movsd  0xc94(%rip),%xmm0
mov    %eax,%edi
mov    $0x1,%al
call   1030 <test__fixunsdfti@plt>
test   %eax,%eax
jne    146e <main+0x34e>
movsd  0xc87(%rip),%xmm0
xor    %edi,%edi
mov    $0x1,%al
call   1030 <test__fixunsdfti@plt>
test   %eax,%eax
jne    146e <main+0x34e>
movsd  0xc7a(%rip),%xmm0
xor    %edi,%edi
mov    $0x1,%al
call   1030 <test__fixunsdfti@plt>
xor    %ebx,%ebx
test   %eax,%eax
setne  %bl
mov    %ebx,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 (double, i32, ...) bitcast (i32 (...)* @test__fixunsdfti to i32 (double, i32, ...)*)(double 0.000000e+00, i32 0)
%3 = icmp ne i32 %2, 0
br i1 %3, label %4, label %5
4: ; preds = %0
store i32 1, i32* %1
br label %122
5: ; preds = %0
%6 = call i32 (double, i32, ...) bitcast (i32 (...)* @test__fixunsdfti to i32 (double, i32, ...)*)(double 5.000000e-01, i32 0)
%7 = icmp ne i32 %6, 0
br i1 %7, label %8, label %9
8: ; preds = %5
store i32 1, i32* %1
br label %122
9: ; preds = %5
%10 = call i32 (double, i32, ...) bitcast (i32 (...)* @test__fixunsdfti to i32 (double, i32, ...)*)(double 0x3FEFAE147AE147AE, i32 0)
%11 = icmp ne i32 %10, 0
br i1 %11, label %12, label %13
12: ; preds = %9
store i32 1, i32* %1
br label %122
13: ; preds = %9
%14 = call i32 (double, i32, ...) bitcast (i32 (...)* @test__fixunsdfti to i32 (double, i32, ...)*)(double 1.000000e+00, i32 1)
%15 = icmp ne i32 %14, 0
br i1 %15, label %16, label %17
16: ; preds = %13
store i32 1, i32* %1
br label %122
17: ; preds = %13
%18 = call i32 (double, i32, ...) bitcast (i32 (...)* @test__fixunsdfti to i32 (double, i32, ...)*)(double 1.500000e+00, i32 1)
%19 = icmp ne i32 %18, 0
br i1 %19, label %20, label %21
20: ; preds = %17
store i32 1, i32* %1
br label %122
21: ; preds = %17
%22 = call i32 (double, i32, ...) bitcast (i32 (...)* @test__fixunsdfti to i32 (double, i32, ...)*)(double 1.990000e+00, i32 1)
%23 = icmp ne i32 %22, 0
br i1 %23, label %24, label %25
24: ; preds = %21
store i32 1, i32* %1
br label %122
25: ; preds = %21
%26 = call i32 (double, i32, ...) bitcast (i32 (...)* @test__fixunsdfti to i32 (double, i32, ...)*)(double 2.000000e+00, i32 2)
%27 = icmp ne i32 %26, 0
br i1 %27, label %28, label %29
28: ; preds = %25
store i32 1, i32* %1
br label %122
29: ; preds = %25
%30 = call i32 (double, i32, ...) bitcast (i32 (...)* @test__fixunsdfti to i32 (double, i32, ...)*)(double 2.010000e+00, i32 2)
%31 = icmp ne i32 %30, 0
br i1 %31, label %32, label %33
32: ; preds = %29
store i32 1, i32* %1
br label %122
33: ; preds = %29
%34 = call i32 (double, i32, ...) bitcast (i32 (...)* @test__fixunsdfti to i32 (double, i32, ...)*)(double -5.000000e-01, i32 0)
%35 = icmp ne i32 %34, 0
br i1 %35, label %36, label %37
36: ; preds = %33
store i32 1, i32* %1
br label %122
37: ; preds = %33
%38 = call i32 (double, i32, ...) bitcast (i32 (...)* @test__fixunsdfti to i32 (double, i32, ...)*)(double 0xBFEFAE147AE147AE, i32 0)
%39 = icmp ne i32 %38, 0
br i1 %39, label %40, label %41
40: ; preds = %37
store i32 1, i32* %1
br label %122
41: ; preds = %37
%42 = call i32 (double, i32, ...) bitcast (i32 (...)* @test__fixunsdfti to i32 (double, i32, ...)*)(double -1.000000e+00, i32 0)
%43 = icmp ne i32 %42, 0
br i1 %43, label %44, label %45
44: ; preds = %41
store i32 1, i32* %1
br label %122
45: ; preds = %41
%46 = call i32 (double, i32, ...) bitcast (i32 (...)* @test__fixunsdfti to i32 (double, i32, ...)*)(double -1.500000e+00, i32 0)
%47 = icmp ne i32 %46, 0
br i1 %47, label %48, label %49
48: ; preds = %45
store i32 1, i32* %1
br label %122
49: ; preds = %45
%50 = call i32 (double, i32, ...) bitcast (i32 (...)* @test__fixunsdfti to i32 (double, i32, ...)*)(double -1.990000e+00, i32 0)
%51 = icmp ne i32 %50, 0
br i1 %51, label %52, label %53
52: ; preds = %49
store i32 1, i32* %1
br label %122
53: ; preds = %49
%54 = call i32 (double, i32, ...) bitcast (i32 (...)* @test__fixunsdfti to i32 (double, i32, ...)*)(double -2.000000e+00, i32 0)
%55 = icmp ne i32 %54, 0
br i1 %55, label %56, label %57
56: ; preds = %53
store i32 1, i32* %1
br label %122
57: ; preds = %53
%58 = call i32 (double, i32, ...) bitcast (i32 (...)* @test__fixunsdfti to i32 (double, i32, ...)*)(double -2.010000e+00, i32 0)
%59 = icmp ne i32 %58, 0
br i1 %59, label %60, label %61
60: ; preds = %57
store i32 1, i32* %1
br label %122
61: ; preds = %57
%62 = call i32 (double, i64, ...) bitcast (i32 (...)* @test__fixunsdfti to i32 (double, i64, ...)*)(double 0x43DFFFFFE0000000, i64 9223371487098961920)
%63 = icmp ne i32 %62, 0
br i1 %63, label %64, label %65
64: ; preds = %61
store i32 1, i32* %1
br label %122
65: ; preds = %61
%66 = call i32 (double, i64, ...) bitcast (i32 (...)* @test__fixunsdfti to i32 (double, i64, ...)*)(double 0x43DFFFFFC0000000, i64 9223370937343148032)
%67 = icmp ne i32 %66, 0
br i1 %67, label %68, label %69
68: ; preds = %65
store i32 1, i32* %1
br label %122
69: ; preds = %65
%70 = call i32 (double, i32, ...) bitcast (i32 (...)* @test__fixunsdfti to i32 (double, i32, ...)*)(double 0xC3DFFFFFE0000000, i32 0)
%71 = icmp ne i32 %70, 0
br i1 %71, label %72, label %73
72: ; preds = %69
store i32 1, i32* %1
br label %122
73: ; preds = %69
%74 = call i32 (double, i32, ...) bitcast (i32 (...)* @test__fixunsdfti to i32 (double, i32, ...)*)(double 0xC3DFFFFFC0000000, i32 0)
%75 = icmp ne i32 %74, 0
br i1 %75, label %76, label %77
76: ; preds = %73
store i32 1, i32* %1
br label %122
77: ; preds = %73
%78 = call i32 (double, i64, ...) bitcast (i32 (...)* @test__fixunsdfti to i32 (double, i64, ...)*)(double 0x43EFFFFFFFFFFFFF, i64 -2048)
%79 = icmp ne i32 %78, 0
br i1 %79, label %80, label %81
80: ; preds = %77
store i32 1, i32* %1
br label %122
81: ; preds = %77
%82 = call i32 (double, i64, ...) bitcast (i32 (...)* @test__fixunsdfti to i32 (double, i64, ...)*)(double 0x43E0000000000000, i64 -9223372036854775808)
%83 = icmp ne i32 %82, 0
br i1 %83, label %84, label %85
84: ; preds = %81
store i32 1, i32* %1
br label %122
85: ; preds = %81
%86 = call i32 (double, i64, ...) bitcast (i32 (...)* @test__fixunsdfti to i32 (double, i64, ...)*)(double 0x43DFFFFFFFFFFFFF, i64 9223372036854774784)
%87 = icmp ne i32 %86, 0
br i1 %87, label %88, label %89
88: ; preds = %85
store i32 1, i32* %1
br label %122
89: ; preds = %85
%90 = call i32 (double, i64, ...) bitcast (i32 (...)* @test__fixunsdfti to i32 (double, i64, ...)*)(double 0x43DFFFFFFFFFFFFE, i64 9223372036854773760)
%91 = icmp ne i32 %90, 0
br i1 %91, label %92, label %93
92: ; preds = %89
store i32 1, i32* %1
br label %122
93: ; preds = %89
%94 = call i32 (i64, i32, ...) bitcast (i32 (...)* @make_ti to i32 (i64, i32, ...)*)(i64 -2048, i32 0)
%95 = call i32 (double, i32, ...) bitcast (i32 (...)* @test__fixunsdfti to i32 (double, i32, ...)*)(double 0x47EFFFFFFFFFFFFF, i32 %94)
%96 = icmp ne i32 %95, 0
br i1 %96, label %97, label %98
97: ; preds = %93
store i32 1, i32* %1
br label %122
98: ; preds = %93
%99 = call i32 (i64, i32, ...) bitcast (i32 (...)* @make_ti to i32 (i64, i32, ...)*)(i64 -9223372036854775808, i32 0)
%100 = call i32 (double, i32, ...) bitcast (i32 (...)* @test__fixunsdfti to i32 (double, i32, ...)*)(double 0x47E0000000000000, i32 %99)
%101 = icmp ne i32 %100, 0
br i1 %101, label %102, label %103
102: ; preds = %98
store i32 1, i32* %1
br label %122
103: ; preds = %98
%104 = call i32 (i64, i32, ...) bitcast (i32 (...)* @make_ti to i32 (i64, i32, ...)*)(i64 9223372036854774784, i32 0)
%105 = call i32 (double, i32, ...) bitcast (i32 (...)* @test__fixunsdfti to i32 (double, i32, ...)*)(double 0x47DFFFFFFFFFFFFF, i32 %104)
%106 = icmp ne i32 %105, 0
br i1 %106, label %107, label %108
107: ; preds = %103
store i32 1, i32* %1
br label %122
108: ; preds = %103
%109 = call i32 (i64, i32, ...) bitcast (i32 (...)* @make_ti to i32 (i64, i32, ...)*)(i64 9223372036854773760, i32 0)
%110 = call i32 (double, i32, ...) bitcast (i32 (...)* @test__fixunsdfti to i32 (double, i32, ...)*)(double 0x47DFFFFFFFFFFFFE, i32 %109)
%111 = icmp ne i32 %110, 0
br i1 %111, label %112, label %113
112: ; preds = %108
store i32 1, i32* %1
br label %122
113: ; preds = %108
%114 = call i32 (double, i32, ...) bitcast (i32 (...)* @test__fixunsdfti to i32 (double, i32, ...)*)(double 0xC3DFFFFFFFFFFFFF, i32 0)
%115 = icmp ne i32 %114, 0
br i1 %115, label %116, label %117
116: ; preds = %113
store i32 1, i32* %1
br label %122
117: ; preds = %113
%118 = call i32 (double, i32, ...) bitcast (i32 (...)* @test__fixunsdfti to i32 (double, i32, ...)*)(double 0xC3DFFFFFFFFFFFFE, i32 0)
%119 = icmp ne i32 %118, 0
br i1 %119, label %120, label %121
120: ; preds = %117
store i32 1, i32* %1
br label %122
121: ; preds = %117
store i32 0, i32* %1
br label %122
122: ; preds = %121, %120, %116, %112, %107, %102, %97, %92, %88, %84, %80, %76, %72, %68, %64, %60, %56, %52, %48, %44, %40, %36, %32, %28, %24, %20, %16, %12, %8, %4
%123 = load i32, i32* %1
ret i32 %123
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 (double, i32, ...) bitcast (i32 (...)* @test__fixunsdfti to i32 (double, i32, ...)*)(double 0.000000e+00, i32 0)
%2 = icmp eq i32 %1, 0
br i1 %2, label %3, label %92
3: ; preds = %0
%4 = tail call i32 (double, i32, ...) bitcast (i32 (...)* @test__fixunsdfti to i32 (double, i32, ...)*)(double 5.000000e-01, i32 0)
%5 = icmp eq i32 %4, 0
br i1 %5, label %6, label %92
6: ; preds = %3
%7 = tail call i32 (double, i32, ...) bitcast (i32 (...)* @test__fixunsdfti to i32 (double, i32, ...)*)(double 0x3FEFAE147AE147AE, i32 0)
%8 = icmp eq i32 %7, 0
br i1 %8, label %9, label %92
9: ; preds = %6
%10 = tail call i32 (double, i32, ...) bitcast (i32 (...)* @test__fixunsdfti to i32 (double, i32, ...)*)(double 1.000000e+00, i32 1)
%11 = icmp eq i32 %10, 0
br i1 %11, label %12, label %92
12: ; preds = %9
%13 = tail call i32 (double, i32, ...) bitcast (i32 (...)* @test__fixunsdfti to i32 (double, i32, ...)*)(double 1.500000e+00, i32 1)
%14 = icmp eq i32 %13, 0
br i1 %14, label %15, label %92
15: ; preds = %12
%16 = tail call i32 (double, i32, ...) bitcast (i32 (...)* @test__fixunsdfti to i32 (double, i32, ...)*)(double 1.990000e+00, i32 1)
%17 = icmp eq i32 %16, 0
br i1 %17, label %18, label %92
18: ; preds = %15
%19 = tail call i32 (double, i32, ...) bitcast (i32 (...)* @test__fixunsdfti to i32 (double, i32, ...)*)(double 2.000000e+00, i32 2)
%20 = icmp eq i32 %19, 0
br i1 %20, label %21, label %92
21: ; preds = %18
%22 = tail call i32 (double, i32, ...) bitcast (i32 (...)* @test__fixunsdfti to i32 (double, i32, ...)*)(double 2.010000e+00, i32 2)
%23 = icmp eq i32 %22, 0
br i1 %23, label %24, label %92
24: ; preds = %21
%25 = tail call i32 (double, i32, ...) bitcast (i32 (...)* @test__fixunsdfti to i32 (double, i32, ...)*)(double -5.000000e-01, i32 0)
%26 = icmp eq i32 %25, 0
br i1 %26, label %27, label %92
27: ; preds = %24
%28 = tail call i32 (double, i32, ...) bitcast (i32 (...)* @test__fixunsdfti to i32 (double, i32, ...)*)(double 0xBFEFAE147AE147AE, i32 0)
%29 = icmp eq i32 %28, 0
br i1 %29, label %30, label %92
30: ; preds = %27
%31 = tail call i32 (double, i32, ...) bitcast (i32 (...)* @test__fixunsdfti to i32 (double, i32, ...)*)(double -1.000000e+00, i32 0)
%32 = icmp eq i32 %31, 0
br i1 %32, label %33, label %92
33: ; preds = %30
%34 = tail call i32 (double, i32, ...) bitcast (i32 (...)* @test__fixunsdfti to i32 (double, i32, ...)*)(double -1.500000e+00, i32 0)
%35 = icmp eq i32 %34, 0
br i1 %35, label %36, label %92
36: ; preds = %33
%37 = tail call i32 (double, i32, ...) bitcast (i32 (...)* @test__fixunsdfti to i32 (double, i32, ...)*)(double -1.990000e+00, i32 0)
%38 = icmp eq i32 %37, 0
br i1 %38, label %39, label %92
39: ; preds = %36
%40 = tail call i32 (double, i32, ...) bitcast (i32 (...)* @test__fixunsdfti to i32 (double, i32, ...)*)(double -2.000000e+00, i32 0)
%41 = icmp eq i32 %40, 0
br i1 %41, label %42, label %92
42: ; preds = %39
%43 = tail call i32 (double, i32, ...) bitcast (i32 (...)* @test__fixunsdfti to i32 (double, i32, ...)*)(double -2.010000e+00, i32 0)
%44 = icmp eq i32 %43, 0
br i1 %44, label %45, label %92
45: ; preds = %42
%46 = tail call i32 (double, i64, ...) bitcast (i32 (...)* @test__fixunsdfti to i32 (double, i64, ...)*)(double 0x43DFFFFFE0000000, i64 9223371487098961920)
%47 = icmp eq i32 %46, 0
br i1 %47, label %48, label %92
48: ; preds = %45
%49 = tail call i32 (double, i64, ...) bitcast (i32 (...)* @test__fixunsdfti to i32 (double, i64, ...)*)(double 0x43DFFFFFC0000000, i64 9223370937343148032)
%50 = icmp eq i32 %49, 0
br i1 %50, label %51, label %92
51: ; preds = %48
%52 = tail call i32 (double, i32, ...) bitcast (i32 (...)* @test__fixunsdfti to i32 (double, i32, ...)*)(double 0xC3DFFFFFE0000000, i32 0)
%53 = icmp eq i32 %52, 0
br i1 %53, label %54, label %92
54: ; preds = %51
%55 = tail call i32 (double, i32, ...) bitcast (i32 (...)* @test__fixunsdfti to i32 (double, i32, ...)*)(double 0xC3DFFFFFC0000000, i32 0)
%56 = icmp eq i32 %55, 0
br i1 %56, label %57, label %92
57: ; preds = %54
%58 = tail call i32 (double, i64, ...) bitcast (i32 (...)* @test__fixunsdfti to i32 (double, i64, ...)*)(double 0x43EFFFFFFFFFFFFF, i64 -2048)
%59 = icmp eq i32 %58, 0
br i1 %59, label %60, label %92
60: ; preds = %57
%61 = tail call i32 (double, i64, ...) bitcast (i32 (...)* @test__fixunsdfti to i32 (double, i64, ...)*)(double 0x43E0000000000000, i64 -9223372036854775808)
%62 = icmp eq i32 %61, 0
br i1 %62, label %63, label %92
63: ; preds = %60
%64 = tail call i32 (double, i64, ...) bitcast (i32 (...)* @test__fixunsdfti to i32 (double, i64, ...)*)(double 0x43DFFFFFFFFFFFFF, i64 9223372036854774784)
%65 = icmp eq i32 %64, 0
br i1 %65, label %66, label %92
66: ; preds = %63
%67 = tail call i32 (double, i64, ...) bitcast (i32 (...)* @test__fixunsdfti to i32 (double, i64, ...)*)(double 0x43DFFFFFFFFFFFFE, i64 9223372036854773760)
%68 = icmp eq i32 %67, 0
br i1 %68, label %69, label %92
69: ; preds = %66
%70 = tail call i32 (i64, i32, ...) bitcast (i32 (...)* @make_ti to i32 (i64, i32, ...)*)(i64 -2048, i32 0)
%71 = tail call i32 (double, i32, ...) bitcast (i32 (...)* @test__fixunsdfti to i32 (double, i32, ...)*)(double 0x47EFFFFFFFFFFFFF, i32 %70)
%72 = icmp eq i32 %71, 0
br i1 %72, label %73, label %92
73: ; preds = %69
%74 = tail call i32 (i64, i32, ...) bitcast (i32 (...)* @make_ti to i32 (i64, i32, ...)*)(i64 -9223372036854775808, i32 0)
%75 = tail call i32 (double, i32, ...) bitcast (i32 (...)* @test__fixunsdfti to i32 (double, i32, ...)*)(double 0x47E0000000000000, i32 %74)
%76 = icmp eq i32 %75, 0
br i1 %76, label %77, label %92
77: ; preds = %73
%78 = tail call i32 (i64, i32, ...) bitcast (i32 (...)* @make_ti to i32 (i64, i32, ...)*)(i64 9223372036854774784, i32 0)
%79 = tail call i32 (double, i32, ...) bitcast (i32 (...)* @test__fixunsdfti to i32 (double, i32, ...)*)(double 0x47DFFFFFFFFFFFFF, i32 %78)
%80 = icmp eq i32 %79, 0
br i1 %80, label %81, label %92
81: ; preds = %77
%82 = tail call i32 (i64, i32, ...) bitcast (i32 (...)* @make_ti to i32 (i64, i32, ...)*)(i64 9223372036854773760, i32 0)
%83 = tail call i32 (double, i32, ...) bitcast (i32 (...)* @test__fixunsdfti to i32 (double, i32, ...)*)(double 0x47DFFFFFFFFFFFFE, i32 %82)
%84 = icmp eq i32 %83, 0
br i1 %84, label %85, label %92
85: ; preds = %81
%86 = tail call i32 (double, i32, ...) bitcast (i32 (...)* @test__fixunsdfti to i32 (double, i32, ...)*)(double 0xC3DFFFFFFFFFFFFF, i32 0)
%87 = icmp eq i32 %86, 0
br i1 %87, label %88, label %92
88: ; preds = %85
%89 = tail call i32 (double, i32, ...) bitcast (i32 (...)* @test__fixunsdfti to i32 (double, i32, ...)*)(double 0xC3DFFFFFFFFFFFFE, i32 0)
%90 = icmp ne i32 %89, 0
%91 = zext i1 %90 to i32
br label %92
92: ; preds = %88, %85, %81, %77, %73, %69, %66, %63, %60, %57, %54, %51, %48, %45, %42, %39, %36, %33, %30, %27, %24, %21, %18, %15, %12, %9, %6, %3, %0
%93 = phi i32 [ 1, %0 ], [ 1, %3 ], [ 1, %6 ], [ 1, %9 ], [ 1, %12 ], [ 1, %15 ], [ 1, %18 ], [ 1, %21 ], [ 1, %24 ], [ 1, %27 ], [ 1, %30 ], [ 1, %33 ], [ 1, %36 ], [ 1, %39 ], [ 1, %42 ], [ 1, %45 ], [ 1, %48 ], [ 1, %51 ], [ 1, %54 ], [ 1, %57 ], [ 1, %60 ], [ 1, %63 ], [ 1, %66 ], [ 1, %69 ], [ 1, %73 ], [ 1, %77 ], [ 1, %81 ], [ 1, %85 ], [ %91, %88 ]
ret i32 %93
}