#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
long double __builtin_infl();
int /*<<< orphan*/ abort();
void testl(long double f, long double i) {
  if (f == __builtin_infl())
    abort();
  if (f == -__builtin_infl())
    abort();
  if (i == -__builtin_infl())
    abort();
  if (i != __builtin_infl())
    abort();
  if (f >= __builtin_infl())
    abort();
  if (f > __builtin_infl())
    abort();
  if (i > __builtin_infl())
    abort();
  if (f <= -__builtin_infl())
    abort();
  if (f < -__builtin_infl())
    abort();
}


x86 assembly (clang, -O0):
<testl>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
fldt   0x20(%rbp)
fldt   0x10(%rbp)
fstpt  -0x10(%rbp)
fstpt  -0x20(%rbp)
fldt   -0x10(%rbp)
flds   0xed3(%rip)
fxch   %st(1)
fucomip %st(1),%st
fstp   %st(0)
jb     1145 <testl+0x35>
jmp    113e <testl+0x2e>
mov    $0x0,%al
call   1030 <abort@plt>
fldt   -0x10(%rbp)
flds   0xeb6(%rip)
fucomip %st(1),%st
fstp   %st(0)
jb     1164 <testl+0x54>
jmp    115d <testl+0x4d>
mov    $0x0,%al
call   1030 <abort@plt>
fldt   -0x20(%rbp)
flds   0xe97(%rip)
fucomip %st(1),%st
fstp   %st(0)
jb     1183 <testl+0x73>
jmp    117c <testl+0x6c>
mov    $0x0,%al
call   1030 <abort@plt>
fldt   -0x20(%rbp)
flds   0xe74(%rip)
fxch   %st(1)
fucomip %st(1),%st
fstp   %st(0)
jae    11a4 <testl+0x94>
jmp    119d <testl+0x8d>
mov    $0x0,%al
call   1030 <abort@plt>
fldt   -0x10(%rbp)
flds   0xe53(%rip)
fxch   %st(1)
fucomip %st(1),%st
fstp   %st(0)
jb     11c5 <testl+0xb5>
jmp    11be <testl+0xae>
mov    $0x0,%al
call   1030 <abort@plt>
fldt   -0x10(%rbp)
flds   0xe32(%rip)
fxch   %st(1)
fucomip %st(1),%st
fstp   %st(0)
jbe    11e6 <testl+0xd6>
jmp    11df <testl+0xcf>
mov    $0x0,%al
call   1030 <abort@plt>
fldt   -0x20(%rbp)
flds   0xe11(%rip)
fxch   %st(1)
fucomip %st(1),%st
fstp   %st(0)
jbe    1207 <testl+0xf7>
jmp    1200 <testl+0xf0>
mov    $0x0,%al
call   1030 <abort@plt>
fldt   -0x10(%rbp)
flds   0xdf4(%rip)
fucomip %st(1),%st
fstp   %st(0)
jb     1226 <testl+0x116>
jmp    121f <testl+0x10f>
mov    $0x0,%al
call   1030 <abort@plt>
fldt   -0x10(%rbp)
flds   0xdd5(%rip)
fucomip %st(1),%st
fstp   %st(0)
jbe    1245 <testl+0x135>
jmp    123e <testl+0x12e>
mov    $0x0,%al
call   1030 <abort@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<testl>:
push   %rax
fldt   0x20(%rsp)
fldt   0x10(%rsp)
flds   0xee1(%rip)
fxch   %st(1)
fucomi %st(1),%st
jae    114f <testl+0x3f>
flds   0xed9(%rip)
fucomi %st(1),%st
jae    1149 <testl+0x39>
fucomi %st(3),%st
jae    1149 <testl+0x39>
fxch   %st(3)
fucomip %st(2),%st
jb     114f <testl+0x3f>
fucomi %st(1),%st
fstp   %st(1)
jae    1151 <testl+0x41>
fxch   %st(1)
fucomip %st(1),%st
fstp   %st(0)
jae    1155 <testl+0x45>
pop    %rax
ret
fstp   %st(1)
fstp   %st(1)
jmp    1151 <testl+0x41>
fstp   %st(0)
fstp   %st(0)
fstp   %st(0)
xor    %eax,%eax
call   1030 <abort@plt>

