void glmCrossProduct4d(double result[4], const double v1[4], const double v2[4],
                       const double v3[4]) {
  result[0] = -v1[2] * v2[1] * v3[3] + v1[1] * v2[2] * v3[3] -
              v1[3] * v2[2] * v3[1] + v1[2] * v2[3] * v3[1] +
              v1[3] * v2[1] * v3[2] - v1[1] * v2[3] * v3[2];
  result[1] = v1[2] * v2[0] * v3[3] - v1[0] * v2[2] * v3[3] +
              v1[3] * v2[2] * v3[0] - v1[2] * v2[3] * v3[0] -
              v1[3] * v2[0] * v3[2] + v1[0] * v2[3] * v3[2];
  result[2] = -v1[1] * v2[0] * v3[3] + v1[0] * v2[1] * v3[3] -
              v1[3] * v2[1] * v3[0] + v1[1] * v2[3] * v3[0] +
              v1[3] * v2[0] * v3[1] - v1[0] * v2[3] * v3[1];
  result[3] = v1[2] * v2[1] * v3[0] - v1[1] * v2[2] * v3[0] -
              v1[2] * v2[0] * v3[1] + v1[0] * v2[2] * v3[1] +
              v1[1] * v2[0] * v3[2] - v1[0] * v2[1] * v3[2];
}


