#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*/ link_error();
int /*<<< orphan*/ sinl(long double);
int /*<<< orphan*/ tanl(long double);
void test2l(long double x, long double y) {
  if (-tanl(x - y) != tanl(y - x))
    link_error();
  if (-sinl(x - y) != sinl(y - x))
    link_error();
}


x86 assembly (clang, -O0):
<test2l>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
fldt   0x20(%rbp)
fldt   0x10(%rbp)
fstpt  -0x10(%rbp)
fstpt  -0x20(%rbp)
fldt   -0x10(%rbp)
fldt   -0x20(%rbp)
fsubrp %st,%st(1)
mov    %rsp,%rax
fstpt  (%rax)
call   1040 <tanl@plt>
neg    %eax
mov    %eax,-0x24(%rbp)
fldt   -0x20(%rbp)
fldt   -0x10(%rbp)
fsubrp %st,%st(1)
mov    %rsp,%rax
fstpt  (%rax)
call   1040 <tanl@plt>
mov    %eax,%ecx
mov    -0x24(%rbp),%eax
cmp    %ecx,%eax
je     1181 <test2l+0x51>
mov    $0x0,%al
call   1050 <link_error@plt>
fldt   -0x10(%rbp)
fldt   -0x20(%rbp)
fsubrp %st,%st(1)
mov    %rsp,%rax
fstpt  (%rax)
call   1030 <sinl@plt>
neg    %eax
mov    %eax,-0x28(%rbp)
fldt   -0x20(%rbp)
fldt   -0x10(%rbp)
fsubrp %st,%st(1)
mov    %rsp,%rax
fstpt  (%rax)
call   1030 <sinl@plt>
mov    %eax,%ecx
mov    -0x28(%rbp),%eax
cmp    %ecx,%eax
je     11be <test2l+0x8e>
mov    $0x0,%al
call   1050 <link_error@plt>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test2l>:
push   %rbx
sub    $0x40,%rsp
fldt   0x60(%rsp)
fld    %st(0)
fstpt  0x28(%rsp)
fldt   0x50(%rsp)
fld    %st(0)
fstpt  0x1c(%rsp)
fsubp  %st,%st(1)
fld    %st(0)
fstpt  0x34(%rsp)
fstpt  (%rsp)
call   1040 <tanl@plt>
mov    %eax,%ebx
fldt   0x1c(%rsp)
fldt   0x28(%rsp)
fsubp  %st,%st(1)
fld    %st(0)
fstpt  0x1c(%rsp)
fstpt  (%rsp)
call   1040 <tanl@plt>
add    %ebx,%eax
je     117e <test2l+0x4e>
xor    %eax,%eax
call   1050 <link_error@plt>
fldt   0x34(%rsp)
fstpt  (%rsp)
call   1030 <sinl@plt>
mov    %eax,%ebx
fldt   0x1c(%rsp)
fstpt  (%rsp)
call   1030 <sinl@plt>
add    %ebx,%eax
jne    11a2 <test2l+0x72>
add    $0x40,%rsp
pop    %rbx
ret
xor    %eax,%eax
add    $0x40,%rsp
pop    %rbx
jmp    1050 <link_error@plt>

LLVM IR (-O0):
define void @test2l(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 = load x86_fp80, x86_fp80* %4
%7 = fsub x86_fp80 %5, %6
%8 = call i32 @tanl(x86_fp80 %7)
%9 = sub nsw i32 0, %8
%10 = load x86_fp80, x86_fp80* %4
%11 = load x86_fp80, x86_fp80* %3
%12 = fsub x86_fp80 %10, %11
%13 = call i32 @tanl(x86_fp80 %12)
%14 = icmp ne i32 %9, %13
br i1 %14, label %15, label %17
15: ; preds = %2
%16 = call i32 (...) @link_error()
br label %17
17: ; preds = %15, %2
%18 = load x86_fp80, x86_fp80* %3
%19 = load x86_fp80, x86_fp80* %4
%20 = fsub x86_fp80 %18, %19
%21 = call i32 @sinl(x86_fp80 %20)
%22 = sub nsw i32 0, %21
%23 = load x86_fp80, x86_fp80* %4
%24 = load x86_fp80, x86_fp80* %3
%25 = fsub x86_fp80 %23, %24
%26 = call i32 @sinl(x86_fp80 %25)
%27 = icmp ne i32 %22, %26
br i1 %27, label %28, label %30
28: ; preds = %17
%29 = call i32 (...) @link_error()
br label %30
30: ; preds = %28, %17
ret void
}

LLVM IR (-O2):
define void @test2l(x86_fp80 %0, x86_fp80 %1) {
%3 = fsub x86_fp80 %0, %1
%4 = tail call i32 @tanl(x86_fp80 %3)
%5 = sub nsw i32 0, %4
%6 = fsub x86_fp80 %1, %0
%7 = tail call i32 @tanl(x86_fp80 %6)
%8 = icmp eq i32 %7, %5
br i1 %8, label %11, label %9
9: ; preds = %2
%10 = tail call i32 (...) @link_error()
br label %11
11: ; preds = %9, %2
%12 = tail call i32 @sinl(x86_fp80 %3)
%13 = sub nsw i32 0, %12
%14 = tail call i32 @sinl(x86_fp80 %6)
%15 = icmp eq i32 %14, %13
br i1 %15, label %18, label %16
16: ; preds = %11
%17 = tail call i32 (...) @link_error()
br label %18
18: ; preds = %16, %11
ret void
}