LLVM IR (-O0):
define void @testl(x86_fp80 %0, x86_fp80 %1) {
%3 = alloca x86_fp80
%4 = alloca x86_fp80
store x86_fp80 %0, x86_fp80* %3
store x86_fp80 %1, x86_fp80* %4
%5 = load x86_fp80, x86_fp80* %3
%6 = fcmp oeq x86_fp80 %5, 0xK7FFF8000000000000000
br i1 %6, label %7, label %9
7: ; preds = %2
%8 = call i32 (...) @abort()
unreachable
9: ; preds = %2
%10 = load x86_fp80, x86_fp80* %3
%11 = fcmp oeq x86_fp80 %10, 0xKFFFF8000000000000000
br i1 %11, label %12, label %14
12: ; preds = %9
%13 = call i32 (...) @abort()
unreachable
14: ; preds = %9
%15 = load x86_fp80, x86_fp80* %4
%16 = fcmp oeq x86_fp80 %15, 0xKFFFF8000000000000000
br i1 %16, label %17, label %19
17: ; preds = %14
%18 = call i32 (...) @abort()
unreachable
19: ; preds = %14
%20 = load x86_fp80, x86_fp80* %4
%21 = fcmp une x86_fp80 %20, 0xK7FFF8000000000000000
br i1 %21, label %22, label %24
22: ; preds = %19
%23 = call i32 (...) @abort()
unreachable
24: ; preds = %19
%25 = load x86_fp80, x86_fp80* %3
%26 = fcmp oge x86_fp80 %25, 0xK7FFF8000000000000000
br i1 %26, label %27, label %29
27: ; preds = %24
%28 = call i32 (...) @abort()
unreachable
29: ; preds = %24
%30 = load x86_fp80, x86_fp80* %3
%31 = fcmp ogt x86_fp80 %30, 0xK7FFF8000000000000000
br i1 %31, label %32, label %34
32: ; preds = %29
%33 = call i32 (...) @abort()
unreachable
34: ; preds = %29
%35 = load x86_fp80, x86_fp80* %4
%36 = fcmp ogt x86_fp80 %35, 0xK7FFF8000000000000000
br i1 %36, label %37, label %39
37: ; preds = %34
%38 = call i32 (...) @abort()
unreachable
39: ; preds = %34
%40 = load x86_fp80, x86_fp80* %3
%41 = fcmp ole x86_fp80 %40, 0xKFFFF8000000000000000
br i1 %41, label %42, label %44
42: ; preds = %39
%43 = call i32 (...) @abort()
unreachable
44: ; preds = %39
%45 = load x86_fp80, x86_fp80* %3
%46 = fcmp olt x86_fp80 %45, 0xKFFFF8000000000000000
br i1 %46, label %47, label %49
47: ; preds = %44
%48 = call i32 (...) @abort()
unreachable
49: ; preds = %44
ret void
}

LLVM IR (-O2):
define void @testl(x86_fp80 %0, x86_fp80 %1) {
%3 = fcmp oeq x86_fp80 %0, 0xK7FFF8000000000000000
br i1 %3, label %4, label %6
4: ; preds = %2
%5 = tail call i32 (...) @abort()
unreachable
6: ; preds = %2
%7 = fcmp oeq x86_fp80 %0, 0xKFFFF8000000000000000
br i1 %7, label %8, label %10
8: ; preds = %6
%9 = tail call i32 (...) @abort()
unreachable
10: ; preds = %6
%11 = fcmp oeq x86_fp80 %1, 0xKFFFF8000000000000000
br i1 %11, label %12, label %14
12: ; preds = %10
%13 = tail call i32 (...) @abort()
unreachable
14: ; preds = %10
%15 = fcmp une x86_fp80 %1, 0xK7FFF8000000000000000
br i1 %15, label %16, label %18
16: ; preds = %14
%17 = tail call i32 (...) @abort()
unreachable
18: ; preds = %14
%19 = fcmp ult x86_fp80 %0, 0xK7FFF8000000000000000
br i1 %19, label %22, label %20
20: ; preds = %18
%21 = tail call i32 (...) @abort()
unreachable
22: ; preds = %18
%23 = fcmp ugt x86_fp80 %0, 0xKFFFF8000000000000000
br i1 %23, label %26, label %24
24: ; preds = %22
%25 = tail call i32 (...) @abort()
unreachable
26: ; preds = %22
ret void
}