void(libclut_model_ciexyz_to_cie_1960_ucs)(double x, double y, double z,
                                           double *u, double *v, double *Y) {
  do {
    double x__ = (x), y__ = (y);
    double d__ = x__ + 15 * y__ + 3 * (z);
    *(u) = 4 * x__ / d__;
    *(v) = 6 * y__ / d__;
    *(Y) = y__;
  } while (0);
}


x86 assembly (clang, -O0):
<libclut_model_ciexyz_to_cie_1960_ucs>:
push   %rbp
mov    %rsp,%rbp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  %xmm2,-0x18(%rbp)
mov    %rdi,-0x20(%rbp)
mov    %rsi,-0x28(%rbp)
mov    %rdx,-0x30(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  -0x38(%rbp),%xmm0
movsd  -0x40(%rbp),%xmm1
movsd  0xed3(%rip),%xmm2
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  -0x18(%rbp),%xmm0
movsd  0xeb6(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  0xe99(%rip),%xmm0
mulsd  -0x38(%rbp),%xmm0
divsd  -0x48(%rbp),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  0xe77(%rip),%xmm0
mulsd  -0x40(%rbp),%xmm0
divsd  -0x48(%rbp),%xmm0
mov    -0x28(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  -0x40(%rbp),%xmm0
mov    -0x30(%rbp),%rax
movsd  %xmm0,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<libclut_model_ciexyz_to_cie_1960_ucs>:
movsd  0xef8(%rip),%xmm3
mulsd  %xmm1,%xmm3
addsd  %xmm0,%xmm3
mulsd  0xef0(%rip),%xmm2
mulsd  0xef0(%rip),%xmm0
addsd  %xmm3,%xmm2
divsd  %xmm2,%xmm0
movsd  %xmm0,(%rdi)
movsd  0xee4(%rip),%xmm0
mulsd  %xmm1,%xmm0
divsd  %xmm2,%xmm0
movsd  %xmm0,(%rsi)
movsd  %xmm1,(%rdx)
ret

LLVM IR (-O0):
define void @libclut_model_ciexyz_to_cie_1960_ucs(double %0, double %1, double %2, double* %3, double* %4, double* %5) {
%7 = alloca double
%8 = alloca double
%9 = alloca double
%10 = alloca double*
%11 = alloca double*
%12 = alloca double*
%13 = alloca double
%14 = alloca double
%15 = alloca double
store double %0, double* %7
store double %1, double* %8
store double %2, double* %9
store double* %3, double** %10
store double* %4, double** %11
store double* %5, double** %12
br label %16
16: ; preds = %6
%17 = load double, double* %7
store double %17, double* %13
%18 = load double, double* %8
store double %18, double* %14
%19 = load double, double* %13
%20 = load double, double* %14
%21 = call double @llvm.fmuladd.f64(double 1.500000e+01, double %20, double %19)
%22 = load double, double* %9
%23 = call double @llvm.fmuladd.f64(double 3.000000e+00, double %22, double %21)
store double %23, double* %15
%24 = load double, double* %13
%25 = fmul double 4.000000e+00, %24
%26 = load double, double* %15
%27 = fdiv double %25, %26
%28 = load double*, double** %10
store double %27, double* %28
%29 = load double, double* %14
%30 = fmul double 6.000000e+00, %29
%31 = load double, double* %15
%32 = fdiv double %30, %31
%33 = load double*, double** %11
store double %32, double* %33
%34 = load double, double* %14
%35 = load double*, double** %12
store double %34, double* %35
br label %36
36: ; preds = %16
ret void
}

LLVM IR (-O2):
define void @libclut_model_ciexyz_to_cie_1960_ucs(double %0, double %1, double %2, double* nocapture writeonly %3, double* nocapture writeonly %4, double* nocapture writeonly %5) {
%7 = tail call double @llvm.fmuladd.f64(double %1, double 1.500000e+01, double %0)
%8 = tail call double @llvm.fmuladd.f64(double %2, double 3.000000e+00, double %7)
%9 = fmul double %0, 4.000000e+00
%10 = fdiv double %9, %8
store double %10, double* %3
%11 = fmul double %1, 6.000000e+00
%12 = fdiv double %11, %8
store double %12, double* %4
store double %1, double* %5
ret void
}