void(libclut_model_cie_1960_ucs_to_ciexyz)(double u, double v, double Y,
                                           double *x, double *y, double *z) {
  do {
    double u__ = (u), v__ = (v), y__ = (Y);
    *(y) = y__;
    *(x) = 3 * y__ * u__ / (2 * v__);
    *(z) = (4 * y__ - y__ * u__ - 10 * y__ * v__) / (2 * v__);
  } while (0);
}


x86 assembly (clang, -O0):
<libclut_model_cie_1960_ucs_to_ciexyz>:
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  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  -0x48(%rbp),%xmm0
mov    -0x28(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  0xec6(%rip),%xmm0
mulsd  -0x48(%rbp),%xmm0
mulsd  -0x38(%rbp),%xmm0
movsd  0xe9c(%rip),%xmm1
mulsd  -0x40(%rbp),%xmm1
divsd  %xmm1,%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  -0x48(%rbp),%xmm1
movsd  -0x48(%rbp),%xmm0
mulsd  -0x38(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  0xe6d(%rip),%xmm2
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  0xe55(%rip),%xmm0
mulsd  -0x48(%rbp),%xmm0
movsd  -0x40(%rbp),%xmm2
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  0xe1c(%rip),%xmm1
mulsd  -0x40(%rbp),%xmm1
divsd  %xmm1,%xmm0
mov    -0x30(%rbp),%rax
movsd  %xmm0,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<libclut_model_cie_1960_ucs_to_ciexyz>:
movsd  %xmm2,(%rsi)
movsd  0xef4(%rip),%xmm3
mulsd  %xmm2,%xmm3
mulsd  %xmm0,%xmm3
mulsd  %xmm2,%xmm0
movsd  0xee8(%rip),%xmm4
mulsd  %xmm2,%xmm4
mulsd  0xee4(%rip),%xmm2
mulsd  %xmm1,%xmm2
addsd  %xmm1,%xmm1
divsd  %xmm1,%xmm3
movsd  %xmm3,(%rdi)
subsd  %xmm0,%xmm4
addsd  %xmm4,%xmm2
divsd  %xmm1,%xmm2
movsd  %xmm2,(%rdx)
ret

LLVM IR (-O0):
define void @libclut_model_cie_1960_ucs_to_ciexyz(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* %9
store double %19, double* %15
%20 = load double, double* %15
%21 = load double*, double** %11
store double %20, double* %21
%22 = load double, double* %15
%23 = fmul double 3.000000e+00, %22
%24 = load double, double* %13
%25 = fmul double %23, %24
%26 = load double, double* %14
%27 = fmul double 2.000000e+00, %26
%28 = fdiv double %25, %27
%29 = load double*, double** %10
store double %28, double* %29
%30 = load double, double* %15
%31 = load double, double* %15
%32 = load double, double* %13
%33 = fmul double %31, %32
%34 = fneg double %33
%35 = call double @llvm.fmuladd.f64(double 4.000000e+00, double %30, double %34)
%36 = load double, double* %15
%37 = fmul double 1.000000e+01, %36
%38 = load double, double* %14
%39 = fneg double %37
%40 = call double @llvm.fmuladd.f64(double %39, double %38, double %35)
%41 = load double, double* %14
%42 = fmul double 2.000000e+00, %41
%43 = fdiv double %40, %42
%44 = load double*, double** %12
store double %43, double* %44
br label %45
45: ; preds = %16
ret void
}

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