void CrossProduct_SOA_pure(double *cx, double *cy, double *cz, double *ax,
                           double *ay, double *az, double *bx, double *by,
                           double *bz) {
  *cx = (*ay) * (*bz) - (*az) * (*by);
  *cy = (*az) * (*bx) - (*ax) * (*bz);
  *cz = (*ax) * (*by) - (*ay) * (*bx);
}


x86 assembly (clang, -O0):
<CrossProduct_SOA_pure>:
push   %rbp
mov    %rsp,%rbp
mov    0x20(%rbp),%rax
mov    0x18(%rbp),%rax
mov    0x10(%rbp),%rax
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9,-0x30(%rbp)
mov    -0x28(%rbp),%rax
movsd  (%rax),%xmm0
mov    0x20(%rbp),%rax
movsd  (%rax),%xmm2
mov    -0x30(%rbp),%rax
movsd  (%rax),%xmm1
mov    0x18(%rbp),%rax
mulsd  (%rax),%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x8(%rbp),%rax
movsd  %xmm0,(%rax)
mov    -0x30(%rbp),%rax
movsd  (%rax),%xmm0
mov    0x10(%rbp),%rax
movsd  (%rax),%xmm2
mov    -0x20(%rbp),%rax
movsd  (%rax),%xmm1
mov    0x20(%rbp),%rax
mulsd  (%rax),%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x10(%rbp),%rax
movsd  %xmm0,(%rax)
mov    -0x20(%rbp),%rax
movsd  (%rax),%xmm0
mov    0x18(%rbp),%rax
movsd  (%rax),%xmm2
mov    -0x28(%rbp),%rax
movsd  (%rax),%xmm1
mov    0x10(%rbp),%rax
mulsd  (%rax),%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x18(%rbp),%rax
movsd  %xmm0,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<CrossProduct_SOA_pure>:
mov    0x8(%rsp),%r10
mov    0x18(%rsp),%rax
mov    0x10(%rsp),%r11
movsd  (%r8),%xmm0
movsd  (%r11),%xmm1
mulsd  (%r9),%xmm1
mulsd  (%rax),%xmm0
subsd  %xmm1,%xmm0
movsd  %xmm0,(%rdi)
movsd  (%r9),%xmm0
movsd  (%rax),%xmm1
mulsd  (%rcx),%xmm1
mulsd  (%r10),%xmm0
subsd  %xmm1,%xmm0
movsd  %xmm0,(%rsi)
movsd  (%rcx),%xmm0
movsd  (%r10),%xmm1
mulsd  (%r8),%xmm1
mulsd  (%r11),%xmm0
subsd  %xmm1,%xmm0
movsd  %xmm0,(%rdx)
ret

LLVM IR (-O0):
define void @CrossProduct_SOA_pure(double* %0, double* %1, double* %2, double* %3, double* %4, double* %5, double* %6, double* %7, double* %8) {
%10 = alloca double*
%11 = alloca double*
%12 = alloca double*
%13 = alloca double*
%14 = alloca double*
%15 = alloca double*
%16 = alloca double*
%17 = alloca double*
%18 = alloca double*
store double* %0, double** %10
store double* %1, double** %11
store double* %2, double** %12
store double* %3, double** %13
store double* %4, double** %14
store double* %5, double** %15
store double* %6, double** %16
store double* %7, double** %17
store double* %8, double** %18
%19 = load double*, double** %14
%20 = load double, double* %19
%21 = load double*, double** %18
%22 = load double, double* %21
%23 = load double*, double** %15
%24 = load double, double* %23
%25 = load double*, double** %17
%26 = load double, double* %25
%27 = fmul double %24, %26
%28 = fneg double %27
%29 = call double @llvm.fmuladd.f64(double %20, double %22, double %28)
%30 = load double*, double** %10
store double %29, double* %30
%31 = load double*, double** %15
%32 = load double, double* %31
%33 = load double*, double** %16
%34 = load double, double* %33
%35 = load double*, double** %13
%36 = load double, double* %35
%37 = load double*, double** %18
%38 = load double, double* %37
%39 = fmul double %36, %38
%40 = fneg double %39
%41 = call double @llvm.fmuladd.f64(double %32, double %34, double %40)
%42 = load double*, double** %11
store double %41, double* %42
%43 = load double*, double** %13
%44 = load double, double* %43
%45 = load double*, double** %17
%46 = load double, double* %45
%47 = load double*, double** %14
%48 = load double, double* %47
%49 = load double*, double** %16
%50 = load double, double* %49
%51 = fmul double %48, %50
%52 = fneg double %51
%53 = call double @llvm.fmuladd.f64(double %44, double %46, double %52)
%54 = load double*, double** %12
store double %53, double* %54
ret void
}

LLVM IR (-O2):
define void @CrossProduct_SOA_pure(double* nocapture writeonly %0, double* nocapture writeonly %1, double* nocapture writeonly %2, double* nocapture %3, double* nocapture %4, double* nocapture %5, double* nocapture %6, double* nocapture %7, double* nocapture %8) {
%10 = load double, double* %4
%11 = load double, double* %8
%12 = load double, double* %5
%13 = load double, double* %7
%14 = fneg double %12
%15 = fmul double %13, %14
%16 = tail call double @llvm.fmuladd.f64(double %10, double %11, double %15)
store double %16, double* %0
%17 = load double, double* %5
%18 = load double, double* %6
%19 = load double, double* %3
%20 = load double, double* %8
%21 = fneg double %19
%22 = fmul double %20, %21
%23 = tail call double @llvm.fmuladd.f64(double %17, double %18, double %22)
store double %23, double* %1
%24 = load double, double* %3
%25 = load double, double* %7
%26 = load double, double* %4
%27 = load double, double* %6
%28 = fneg double %26
%29 = fmul double %27, %28
%30 = tail call double @llvm.fmuladd.f64(double %24, double %25, double %29)
store double %30, double* %2
ret void
}