#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*/ printf(char *, float, float, int, int, int, int, int, int);
void comparisonTestff(float a, float b) {
  printf("%g op %g: < %d   <= %d   == %d   >= %d   > %d   != %d\n", a, b,
         a<b, a <= b, a == b, a >= b, a> b, a != b);
}


x86 assembly (clang, -O0):
<comparisonTestff>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movss  %xmm0,-0x4(%rbp)
movss  %xmm1,-0x8(%rbp)
movss  -0x4(%rbp),%xmm0
movss  -0x8(%rbp),%xmm1
movss  -0x4(%rbp),%xmm3
movss  -0x8(%rbp),%xmm2
ucomiss %xmm3,%xmm2
seta   %al
and    $0x1,%al
movzbl %al,%esi
movss  -0x4(%rbp),%xmm3
movss  -0x8(%rbp),%xmm2
ucomiss %xmm3,%xmm2
setae  %al
and    $0x1,%al
movzbl %al,%edx
movss  -0x4(%rbp),%xmm2
ucomiss -0x8(%rbp),%xmm2
sete   %al
setnp  %cl
and    %cl,%al
and    $0x1,%al
movzbl %al,%ecx
movss  -0x4(%rbp),%xmm2
ucomiss -0x8(%rbp),%xmm2
setae  %al
and    $0x1,%al
movzbl %al,%r8d
movss  -0x4(%rbp),%xmm2
ucomiss -0x8(%rbp),%xmm2
seta   %al
and    $0x1,%al
movzbl %al,%r9d
movss  -0x4(%rbp),%xmm2
ucomiss -0x8(%rbp),%xmm2
setne  %al
setp   %dil
or     %dil,%al
and    $0x1,%al
movzbl %al,%eax
lea    0xe51(%rip),%rdi
mov    %eax,(%rsp)
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<comparisonTestff>:
push   %rax
xor    %esi,%esi
xor    %edx,%edx
ucomiss %xmm0,%xmm1
seta   %sil
setae  %dl
movaps %xmm0,%xmm2
cmpeqss %xmm1,%xmm2
movd   %xmm2,%ecx
and    $0x1,%ecx
xor    %r8d,%r8d
xor    %r9d,%r9d
ucomiss %xmm1,%xmm0
seta   %r9b
setae  %r8b
movaps %xmm0,%xmm2
cmpneqss %xmm1,%xmm2
movd   %xmm2,%eax
and    $0x1,%eax
mov    %eax,(%rsp)
lea    0xea8(%rip),%rdi
call   1030 <printf@plt>
pop    %rax
ret

LLVM IR (-O0):
@.str = [55 x i8] c"%g op %g: < %d <= %d == %d >= %d > %d != %d\0A\00"
define void @comparisonTestff(float %0, float %1) {
%3 = alloca float
%4 = alloca float
store float %0, float* %3
store float %1, float* %4
%5 = load float, float* %3
%6 = load float, float* %4
%7 = load float, float* %3
%8 = load float, float* %4
%9 = fcmp olt float %7, %8
%10 = zext i1 %9 to i32
%11 = load float, float* %3
%12 = load float, float* %4
%13 = fcmp ole float %11, %12
%14 = zext i1 %13 to i32
%15 = load float, float* %3
%16 = load float, float* %4
%17 = fcmp oeq float %15, %16
%18 = zext i1 %17 to i32
%19 = load float, float* %3
%20 = load float, float* %4
%21 = fcmp oge float %19, %20
%22 = zext i1 %21 to i32
%23 = load float, float* %3
%24 = load float, float* %4
%25 = fcmp ogt float %23, %24
%26 = zext i1 %25 to i32
%27 = load float, float* %3
%28 = load float, float* %4
%29 = fcmp une float %27, %28
%30 = zext i1 %29 to i32
%31 = call i32 @printf(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str, i64 0, i64 0), float %5, float %6, i32 %10, i32 %14, i32 %18, i32 %22, i32 %26, i32 %30)
ret void
}

LLVM IR (-O2):
@.str = [55 x i8] c"%g op %g: < %d <= %d == %d >= %d > %d != %d\0A\00"
define void @comparisonTestff(float %0, float %1) {
%3 = fcmp olt float %0, %1
%4 = zext i1 %3 to i32
%5 = fcmp ole float %0, %1
%6 = zext i1 %5 to i32
%7 = fcmp oeq float %0, %1
%8 = zext i1 %7 to i32
%9 = fcmp oge float %0, %1
%10 = zext i1 %9 to i32
%11 = fcmp ogt float %0, %1
%12 = zext i1 %11 to i32
%13 = fcmp une float %0, %1
%14 = zext i1 %13 to i32
%15 = tail call i32 @printf(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str, i64 0, i64 0), float %0, float %1, i32 %4, i32 %6, i32 %8, i32 %10, i32 %12, i32 %14)
ret void
}