#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 */
void glmStep3fv(float out[3], const float x[3], const float edge[3]) {
  for (size_t i = 0; i < 3; ++i)
    out[i] = x[i] >= edge[i];
}


x86 assembly (clang, -O0):
<glmStep3fv>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
movq   $0x0,-0x20(%rbp)
cmpq   $0x3,-0x20(%rbp)
jae    1166 <glmStep3fv+0x66>
mov    -0x10(%rbp),%rax
mov    -0x20(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
mov    -0x18(%rbp),%rax
mov    -0x20(%rbp),%rcx
ucomiss (%rax,%rcx,4),%xmm0
setae  %al
and    $0x1,%al
movzbl %al,%eax
cvtsi2ss %eax,%xmm0
mov    -0x8(%rbp),%rax
mov    -0x20(%rbp),%rcx
movss  %xmm0,(%rax,%rcx,4)
mov    -0x20(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x20(%rbp)
jmp    1118 <glmStep3fv+0x18>
pop    %rbp
ret

x86 assembly (clang, -O2):
<glmStep3fv>:
movss  (%rdx),%xmm0
cmpless (%rsi),%xmm0
movss  0xeef(%rip),%xmm1
andps  %xmm1,%xmm0
movss  %xmm0,(%rdi)
movss  0x4(%rdx),%xmm0
cmpless 0x4(%rsi),%xmm0
andps  %xmm1,%xmm0
movss  %xmm0,0x4(%rdi)
movss  0x8(%rdx),%xmm0
cmpless 0x8(%rsi),%xmm0
andps  %xmm1,%xmm0
movss  %xmm0,0x8(%rdi)
ret

LLVM IR (-O0):
define void @glmStep3fv(float* %0, float* %1, float* %2) {
%4 = alloca float*
%5 = alloca float*
%6 = alloca float*
%7 = alloca i64
store float* %0, float** %4
store float* %1, float** %5
store float* %2, float** %6
store i64 0, i64* %7
br label %8
8: ; preds = %26, %3
%9 = load i64, i64* %7
%10 = icmp ult i64 %9, 3
br i1 %10, label %11, label %29
11: ; preds = %8
%12 = load float*, float** %5
%13 = load i64, i64* %7
%14 = getelementptr inbounds float, float* %12, i64 %13
%15 = load float, float* %14
%16 = load float*, float** %6
%17 = load i64, i64* %7
%18 = getelementptr inbounds float, float* %16, i64 %17
%19 = load float, float* %18
%20 = fcmp oge float %15, %19
%21 = zext i1 %20 to i32
%22 = sitofp i32 %21 to float
%23 = load float*, float** %4
%24 = load i64, i64* %7
%25 = getelementptr inbounds float, float* %23, i64 %24
store float %22, float* %25
br label %26
26: ; preds = %11
%27 = load i64, i64* %7
%28 = add i64 %27, 1
store i64 %28, i64* %7
br label %8
29: ; preds = %8
ret void
}

LLVM IR (-O2):
define void @glmStep3fv(float* nocapture writeonly %0, float* nocapture %1, float* nocapture %2) {
%4 = load float, float* %1
%5 = load float, float* %2
%6 = fcmp oge float %4, %5
%7 = uitofp i1 %6 to float
store float %7, float* %0
%8 = getelementptr inbounds float, float* %1, i64 1
%9 = load float, float* %8
%10 = getelementptr inbounds float, float* %2, i64 1
%11 = load float, float* %10
%12 = fcmp oge float %9, %11
%13 = uitofp i1 %12 to float
%14 = getelementptr inbounds float, float* %0, i64 1
store float %13, float* %14
%15 = getelementptr inbounds float, float* %1, i64 2
%16 = load float, float* %15
%17 = getelementptr inbounds float, float* %2, i64 2
%18 = load float, float* %17
%19 = fcmp oge float %16, %18
%20 = uitofp i1 %19 to float
%21 = getelementptr inbounds float, float* %0, i64 2
store float %20, float* %21
ret void
}