x86 assembly (clang, -O0):
<glmCrossProduct4d>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    -0x10(%rbp),%rax
movsd  0x10(%rax),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mov    -0x18(%rbp),%rax
mulsd  0x8(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  0x18(%rax),%xmm2
mov    -0x10(%rbp),%rax
movsd  0x8(%rax),%xmm1
mov    -0x18(%rbp),%rax
mulsd  0x10(%rax),%xmm1
mov    -0x20(%rbp),%rax
mulsd  0x18(%rax),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x10(%rbp),%rax
movsd  0x18(%rax),%xmm1
mov    -0x18(%rbp),%rax
mulsd  0x10(%rax),%xmm1
mov    -0x20(%rbp),%rax
movsd  0x8(%rax),%xmm2
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
mov    -0x10(%rbp),%rax
movsd  0x10(%rax),%xmm0
mov    -0x18(%rbp),%rax
mulsd  0x18(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  0x8(%rax),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x10(%rbp),%rax
movsd  0x18(%rax),%xmm1
mov    -0x18(%rbp),%rax
mulsd  0x8(%rax),%xmm1
mov    -0x20(%rbp),%rax
movsd  0x10(%rax),%xmm2
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
mov    -0x10(%rbp),%rax
movsd  0x8(%rax),%xmm0
mov    -0x18(%rbp),%rax
mulsd  0x18(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  0x10(%rax),%xmm2
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x8(%rbp),%rax
movsd  %xmm0,(%rax)
mov    -0x10(%rbp),%rax
movsd  0x10(%rax),%xmm0
mov    -0x18(%rbp),%rax
mulsd  (%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  0x18(%rax),%xmm2
mov    -0x10(%rbp),%rax
movsd  (%rax),%xmm1
mov    -0x18(%rbp),%rax
mulsd  0x10(%rax),%xmm1
mov    -0x20(%rbp),%rax
mulsd  0x18(%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  0x18(%rax),%xmm1
mov    -0x18(%rbp),%rax
mulsd  0x10(%rax),%xmm1
mov    -0x20(%rbp),%rax
movsd  (%rax),%xmm2
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
mov    -0x10(%rbp),%rax
movsd  0x10(%rax),%xmm0
mov    -0x18(%rbp),%rax
mulsd  0x18(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  (%rax),%xmm2
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x10(%rbp),%rax
movsd  0x18(%rax),%xmm1
mov    -0x18(%rbp),%rax
mulsd  (%rax),%xmm1
mov    -0x20(%rbp),%rax
movsd  0x10(%rax),%xmm2
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
mov    -0x10(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x18(%rbp),%rax
mulsd  0x18(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  0x10(%rax),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x8(%rbp),%rax
movsd  %xmm0,0x8(%rax)
mov    -0x10(%rbp),%rax
movsd  0x8(%rax),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mov    -0x18(%rbp),%rax
mulsd  (%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  0x18(%rax),%xmm2
mov    -0x10(%rbp),%rax
movsd  (%rax),%xmm1
mov    -0x18(%rbp),%rax
mulsd  0x8(%rax),%xmm1
mov    -0x20(%rbp),%rax
mulsd  0x18(%rax),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x10(%rbp),%rax
movsd  0x18(%rax),%xmm1
mov    -0x18(%rbp),%rax
mulsd  0x8(%rax),%xmm1
mov    -0x20(%rbp),%rax
movsd  (%rax),%xmm2
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
mov    -0x10(%rbp),%rax
movsd  0x8(%rax),%xmm0
mov    -0x18(%rbp),%rax
mulsd  0x18(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  (%rax),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x10(%rbp),%rax
movsd  0x18(%rax),%xmm1
mov    -0x18(%rbp),%rax
mulsd  (%rax),%xmm1
mov    -0x20(%rbp),%rax
movsd  0x8(%rax),%xmm2
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
mov    -0x10(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x18(%rbp),%rax
mulsd  0x18(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  0x8(%rax),%xmm2
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x8(%rbp),%rax
movsd  %xmm0,0x10(%rax)
mov    -0x10(%rbp),%rax
movsd  0x10(%rax),%xmm0
mov    -0x18(%rbp),%rax
mulsd  0x8(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  (%rax),%xmm2
mov    -0x10(%rbp),%rax
movsd  0x8(%rax),%xmm1
mov    -0x18(%rbp),%rax
mulsd  0x10(%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  0x10(%rax),%xmm1
mov    -0x18(%rbp),%rax
mulsd  (%rax),%xmm1
mov    -0x20(%rbp),%rax
movsd  0x8(%rax),%xmm2
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
mov    -0x10(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x18(%rbp),%rax
mulsd  0x10(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  0x8(%rax),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x10(%rbp),%rax
movsd  0x8(%rax),%xmm1
mov    -0x18(%rbp),%rax
mulsd  (%rax),%xmm1
mov    -0x20(%rbp),%rax
movsd  0x10(%rax),%xmm2
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
mov    -0x10(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x18(%rbp),%rax
mulsd  0x8(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  0x10(%rax),%xmm2
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x8(%rbp),%rax
movsd  %xmm0,0x18(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<glmCrossProduct4d>:
movsd  0x8(%rsi),%xmm3
movsd  0x10(%rsi),%xmm1
movsd  0x8(%rdx),%xmm0
movsd  0x10(%rdx),%xmm2
movapd %xmm0,%xmm4
mulsd  %xmm1,%xmm4
movsd  0x18(%rcx),%xmm5
movsd  0x18(%rdx),%xmm6
mulsd  %xmm6,%xmm1
mulsd  %xmm3,%xmm6
mulsd  %xmm2,%xmm3
mulsd  %xmm5,%xmm3
mulsd  %xmm5,%xmm4
subsd  %xmm4,%xmm3
movsd  0x18(%rsi),%xmm4
mulsd  %xmm4,%xmm2
movsd  0x8(%rcx),%xmm5
movsd  0x10(%rcx),%xmm7
mulsd  %xmm5,%xmm2
subsd  %xmm2,%xmm3
mulsd  %xmm5,%xmm1
addsd  %xmm3,%xmm1
mulsd  %xmm4,%xmm0
mulsd  %xmm7,%xmm0
addsd  %xmm1,%xmm0
mulsd  %xmm7,%xmm6
subsd  %xmm6,%xmm0
movsd  %xmm0,(%rdi)
movsd  (%rsi),%xmm0
movsd  0x10(%rsi),%xmm2
movsd  (%rdx),%xmm3
movsd  0x10(%rdx),%xmm1
movapd %xmm2,%xmm4
mulsd  %xmm3,%xmm4
movsd  0x18(%rcx),%xmm5
movapd %xmm1,%xmm6
mulsd  %xmm0,%xmm6
mulsd  %xmm5,%xmm6
mulsd  %xmm5,%xmm4
subsd  %xmm6,%xmm4
movsd  0x18(%rsi),%xmm5
mulsd  %xmm5,%xmm1
movsd  (%rcx),%xmm6
movsd  0x10(%rcx),%xmm7
mulsd  %xmm6,%xmm1
addsd  %xmm4,%xmm1
movsd  0x18(%rdx),%xmm4
mulsd  %xmm4,%xmm2
mulsd  %xmm6,%xmm2
subsd  %xmm2,%xmm1
mulsd  %xmm5,%xmm3
mulsd  %xmm7,%xmm3
subsd  %xmm3,%xmm1
mulsd  %xmm4,%xmm0
mulsd  %xmm7,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,0x8(%rdi)
movsd  (%rsi),%xmm3
movsd  0x8(%rsi),%xmm1
movsd  (%rdx),%xmm0
movsd  0x8(%rdx),%xmm2
movapd %xmm0,%xmm4
mulsd  %xmm1,%xmm4
movsd  0x18(%rcx),%xmm5
movsd  0x18(%rdx),%xmm6
mulsd  %xmm6,%xmm1
mulsd  %xmm3,%xmm6
mulsd  %xmm2,%xmm3
mulsd  %xmm5,%xmm3
mulsd  %xmm5,%xmm4
subsd  %xmm4,%xmm3
movsd  0x18(%rsi),%xmm4
mulsd  %xmm4,%xmm2
movsd  (%rcx),%xmm5
movsd  0x8(%rcx),%xmm7
mulsd  %xmm5,%xmm2
subsd  %xmm2,%xmm3
mulsd  %xmm5,%xmm1
addsd  %xmm3,%xmm1
mulsd  %xmm4,%xmm0
mulsd  %xmm7,%xmm0
addsd  %xmm1,%xmm0
mulsd  %xmm7,%xmm6
subsd  %xmm6,%xmm0
movsd  %xmm0,0x10(%rdi)
movsd  0x10(%rsi),%xmm2
movsd  (%rdx),%xmm3
movsd  0x8(%rdx),%xmm0
movsd  0x8(%rsi),%xmm1
movsd  0x10(%rdx),%xmm4
movapd %xmm4,%xmm5
mulsd  %xmm1,%xmm5
mulsd  %xmm3,%xmm1
mulsd  %xmm2,%xmm3
mulsd  %xmm0,%xmm2
movsd  (%rsi),%xmm8
movsd  (%rcx),%xmm7
movsd  0x8(%rcx),%xmm6
mulsd  %xmm7,%xmm5
mulsd  %xmm7,%xmm2
subsd  %xmm5,%xmm2
mulsd  %xmm6,%xmm3
subsd  %xmm3,%xmm2
mulsd  %xmm8,%xmm4
mulsd  %xmm6,%xmm4
addsd  %xmm2,%xmm4
movsd  0x10(%rcx),%xmm2
mulsd  %xmm2,%xmm1
addsd  %xmm4,%xmm1
mulsd  %xmm8,%xmm0
mulsd  %xmm2,%xmm0
subsd  %xmm0,%xmm1
movsd  %xmm1,0x18(%rdi)
ret

LLVM IR (-O0):
define void @glmCrossProduct4d(double* %0, double* %1, double* %2, double* %3) {
%5 = alloca double*
%6 = alloca double*
%7 = alloca double*
%8 = alloca double*
store double* %0, double** %5
store double* %1, double** %6
store double* %2, double** %7
store double* %3, double** %8
%9 = load double*, double** %6
%10 = getelementptr inbounds double, double* %9, i64 2
%11 = load double, double* %10
%12 = fneg double %11
%13 = load double*, double** %7
%14 = getelementptr inbounds double, double* %13, i64 1
%15 = load double, double* %14
%16 = fmul double %12, %15
%17 = load double*, double** %8
%18 = getelementptr inbounds double, double* %17, i64 3
%19 = load double, double* %18
%20 = load double*, double** %6
%21 = getelementptr inbounds double, double* %20, i64 1
%22 = load double, double* %21
%23 = load double*, double** %7
%24 = getelementptr inbounds double, double* %23, i64 2
%25 = load double, double* %24
%26 = fmul double %22, %25
%27 = load double*, double** %8
%28 = getelementptr inbounds double, double* %27, i64 3
%29 = load double, double* %28
%30 = fmul double %26, %29
%31 = call double @llvm.fmuladd.f64(double %16, double %19, double %30)
%32 = load double*, double** %6
%33 = getelementptr inbounds double, double* %32, i64 3
%34 = load double, double* %33
%35 = load double*, double** %7
%36 = getelementptr inbounds double, double* %35, i64 2
%37 = load double, double* %36
%38 = fmul double %34, %37
%39 = load double*, double** %8
%40 = getelementptr inbounds double, double* %39, i64 1
%41 = load double, double* %40
%42 = fneg double %38
%43 = call double @llvm.fmuladd.f64(double %42, double %41, double %31)
%44 = load double*, double** %6
%45 = getelementptr inbounds double, double* %44, i64 2
%46 = load double, double* %45
%47 = load double*, double** %7
%48 = getelementptr inbounds double, double* %47, i64 3
%49 = load double, double* %48
%50 = fmul double %46, %49
%51 = load double*, double** %8
%52 = getelementptr inbounds double, double* %51, i64 1
%53 = load double, double* %52
%54 = call double @llvm.fmuladd.f64(double %50, double %53, double %43)
%55 = load double*, double** %6
%56 = getelementptr inbounds double, double* %55, i64 3
%57 = load double, double* %56
%58 = load double*, double** %7
%59 = getelementptr inbounds double, double* %58, i64 1
%60 = load double, double* %59
%61 = fmul double %57, %60
%62 = load double*, double** %8
%63 = getelementptr inbounds double, double* %62, i64 2
%64 = load double, double* %63
%65 = call double @llvm.fmuladd.f64(double %61, double %64, double %54)
%66 = load double*, double** %6
%67 = getelementptr inbounds double, double* %66, i64 1
%68 = load double, double* %67
%69 = load double*, double** %7
%70 = getelementptr inbounds double, double* %69, i64 3
%71 = load double, double* %70
%72 = fmul double %68, %71
%73 = load double*, double** %8
%74 = getelementptr inbounds double, double* %73, i64 2
%75 = load double, double* %74
%76 = fneg double %72
%77 = call double @llvm.fmuladd.f64(double %76, double %75, double %65)
%78 = load double*, double** %5
%79 = getelementptr inbounds double, double* %78, i64 0
store double %77, double* %79
%80 = load double*, double** %6
%81 = getelementptr inbounds double, double* %80, i64 2
%82 = load double, double* %81
%83 = load double*, double** %7
%84 = getelementptr inbounds double, double* %83, i64 0
%85 = load double, double* %84
%86 = fmul double %82, %85
%87 = load double*, double** %8
%88 = getelementptr inbounds double, double* %87, i64 3
%89 = load double, double* %88
%90 = load double*, double** %6
%91 = getelementptr inbounds double, double* %90, i64 0
%92 = load double, double* %91
%93 = load double*, double** %7
%94 = getelementptr inbounds double, double* %93, i64 2
%95 = load double, double* %94
%96 = fmul double %92, %95
%97 = load double*, double** %8
%98 = getelementptr inbounds double, double* %97, i64 3
%99 = load double, double* %98
%100 = fmul double %96, %99
%101 = fneg double %100
%102 = call double @llvm.fmuladd.f64(double %86, double %89, double %101)
%103 = load double*, double** %6
%104 = getelementptr inbounds double, double* %103, i64 3
%105 = load double, double* %104
%106 = load double*, double** %7
%107 = getelementptr inbounds double, double* %106, i64 2
%108 = load double, double* %107
%109 = fmul double %105, %108
%110 = load double*, double** %8
%111 = getelementptr inbounds double, double* %110, i64 0
%112 = load double, double* %111
%113 = call double @llvm.fmuladd.f64(double %109, double %112, double %102)
%114 = load double*, double** %6
%115 = getelementptr inbounds double, double* %114, i64 2
%116 = load double, double* %115
%117 = load double*, double** %7
%118 = getelementptr inbounds double, double* %117, i64 3
%119 = load double, double* %118
%120 = fmul double %116, %119
%121 = load double*, double** %8
%122 = getelementptr inbounds double, double* %121, i64 0
%123 = load double, double* %122
%124 = fneg double %120
%125 = call double @llvm.fmuladd.f64(double %124, double %123, double %113)
%126 = load double*, double** %6
%127 = getelementptr inbounds double, double* %126, i64 3
%128 = load double, double* %127
%129 = load double*, double** %7
%130 = getelementptr inbounds double, double* %129, i64 0
%131 = load double, double* %130
%132 = fmul double %128, %131
%133 = load double*, double** %8
%134 = getelementptr inbounds double, double* %133, i64 2
%135 = load double, double* %134
%136 = fneg double %132
%137 = call double @llvm.fmuladd.f64(double %136, double %135, double %125)
%138 = load double*, double** %6
%139 = getelementptr inbounds double, double* %138, i64 0
%140 = load double, double* %139
%141 = load double*, double** %7
%142 = getelementptr inbounds double, double* %141, i64 3
%143 = load double, double* %142
%144 = fmul double %140, %143
%145 = load double*, double** %8
%146 = getelementptr inbounds double, double* %145, i64 2
%147 = load double, double* %146
%148 = call double @llvm.fmuladd.f64(double %144, double %147, double %137)
%149 = load double*, double** %5
%150 = getelementptr inbounds double, double* %149, i64 1
store double %148, double* %150
%151 = load double*, double** %6
%152 = getelementptr inbounds double, double* %151, i64 1
%153 = load double, double* %152
%154 = fneg double %153
%155 = load double*, double** %7
%156 = getelementptr inbounds double, double* %155, i64 0
%157 = load double, double* %156
%158 = fmul double %154, %157
%159 = load double*, double** %8
%160 = getelementptr inbounds double, double* %159, i64 3
%161 = load double, double* %160
%162 = load double*, double** %6
%163 = getelementptr inbounds double, double* %162, i64 0
%164 = load double, double* %163
%165 = load double*, double** %7
%166 = getelementptr inbounds double, double* %165, i64 1
%167 = load double, double* %166
%168 = fmul double %164, %167
%169 = load double*, double** %8
%170 = getelementptr inbounds double, double* %169, i64 3
%171 = load double, double* %170
%172 = fmul double %168, %171
%173 = call double @llvm.fmuladd.f64(double %158, double %161, double %172)
%174 = load double*, double** %6
%175 = getelementptr inbounds double, double* %174, i64 3
%176 = load double, double* %175
%177 = load double*, double** %7
%178 = getelementptr inbounds double, double* %177, i64 1
%179 = load double, double* %178
%180 = fmul double %176, %179
%181 = load double*, double** %8
%182 = getelementptr inbounds double, double* %181, i64 0
%183 = load double, double* %182
%184 = fneg double %180
%185 = call double @llvm.fmuladd.f64(double %184, double %183, double %173)
%186 = load double*, double** %6
%187 = getelementptr inbounds double, double* %186, i64 1
%188 = load double, double* %187
%189 = load double*, double** %7
%190 = getelementptr inbounds double, double* %189, i64 3
%191 = load double, double* %190
%192 = fmul double %188, %191
%193 = load double*, double** %8
%194 = getelementptr inbounds double, double* %193, i64 0
%195 = load double, double* %194
%196 = call double @llvm.fmuladd.f64(double %192, double %195, double %185)
%197 = load double*, double** %6
%198 = getelementptr inbounds double, double* %197, i64 3
%199 = load double, double* %198
%200 = load double*, double** %7
%201 = getelementptr inbounds double, double* %200, i64 0
%202 = load double, double* %201
%203 = fmul double %199, %202
%204 = load double*, double** %8
%205 = getelementptr inbounds double, double* %204, i64 1
%206 = load double, double* %205
%207 = call double @llvm.fmuladd.f64(double %203, double %206, double %196)
%208 = load double*, double** %6
%209 = getelementptr inbounds double, double* %208, i64 0
%210 = load double, double* %209
%211 = load double*, double** %7
%212 = getelementptr inbounds double, double* %211, i64 3
%213 = load double, double* %212
%214 = fmul double %210, %213
%215 = load double*, double** %8
%216 = getelementptr inbounds double, double* %215, i64 1
%217 = load double, double* %216
%218 = fneg double %214
%219 = call double @llvm.fmuladd.f64(double %218, double %217, double %207)
%220 = load double*, double** %5
%221 = getelementptr inbounds double, double* %220, i64 2
store double %219, double* %221
%222 = load double*, double** %6
%223 = getelementptr inbounds double, double* %222, i64 2
%224 = load double, double* %223
%225 = load double*, double** %7
%226 = getelementptr inbounds double, double* %225, i64 1
%227 = load double, double* %226
%228 = fmul double %224, %227
%229 = load double*, double** %8
%230 = getelementptr inbounds double, double* %229, i64 0
%231 = load double, double* %230
%232 = load double*, double** %6
%233 = getelementptr inbounds double, double* %232, i64 1
%234 = load double, double* %233
%235 = load double*, double** %7
%236 = getelementptr inbounds double, double* %235, i64 2
%237 = load double, double* %236
%238 = fmul double %234, %237
%239 = load double*, double** %8
%240 = getelementptr inbounds double, double* %239, i64 0
%241 = load double, double* %240
%242 = fmul double %238, %241
%243 = fneg double %242
%244 = call double @llvm.fmuladd.f64(double %228, double %231, double %243)
%245 = load double*, double** %6
%246 = getelementptr inbounds double, double* %245, i64 2
%247 = load double, double* %246
%248 = load double*, double** %7
%249 = getelementptr inbounds double, double* %248, i64 0
%250 = load double, double* %249
%251 = fmul double %247, %250
%252 = load double*, double** %8
%253 = getelementptr inbounds double, double* %252, i64 1
%254 = load double, double* %253
%255 = fneg double %251
%256 = call double @llvm.fmuladd.f64(double %255, double %254, double %244)
%257 = load double*, double** %6
%258 = getelementptr inbounds double, double* %257, i64 0
%259 = load double, double* %258
%260 = load double*, double** %7
%261 = getelementptr inbounds double, double* %260, i64 2
%262 = load double, double* %261
%263 = fmul double %259, %262
%264 = load double*, double** %8
%265 = getelementptr inbounds double, double* %264, i64 1
%266 = load double, double* %265
%267 = call double @llvm.fmuladd.f64(double %263, double %266, double %256)
%268 = load double*, double** %6
%269 = getelementptr inbounds double, double* %268, i64 1
%270 = load double, double* %269
%271 = load double*, double** %7
%272 = getelementptr inbounds double, double* %271, i64 0
%273 = load double, double* %272
%274 = fmul double %270, %273
%275 = load double*, double** %8
%276 = getelementptr inbounds double, double* %275, i64 2
%277 = load double, double* %276
%278 = call double @llvm.fmuladd.f64(double %274, double %277, double %267)
%279 = load double*, double** %6
%280 = getelementptr inbounds double, double* %279, i64 0
%281 = load double, double* %280
%282 = load double*, double** %7
%283 = getelementptr inbounds double, double* %282, i64 1
%284 = load double, double* %283
%285 = fmul double %281, %284
%286 = load double*, double** %8
%287 = getelementptr inbounds double, double* %286, i64 2
%288 = load double, double* %287
%289 = fneg double %285
%290 = call double @llvm.fmuladd.f64(double %289, double %288, double %278)
%291 = load double*, double** %5
%292 = getelementptr inbounds double, double* %291, i64 3
store double %290, double* %292
ret void
}

LLVM IR (-O2):
define void @glmCrossProduct4d(double* nocapture writeonly %0, double* nocapture %1, double* nocapture %2, double* nocapture %3) {
%5 = getelementptr inbounds double, double* %1, i64 2
%6 = load double, double* %5
%7 = fneg double %6
%8 = getelementptr inbounds double, double* %2, i64 1
%9 = load double, double* %8
%10 = fmul double %9, %7
%11 = getelementptr inbounds double, double* %3, i64 3
%12 = load double, double* %11
%13 = getelementptr inbounds double, double* %1, i64 1
%14 = load double, double* %13
%15 = getelementptr inbounds double, double* %2, i64 2
%16 = load double, double* %15
%17 = fmul double %14, %16
%18 = fmul double %12, %17
%19 = tail call double @llvm.fmuladd.f64(double %10, double %12, double %18)
%20 = getelementptr inbounds double, double* %1, i64 3
%21 = load double, double* %20
%22 = getelementptr inbounds double, double* %3, i64 1
%23 = load double, double* %22
%24 = fneg double %21
%25 = fmul double %16, %24
%26 = tail call double @llvm.fmuladd.f64(double %25, double %23, double %19)
%27 = getelementptr inbounds double, double* %2, i64 3
%28 = load double, double* %27
%29 = fmul double %6, %28
%30 = tail call double @llvm.fmuladd.f64(double %29, double %23, double %26)
%31 = fmul double %9, %21
%32 = getelementptr inbounds double, double* %3, i64 2
%33 = load double, double* %32
%34 = tail call double @llvm.fmuladd.f64(double %31, double %33, double %30)
%35 = fneg double %14
%36 = fmul double %28, %35
%37 = tail call double @llvm.fmuladd.f64(double %36, double %33, double %34)
store double %37, double* %0
%38 = load double, double* %5
%39 = load double, double* %2
%40 = fmul double %38, %39
%41 = load double, double* %11
%42 = load double, double* %1
%43 = load double, double* %15
%44 = fneg double %42
%45 = fmul double %43, %44
%46 = fmul double %41, %45
%47 = tail call double @llvm.fmuladd.f64(double %40, double %41, double %46)
%48 = load double, double* %20
%49 = fmul double %43, %48
%50 = load double, double* %3
%51 = tail call double @llvm.fmuladd.f64(double %49, double %50, double %47)
%52 = load double, double* %27
%53 = fneg double %38
%54 = fmul double %52, %53
%55 = tail call double @llvm.fmuladd.f64(double %54, double %50, double %51)
%56 = load double, double* %32
%57 = fneg double %48
%58 = fmul double %39, %57
%59 = tail call double @llvm.fmuladd.f64(double %58, double %56, double %55)
%60 = fmul double %42, %52
%61 = tail call double @llvm.fmuladd.f64(double %60, double %56, double %59)
%62 = getelementptr inbounds double, double* %0, i64 1
store double %61, double* %62
%63 = load double, double* %13
%64 = fneg double %63
%65 = load double, double* %2
%66 = fmul double %65, %64
%67 = load double, double* %11
%68 = load double, double* %1
%69 = load double, double* %8
%70 = fmul double %68, %69
%71 = fmul double %67, %70
%72 = tail call double @llvm.fmuladd.f64(double %66, double %67, double %71)
%73 = load double, double* %20
%74 = load double, double* %3
%75 = fneg double %73
%76 = fmul double %69, %75
%77 = tail call double @llvm.fmuladd.f64(double %76, double %74, double %72)
%78 = load double, double* %27
%79 = fmul double %63, %78
%80 = tail call double @llvm.fmuladd.f64(double %79, double %74, double %77)
%81 = fmul double %65, %73
%82 = load double, double* %22
%83 = tail call double @llvm.fmuladd.f64(double %81, double %82, double %80)
%84 = fneg double %68
%85 = fmul double %78, %84
%86 = tail call double @llvm.fmuladd.f64(double %85, double %82, double %83)
%87 = getelementptr inbounds double, double* %0, i64 2
store double %86, double* %87
%88 = load double, double* %5
%89 = load double, double* %8
%90 = fmul double %88, %89
%91 = load double, double* %3
%92 = load double, double* %13
%93 = load double, double* %15
%94 = fneg double %92
%95 = fmul double %93, %94
%96 = fmul double %91, %95
%97 = tail call double @llvm.fmuladd.f64(double %90, double %91, double %96)
%98 = load double, double* %2
%99 = load double, double* %22
%100 = fneg double %88
%101 = fmul double %98, %100
%102 = tail call double @llvm.fmuladd.f64(double %101, double %99, double %97)
%103 = load double, double* %1
%104 = fmul double %93, %103
%105 = tail call double @llvm.fmuladd.f64(double %104, double %99, double %102)
%106 = fmul double %92, %98
%107 = load double, double* %32
%108 = tail call double @llvm.fmuladd.f64(double %106, double %107, double %105)
%109 = fneg double %103
%110 = fmul double %89, %109
%111 = tail call double @llvm.fmuladd.f64(double %110, double %107, double %108)
%112 = getelementptr inbounds double, double* %0, i64 3
store double %111, double* %112
ret void
}