#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 */
int /*<<< orphan*/ foo_1(float, double, long double, int, int, int, int, int,
                         int, int, int);
void __attribute__((__no__))
foo(float f, double d, long double ld, int res_unord, int res_isnan,
    int res_isinf, int res_isfin, int res_isnorm, int classification) {
  foo_1(f, d, ld, res_unord, res_isnan, res_isinf, res_isinf, res_isfin,
        res_isnorm, 0, classification);
  foo_1(-f, -d, -ld, res_unord, res_isnan, res_isinf, -res_isinf, res_isfin,
        res_isnorm, 1, classification);
}


x86 assembly (clang, -O0):
<foo>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
fldt   0x10(%rbp)
movss  %xmm0,-0x4(%rbp)
movsd  %xmm1,-0x10(%rbp)
fstpt  -0x20(%rbp)
mov    %edi,-0x24(%rbp)
mov    %esi,-0x28(%rbp)
mov    %edx,-0x2c(%rbp)
mov    %ecx,-0x30(%rbp)
mov    %r8d,-0x34(%rbp)
mov    %r9d,-0x38(%rbp)
movss  -0x4(%rbp),%xmm0
movsd  -0x10(%rbp),%xmm1
fldt   -0x20(%rbp)
mov    -0x24(%rbp),%edi
mov    -0x28(%rbp),%esi
mov    -0x2c(%rbp),%ecx
mov    -0x30(%rbp),%r8d
mov    -0x34(%rbp),%r9d
mov    -0x38(%rbp),%edx
mov    %rsp,%rax
mov    %edx,0x18(%rax)
fstpt  (%rax)
movl   $0x0,0x10(%rax)
mov    %ecx,%edx
call   1030 <foo_1@plt>
movaps 0xe86(%rip),%xmm1
movss  -0x4(%rbp),%xmm0
pxor   %xmm1,%xmm0
movaps 0xe86(%rip),%xmm2
movsd  -0x10(%rbp),%xmm1
pxor   %xmm2,%xmm1
fldt   -0x20(%rbp)
fchs
mov    -0x24(%rbp),%edi
mov    -0x28(%rbp),%esi
mov    -0x2c(%rbp),%edx
xor    %ecx,%ecx
sub    -0x2c(%rbp),%ecx
mov    -0x30(%rbp),%r8d
mov    -0x34(%rbp),%r9d
mov    -0x38(%rbp),%r10d
mov    %rsp,%rax
mov    %r10d,0x18(%rax)
fstpt  (%rax)
movl   $0x1,0x10(%rax)
call   1030 <foo_1@plt>
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<foo>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x58,%rsp
mov    %r9d,%r13d
mov    %r8d,%r14d
mov    %ecx,%r15d
mov    %edx,%ebx
mov    %esi,%r12d
mov    %edi,%ebp
movaps %xmm1,0x40(%rsp)
movaps %xmm0,0x30(%rsp)
fldt   0x90(%rsp)
fld    %st(0)
fstpt  0x24(%rsp)
mov    %r9d,0x18(%rsp)
fstpt  (%rsp)
movl   $0x0,0x10(%rsp)
mov    %edx,%ecx
mov    %r15d,%r8d
mov    %r14d,%r9d
call   1030 <foo_1@plt>
movaps 0x30(%rsp),%xmm0
xorps  0xe92(%rip),%xmm0
movaps 0x40(%rsp),%xmm1
xorps  0xe96(%rip),%xmm1
fldt   0x24(%rsp)
fchs
mov    %ebx,%ecx
neg    %ecx
mov    %r13d,0x18(%rsp)
fstpt  (%rsp)
movl   $0x1,0x10(%rsp)
mov    %ebp,%edi
mov    %r12d,%esi
mov    %ebx,%edx
mov    %r15d,%r8d
mov    %r14d,%r9d
call   1030 <foo_1@plt>
add    $0x58,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define void @foo(float %0, double %1, x86_fp80 %2, i32 %3, i32 %4, i32 %5, i32 %6, i32 %7, i32 %8) {
%10 = alloca float
%11 = alloca double
%12 = alloca x86_fp80
%13 = alloca i32
%14 = alloca i32
%15 = alloca i32
%16 = alloca i32
%17 = alloca i32
%18 = alloca i32
store float %0, float* %10
store double %1, double* %11
store x86_fp80 %2, x86_fp80* %12
store i32 %3, i32* %13
store i32 %4, i32* %14
store i32 %5, i32* %15
store i32 %6, i32* %16
store i32 %7, i32* %17
store i32 %8, i32* %18
%19 = load float, float* %10
%20 = load double, double* %11
%21 = load x86_fp80, x86_fp80* %12
%22 = load i32, i32* %13
%23 = load i32, i32* %14
%24 = load i32, i32* %15
%25 = load i32, i32* %15
%26 = load i32, i32* %16
%27 = load i32, i32* %17
%28 = load i32, i32* %18
%29 = call i32 @foo_1(float %19, double %20, x86_fp80 %21, i32 %22, i32 %23, i32 %24, i32 %25, i32 %26, i32 %27, i32 0, i32 %28)
%30 = load float, float* %10
%31 = fneg float %30
%32 = load double, double* %11
%33 = fneg double %32
%34 = load x86_fp80, x86_fp80* %12
%35 = fneg x86_fp80 %34
%36 = load i32, i32* %13
%37 = load i32, i32* %14
%38 = load i32, i32* %15
%39 = load i32, i32* %15
%40 = sub nsw i32 0, %39
%41 = load i32, i32* %16
%42 = load i32, i32* %17
%43 = load i32, i32* %18
%44 = call i32 @foo_1(float %31, double %33, x86_fp80 %35, i32 %36, i32 %37, i32 %38, i32 %40, i32 %41, i32 %42, i32 1, i32 %43)
ret void
}

LLVM IR (-O2):
define void @foo(float %0, double %1, x86_fp80 %2, i32 %3, i32 %4, i32 %5, i32 %6, i32 %7, i32 %8) {
%10 = tail call i32 @foo_1(float %0, double %1, x86_fp80 %2, i32 %3, i32 %4, i32 %5, i32 %5, i32 %6, i32 %7, i32 0, i32 %8)
%11 = fneg float %0
%12 = fneg double %1
%13 = fneg x86_fp80 %2
%14 = sub nsw i32 0, %5
%15 = tail call i32 @foo_1(float %11, double %12, x86_fp80 %13, i32 %3, i32 %4, i32 %5, i32 %14, i32 %6, i32 %7, i32 1, i32 %8)
ret void
}