int main() {
  if (test__fixunsdfdi(0.0, 0))
    return 1;
  if (test__fixunsdfdi(0.5, 0))
    return 1;
  if (test__fixunsdfdi(0.99, 0))
    return 1;
  if (test__fixunsdfdi(1.0, 1))
    return 1;
  if (test__fixunsdfdi(1.5, 1))
    return 1;
  if (test__fixunsdfdi(1.99, 1))
    return 1;
  if (test__fixunsdfdi(2.0, 2))
    return 1;
  if (test__fixunsdfdi(2.01, 2))
    return 1;
  if (test__fixunsdfdi(-0.5, 0))
    return 1;
  if (test__fixunsdfdi(-0.99, 0))
    return 1;
  if (test__fixunsdfdi(-1.0, 0))
    return 1;
  if (test__fixunsdfdi(-1.5, 0))
    return 1;
  if (test__fixunsdfdi(-1.99, 0))
    return 1;
  if (test__fixunsdfdi(-2.0, 0))
    return 1;
  if (test__fixunsdfdi(-2.01, 0))
    return 1;
  if (test__fixunsdfdi(0x1.FFFFFEp+62, 0x7FFFFF8000000000LL))
    return 1;
  if (test__fixunsdfdi(0x1.FFFFFCp+62, 0x7FFFFF0000000000LL))
    return 1;
  if (test__fixunsdfdi(-0x1.FFFFFEp+62, 0))
    return 1;
  if (test__fixunsdfdi(-0x1.FFFFFCp+62, 0))
    return 1;
  if (test__fixunsdfdi(0x1.FFFFFFFFFFFFFp+63, 0xFFFFFFFFFFFFF800LL))
    return 1;
  if (test__fixunsdfdi(0x1.0000000000000p+63, 0x8000000000000000LL))
    return 1;
  if (test__fixunsdfdi(0x1.FFFFFFFFFFFFFp+62, 0x7FFFFFFFFFFFFC00LL))
    return 1;
  if (test__fixunsdfdi(0x1.FFFFFFFFFFFFEp+62, 0x7FFFFFFFFFFFF800LL))
    return 1;
  if (test__fixunsdfdi(-0x1.FFFFFFFFFFFFFp+62, 0))
    return 1;
  if (test__fixunsdfdi(-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__fixunsdfdi@plt>
cmp    $0x0,%eax
je     1140 <main+0x30>
movl   $0x1,-0x4(%rbp)
jmp    1513 <main+0x403>
movsd  0xeb8(%rip),%xmm0
xor    %edi,%edi
mov    $0x1,%al
call   1030 <test__fixunsdfdi@plt>
cmp    $0x0,%eax
je     1166 <main+0x56>
movl   $0x1,-0x4(%rbp)
jmp    1513 <main+0x403>
movsd  0xe9a(%rip),%xmm0
xor    %edi,%edi
mov    $0x1,%al
call   1030 <test__fixunsdfdi@plt>
cmp    $0x0,%eax
je     118c <main+0x7c>
movl   $0x1,-0x4(%rbp)
jmp    1513 <main+0x403>
movsd  0xe7c(%rip),%xmm0
mov    $0x1,%edi
mov    $0x1,%al
call   1030 <test__fixunsdfdi@plt>
cmp    $0x0,%eax
je     11b5 <main+0xa5>
movl   $0x1,-0x4(%rbp)
jmp    1513 <main+0x403>
movsd  0xe5b(%rip),%xmm0
mov    $0x1,%edi
mov    $0x1,%al
call   1030 <test__fixunsdfdi@plt>
cmp    $0x0,%eax
je     11de <main+0xce>
movl   $0x1,-0x4(%rbp)
jmp    1513 <main+0x403>
movsd  0xe3a(%rip),%xmm0
mov    $0x1,%edi
mov    $0x1,%al
call   1030 <test__fixunsdfdi@plt>
cmp    $0x0,%eax
je     1207 <main+0xf7>
movl   $0x1,-0x4(%rbp)
jmp    1513 <main+0x403>
movsd  0xe19(%rip),%xmm0
mov    $0x2,%edi
mov    $0x1,%al
call   1030 <test__fixunsdfdi@plt>
cmp    $0x0,%eax
je     1230 <main+0x120>
movl   $0x1,-0x4(%rbp)
jmp    1513 <main+0x403>
movsd  0xdf8(%rip),%xmm0
mov    $0x2,%edi
mov    $0x1,%al
call   1030 <test__fixunsdfdi@plt>
cmp    $0x0,%eax
je     1259 <main+0x149>
movl   $0x1,-0x4(%rbp)
jmp    1513 <main+0x403>
movsd  0xdd7(%rip),%xmm0
xor    %edi,%edi
mov    $0x1,%al
call   1030 <test__fixunsdfdi@plt>
cmp    $0x0,%eax
je     127f <main+0x16f>
movl   $0x1,-0x4(%rbp)
jmp    1513 <main+0x403>
movsd  0xdb9(%rip),%xmm0
xor    %edi,%edi
mov    $0x1,%al
call   1030 <test__fixunsdfdi@plt>
cmp    $0x0,%eax
je     12a5 <main+0x195>
movl   $0x1,-0x4(%rbp)
jmp    1513 <main+0x403>
movsd  0xd9b(%rip),%xmm0
xor    %edi,%edi
mov    $0x1,%al
call   1030 <test__fixunsdfdi@plt>
cmp    $0x0,%eax
je     12cb <main+0x1bb>
movl   $0x1,-0x4(%rbp)
jmp    1513 <main+0x403>
movsd  0xd7d(%rip),%xmm0
xor    %edi,%edi
mov    $0x1,%al
call   1030 <test__fixunsdfdi@plt>
cmp    $0x0,%eax
je     12f1 <main+0x1e1>
movl   $0x1,-0x4(%rbp)
jmp    1513 <main+0x403>
movsd  0xd5f(%rip),%xmm0
xor    %edi,%edi
mov    $0x1,%al
call   1030 <test__fixunsdfdi@plt>
cmp    $0x0,%eax
je     1317 <main+0x207>
movl   $0x1,-0x4(%rbp)
jmp    1513 <main+0x403>
movsd  0xd41(%rip),%xmm0
xor    %edi,%edi
mov    $0x1,%al
call   1030 <test__fixunsdfdi@plt>
cmp    $0x0,%eax
je     133d <main+0x22d>
movl   $0x1,-0x4(%rbp)
jmp    1513 <main+0x403>
movsd  0xd23(%rip),%xmm0
xor    %edi,%edi
mov    $0x1,%al
call   1030 <test__fixunsdfdi@plt>
cmp    $0x0,%eax
je     1363 <main+0x253>
movl   $0x1,-0x4(%rbp)
jmp    1513 <main+0x403>
movsd  0xd05(%rip),%xmm0
movabs $0x7fffff8000000000,%rdi
ff ff 7f
mov    $0x1,%al
call   1030 <test__fixunsdfdi@plt>
cmp    $0x0,%eax
je     1391 <main+0x281>
movl   $0x1,-0x4(%rbp)
jmp    1513 <main+0x403>
movsd  0xcdf(%rip),%xmm0
movabs $0x7fffff0000000000,%rdi
ff ff 7f
mov    $0x1,%al
call   1030 <test__fixunsdfdi@plt>
cmp    $0x0,%eax
je     13bf <main+0x2af>
movl   $0x1,-0x4(%rbp)
jmp    1513 <main+0x403>
movsd  0xcb9(%rip),%xmm0
xor    %edi,%edi
mov    $0x1,%al
call   1030 <test__fixunsdfdi@plt>
cmp    $0x0,%eax
je     13e5 <main+0x2d5>
movl   $0x1,-0x4(%rbp)
jmp    1513 <main+0x403>
movsd  0xc9b(%rip),%xmm0
xor    %edi,%edi
mov    $0x1,%al
call   1030 <test__fixunsdfdi@plt>
cmp    $0x0,%eax
je     140b <main+0x2fb>
movl   $0x1,-0x4(%rbp)
jmp    1513 <main+0x403>
movsd  0xc7d(%rip),%xmm0
mov    $0xfffffffffffff800,%rdi
mov    $0x1,%al
call   1030 <test__fixunsdfdi@plt>
cmp    $0x0,%eax
je     1436 <main+0x326>
movl   $0x1,-0x4(%rbp)
jmp    1513 <main+0x403>
movsd  0xc5a(%rip),%xmm0
movabs $0x8000000000000000,%rdi
mov    $0x1,%al
call   1030 <test__fixunsdfdi@plt>
cmp    $0x0,%eax
je     1464 <main+0x354>
movl   $0x1,-0x4(%rbp)
jmp    1513 <main+0x403>
movsd  0xc34(%rip),%xmm0
movabs $0x7ffffffffffffc00,%rdi
ff ff 7f
mov    $0x1,%al
call   1030 <test__fixunsdfdi@plt>
cmp    $0x0,%eax
je     1492 <main+0x382>
movl   $0x1,-0x4(%rbp)
jmp    1513 <main+0x403>
movsd  0xc0e(%rip),%xmm0
movabs $0x7ffffffffffff800,%rdi
ff ff 7f
mov    $0x1,%al
call   1030 <test__fixunsdfdi@plt>
cmp    $0x0,%eax
je     14c0 <main+0x3b0>
movl   $0x1,-0x4(%rbp)
jmp    1513 <main+0x403>
movsd  0xbe8(%rip),%xmm0
xor    %edi,%edi
mov    $0x1,%al
call   1030 <test__fixunsdfdi@plt>
cmp    $0x0,%eax
je     14e6 <main+0x3d6>
movl   $0x1,-0x4(%rbp)
jmp    1513 <main+0x403>
movsd  0xbca(%rip),%xmm0
xor    %edi,%edi
mov    $0x1,%al
call   1030 <test__fixunsdfdi@plt>
cmp    $0x0,%eax
je     150c <main+0x3fc>
movl   $0x1,-0x4(%rbp)
jmp    1513 <main+0x403>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
push   %rax
xorps  %xmm0,%xmm0
xor    %edi,%edi
mov    $0x1,%al
call   1030 <test__fixunsdfdi@plt>
mov    $0x1,%ebx
test   %eax,%eax
jne    13bc <main+0x2ac>
movsd  0xecb(%rip),%xmm0
xor    %edi,%edi
mov    $0x1,%al
call   1030 <test__fixunsdfdi@plt>
test   %eax,%eax
jne    13bc <main+0x2ac>
movsd  0xeba(%rip),%xmm0
xor    %edi,%edi
mov    $0x1,%al
call   1030 <test__fixunsdfdi@plt>
test   %eax,%eax
jne    13bc <main+0x2ac>
movsd  0xea9(%rip),%xmm0
mov    $0x1,%ebx
mov    $0x1,%edi
mov    $0x1,%al
call   1030 <test__fixunsdfdi@plt>
test   %eax,%eax
jne    13bc <main+0x2ac>
movsd  0xe90(%rip),%xmm0
mov    $0x1,%ebx
mov    $0x1,%edi
mov    $0x1,%al
call   1030 <test__fixunsdfdi@plt>
test   %eax,%eax
jne    13bc <main+0x2ac>
movsd  0xe77(%rip),%xmm0
mov    $0x1,%ebx
mov    $0x1,%edi
mov    $0x1,%al
call   1030 <test__fixunsdfdi@plt>
test   %eax,%eax
jne    13bc <main+0x2ac>
movsd  0xe5e(%rip),%xmm0
mov    $0x2,%edi
mov    $0x1,%al
call   1030 <test__fixunsdfdi@plt>
test   %eax,%eax
jne    13bc <main+0x2ac>
movsd  0xe4a(%rip),%xmm0
mov    $0x2,%edi
mov    $0x1,%al
call   1030 <test__fixunsdfdi@plt>
test   %eax,%eax
jne    13bc <main+0x2ac>
movsd  0xe36(%rip),%xmm0
xor    %edi,%edi
mov    $0x1,%al
call   1030 <test__fixunsdfdi@plt>
test   %eax,%eax
jne    13bc <main+0x2ac>
movsd  0xe25(%rip),%xmm0
xor    %edi,%edi
mov    $0x1,%al
call   1030 <test__fixunsdfdi@plt>
test   %eax,%eax
jne    13bc <main+0x2ac>
movsd  0xe14(%rip),%xmm0
xor    %edi,%edi
mov    $0x1,%al
call   1030 <test__fixunsdfdi@plt>
test   %eax,%eax
jne    13bc <main+0x2ac>
movsd  0xe03(%rip),%xmm0
xor    %edi,%edi
mov    $0x1,%al
call   1030 <test__fixunsdfdi@plt>
test   %eax,%eax
jne    13bc <main+0x2ac>
movsd  0xdf2(%rip),%xmm0
xor    %edi,%edi
mov    $0x1,%al
call   1030 <test__fixunsdfdi@plt>
test   %eax,%eax
jne    13bc <main+0x2ac>
movsd  0xde1(%rip),%xmm0
xor    %edi,%edi
mov    $0x1,%al
call   1030 <test__fixunsdfdi@plt>
test   %eax,%eax
jne    13bc <main+0x2ac>
movsd  0xdd0(%rip),%xmm0
xor    %edi,%edi
mov    $0x1,%al
call   1030 <test__fixunsdfdi@plt>
test   %eax,%eax
jne    13bc <main+0x2ac>
movsd  0xdbf(%rip),%xmm0
movabs $0x7fffff8000000000,%rdi
ff ff 7f
mov    $0x1,%al
call   1030 <test__fixunsdfdi@plt>
test   %eax,%eax
jne    13bc <main+0x2ac>
movsd  0xda6(%rip),%xmm0
movabs $0x7fffff0000000000,%rdi
ff ff 7f
mov    $0x1,%al
call   1030 <test__fixunsdfdi@plt>
test   %eax,%eax
jne    13bc <main+0x2ac>
movsd  0xd8d(%rip),%xmm0
xor    %edi,%edi
mov    $0x1,%al
call   1030 <test__fixunsdfdi@plt>
test   %eax,%eax
jne    13bc <main+0x2ac>
movsd  0xd7c(%rip),%xmm0
xor    %edi,%edi
mov    $0x1,%al
call   1030 <test__fixunsdfdi@plt>
test   %eax,%eax
jne    13bc <main+0x2ac>
movsd  0xd6b(%rip),%xmm0
mov    $0xfffffffffffff800,%rdi
mov    $0x1,%al
call   1030 <test__fixunsdfdi@plt>
test   %eax,%eax
jne    13bc <main+0x2ac>
movabs $0x7ffffffffffff800,%r14
ff ff 7f
lea    0x800(%r14),%rdi
movsd  0xd44(%rip),%xmm0
mov    $0x1,%al
call   1030 <test__fixunsdfdi@plt>
test   %eax,%eax
jne    13bc <main+0x2ac>
lea    0x400(%r14),%rdi
movsd  0xd32(%rip),%xmm0
mov    $0x1,%al
call   1030 <test__fixunsdfdi@plt>
test   %eax,%eax
jne    13bc <main+0x2ac>
movsd  0xd27(%rip),%xmm0
mov    %r14,%rdi
mov    $0x1,%al
call   1030 <test__fixunsdfdi@plt>
test   %eax,%eax
jne    13bc <main+0x2ac>
movsd  0xd19(%rip),%xmm0
xor    %edi,%edi
mov    $0x1,%al
call   1030 <test__fixunsdfdi@plt>
test   %eax,%eax
jne    13bc <main+0x2ac>
movsd  0xd0c(%rip),%xmm0
xor    %edi,%edi
mov    $0x1,%al
call   1030 <test__fixunsdfdi@plt>
xor    %ebx,%ebx
test   %eax,%eax
setne  %bl
mov    %ebx,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 (double, i32, ...) bitcast (i32 (...)* @test__fixunsdfdi 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 %102
5: ; preds = %0
%6 = call i32 (double, i32, ...) bitcast (i32 (...)* @test__fixunsdfdi 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 %102
9: ; preds = %5
%10 = call i32 (double, i32, ...) bitcast (i32 (...)* @test__fixunsdfdi 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 %102
13: ; preds = %9
%14 = call i32 (double, i32, ...) bitcast (i32 (...)* @test__fixunsdfdi 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 %102
17: ; preds = %13
%18 = call i32 (double, i32, ...) bitcast (i32 (...)* @test__fixunsdfdi 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 %102
21: ; preds = %17
%22 = call i32 (double, i32, ...) bitcast (i32 (...)* @test__fixunsdfdi 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 %102
25: ; preds = %21
%26 = call i32 (double, i32, ...) bitcast (i32 (...)* @test__fixunsdfdi 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 %102
29: ; preds = %25
%30 = call i32 (double, i32, ...) bitcast (i32 (...)* @test__fixunsdfdi 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 %102
33: ; preds = %29
%34 = call i32 (double, i32, ...) bitcast (i32 (...)* @test__fixunsdfdi 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 %102
37: ; preds = %33
%38 = call i32 (double, i32, ...) bitcast (i32 (...)* @test__fixunsdfdi 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 %102
41: ; preds = %37
%42 = call i32 (double, i32, ...) bitcast (i32 (...)* @test__fixunsdfdi 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 %102
45: ; preds = %41
%46 = call i32 (double, i32, ...) bitcast (i32 (...)* @test__fixunsdfdi 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 %102
49: ; preds = %45
%50 = call i32 (double, i32, ...) bitcast (i32 (...)* @test__fixunsdfdi 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 %102
53: ; preds = %49
%54 = call i32 (double, i32, ...) bitcast (i32 (...)* @test__fixunsdfdi 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 %102
57: ; preds = %53
%58 = call i32 (double, i32, ...) bitcast (i32 (...)* @test__fixunsdfdi 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 %102
61: ; preds = %57
%62 = call i32 (double, i64, ...) bitcast (i32 (...)* @test__fixunsdfdi 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 %102
65: ; preds = %61
%66 = call i32 (double, i64, ...) bitcast (i32 (...)* @test__fixunsdfdi 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 %102
69: ; preds = %65
%70 = call i32 (double, i32, ...) bitcast (i32 (...)* @test__fixunsdfdi 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 %102
73: ; preds = %69
%74 = call i32 (double, i32, ...) bitcast (i32 (...)* @test__fixunsdfdi 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 %102
77: ; preds = %73
%78 = call i32 (double, i64, ...) bitcast (i32 (...)* @test__fixunsdfdi 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 %102
81: ; preds = %77
%82 = call i32 (double, i64, ...) bitcast (i32 (...)* @test__fixunsdfdi 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 %102
85: ; preds = %81
%86 = call i32 (double, i64, ...) bitcast (i32 (...)* @test__fixunsdfdi 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 %102
89: ; preds = %85
%90 = call i32 (double, i64, ...) bitcast (i32 (...)* @test__fixunsdfdi 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 %102
93: ; preds = %89
%94 = call i32 (double, i32, ...) bitcast (i32 (...)* @test__fixunsdfdi to i32 (double, i32, ...)*)(double 0xC3DFFFFFFFFFFFFF, i32 0)
%95 = icmp ne i32 %94, 0
br i1 %95, label %96, label %97
96: ; preds = %93
store i32 1, i32* %1
br label %102
97: ; preds = %93
%98 = call i32 (double, i32, ...) bitcast (i32 (...)* @test__fixunsdfdi to i32 (double, i32, ...)*)(double 0xC3DFFFFFFFFFFFFE, i32 0)
%99 = icmp ne i32 %98, 0
br i1 %99, label %100, label %101
100: ; preds = %97
store i32 1, i32* %1
br label %102
101: ; preds = %97
store i32 0, i32* %1
br label %102
102: ; preds = %101, %100, %96, %92, %88, %84, %80, %76, %72, %68, %64, %60, %56, %52, %48, %44, %40, %36, %32, %28, %24, %20, %16, %12, %8, %4
%103 = load i32, i32* %1
ret i32 %103
}

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