void Znd(double *Z, double *A, double *B, int len) {
  Z[2 + 2 * len * 7] = (A[6]);
  Z[5 + 2 * len * 7] = (A[7]);
  Z[6 + 2 * len * 7] = 1;
  Z[0 + 0 * len * 7] = (A[3]) * (B[0]) - (A[0]) * (B[1]);
  Z[1 + 0 * len * 7] = (A[3]) * (B[3]) - (A[0]) * (B[4]);
  Z[2 + 0 * len * 7] = (A[3]) * (B[6]) - (A[0]) * (B[7]);
  Z[3 + 0 * len * 7] = (A[4]) * (B[0]) - (A[1]) * (B[1]);
  Z[4 + 0 * len * 7] = (A[4]) * (B[3]) - (A[1]) * (B[4]);
  Z[5 + 0 * len * 7] = (A[4]) * (B[6]) - (A[1]) * (B[7]);
  Z[0 + 1 * len * 7] = (A[0]) * (B[0]) + (A[3]) * (B[1]);
  Z[1 + 1 * len * 7] = (A[0]) * (B[3]) + (A[3]) * (B[4]);
  Z[2 + 1 * len * 7] = (A[0]) * (B[6]) + (A[3]) * (B[7]);
  Z[3 + 1 * len * 7] = (A[1]) * (B[0]) + (A[4]) * (B[1]);
  Z[4 + 1 * len * 7] = (A[1]) * (B[3]) + (A[4]) * (B[4]);
  Z[5 + 1 * len * 7] = (A[1]) * (B[6]) + (A[4]) * (B[7]);
}


x86 assembly (clang, -O0):
<Znd>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %ecx,-0x1c(%rbp)
mov    -0x10(%rbp),%rax
movsd  0x30(%rax),%xmm0
mov    -0x8(%rbp),%rax
mov    -0x1c(%rbp),%ecx
shl    $0x1,%ecx
imul   $0x7,%ecx,%ecx
add    $0x2,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x10(%rbp),%rax
movsd  0x38(%rax),%xmm0
mov    -0x8(%rbp),%rax
mov    -0x1c(%rbp),%ecx
shl    $0x1,%ecx
imul   $0x7,%ecx,%ecx
add    $0x5,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x8(%rbp),%rax
mov    -0x1c(%rbp),%ecx
shl    $0x1,%ecx
imul   $0x7,%ecx,%ecx
add    $0x6,%ecx
movslq %ecx,%rcx
movsd  0xe90(%rip),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x10(%rbp),%rax
movsd  0x18(%rax),%xmm0
mov    -0x18(%rbp),%rax
movsd  (%rax),%xmm2
mov    -0x10(%rbp),%rax
movsd  (%rax),%xmm1
mov    -0x18(%rbp),%rax
mulsd  0x8(%rax),%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x8(%rbp),%rax
imul   $0x0,-0x1c(%rbp),%ecx
imul   $0x7,%ecx,%ecx
add    $0x0,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x10(%rbp),%rax
movsd  0x18(%rax),%xmm0
mov    -0x18(%rbp),%rax
movsd  0x18(%rax),%xmm2
mov    -0x10(%rbp),%rax
movsd  (%rax),%xmm1
mov    -0x18(%rbp),%rax
mulsd  0x20(%rax),%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x8(%rbp),%rax
imul   $0x0,-0x1c(%rbp),%ecx
imul   $0x7,%ecx,%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x10(%rbp),%rax
movsd  0x18(%rax),%xmm0
mov    -0x18(%rbp),%rax
movsd  0x30(%rax),%xmm2
mov    -0x10(%rbp),%rax
movsd  (%rax),%xmm1
mov    -0x18(%rbp),%rax
mulsd  0x38(%rax),%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x8(%rbp),%rax
imul   $0x0,-0x1c(%rbp),%ecx
imul   $0x7,%ecx,%ecx
add    $0x2,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x10(%rbp),%rax
movsd  0x20(%rax),%xmm0
mov    -0x18(%rbp),%rax
movsd  (%rax),%xmm2
mov    -0x10(%rbp),%rax
movsd  0x8(%rax),%xmm1
mov    -0x18(%rbp),%rax
mulsd  0x8(%rax),%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x8(%rbp),%rax
imul   $0x0,-0x1c(%rbp),%ecx
imul   $0x7,%ecx,%ecx
add    $0x3,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x10(%rbp),%rax
movsd  0x20(%rax),%xmm0
mov    -0x18(%rbp),%rax
movsd  0x18(%rax),%xmm2
mov    -0x10(%rbp),%rax
movsd  0x8(%rax),%xmm1
mov    -0x18(%rbp),%rax
mulsd  0x20(%rax),%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x8(%rbp),%rax
imul   $0x0,-0x1c(%rbp),%ecx
imul   $0x7,%ecx,%ecx
add    $0x4,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x10(%rbp),%rax
movsd  0x20(%rax),%xmm0
mov    -0x18(%rbp),%rax
movsd  0x30(%rax),%xmm2
mov    -0x10(%rbp),%rax
movsd  0x8(%rax),%xmm1
mov    -0x18(%rbp),%rax
mulsd  0x38(%rax),%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x8(%rbp),%rax
imul   $0x0,-0x1c(%rbp),%ecx
imul   $0x7,%ecx,%ecx
add    $0x5,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x10(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x18(%rbp),%rax
movsd  (%rax),%xmm2
mov    -0x10(%rbp),%rax
movsd  0x18(%rax),%xmm1
mov    -0x18(%rbp),%rax
mulsd  0x8(%rax),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x8(%rbp),%rax
mov    -0x1c(%rbp),%ecx
shl    $0x0,%ecx
imul   $0x7,%ecx,%ecx
add    $0x0,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x10(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x18(%rbp),%rax
movsd  0x18(%rax),%xmm2
mov    -0x10(%rbp),%rax
movsd  0x18(%rax),%xmm1
mov    -0x18(%rbp),%rax
mulsd  0x20(%rax),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x8(%rbp),%rax
mov    -0x1c(%rbp),%ecx
shl    $0x0,%ecx
imul   $0x7,%ecx,%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x10(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x18(%rbp),%rax
movsd  0x30(%rax),%xmm2
mov    -0x10(%rbp),%rax
movsd  0x18(%rax),%xmm1
mov    -0x18(%rbp),%rax
mulsd  0x38(%rax),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x8(%rbp),%rax
mov    -0x1c(%rbp),%ecx
shl    $0x0,%ecx
imul   $0x7,%ecx,%ecx
add    $0x2,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x10(%rbp),%rax
movsd  0x8(%rax),%xmm0
mov    -0x18(%rbp),%rax
movsd  (%rax),%xmm2
mov    -0x10(%rbp),%rax
movsd  0x20(%rax),%xmm1
mov    -0x18(%rbp),%rax
mulsd  0x8(%rax),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x8(%rbp),%rax
mov    -0x1c(%rbp),%ecx
shl    $0x0,%ecx
imul   $0x7,%ecx,%ecx
add    $0x3,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x10(%rbp),%rax
movsd  0x8(%rax),%xmm0
mov    -0x18(%rbp),%rax
movsd  0x18(%rax),%xmm2
mov    -0x10(%rbp),%rax
movsd  0x20(%rax),%xmm1
mov    -0x18(%rbp),%rax
mulsd  0x20(%rax),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x8(%rbp),%rax
mov    -0x1c(%rbp),%ecx
shl    $0x0,%ecx
imul   $0x7,%ecx,%ecx
add    $0x4,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x10(%rbp),%rax
movsd  0x8(%rax),%xmm0
mov    -0x18(%rbp),%rax
movsd  0x30(%rax),%xmm2
mov    -0x10(%rbp),%rax
movsd  0x20(%rax),%xmm1
mov    -0x18(%rbp),%rax
mulsd  0x38(%rax),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x8(%rbp),%rax
mov    -0x1c(%rbp),%ecx
shl    $0x0,%ecx
imul   $0x7,%ecx,%ecx
add    $0x5,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
pop    %rbp
ret

x86 assembly (clang, -O2):
<Znd>:
movsd  0x30(%rsi),%xmm0
mov    %ecx,%eax
shl    $0x4,%eax
sub    %ecx,%eax
sub    %ecx,%eax
movslq %eax,%r8
movsd  %xmm0,0x10(%rdi,%r8,8)
movsd  0x38(%rsi),%xmm0
movsd  %xmm0,0x28(%rdi,%r8,8)
movabs $0x3ff0000000000000,%rax
mov    %rax,0x30(%rdi,%r8,8)
movsd  0x8(%rdx),%xmm0
mulsd  (%rsi),%xmm0
movsd  0x18(%rsi),%xmm1
mulsd  (%rdx),%xmm1
subsd  %xmm0,%xmm1
movsd  %xmm1,(%rdi)
movsd  0x20(%rdx),%xmm0
mulsd  (%rsi),%xmm0
movsd  0x18(%rsi),%xmm1
mulsd  0x18(%rdx),%xmm1
subsd  %xmm0,%xmm1
movsd  %xmm1,0x8(%rdi)
movsd  0x38(%rdx),%xmm0
mulsd  (%rsi),%xmm0
movsd  0x18(%rsi),%xmm1
mulsd  0x30(%rdx),%xmm1
subsd  %xmm0,%xmm1
movsd  %xmm1,0x10(%rdi)
movsd  0x8(%rdx),%xmm0
mulsd  0x8(%rsi),%xmm0
movsd  0x20(%rsi),%xmm1
mulsd  (%rdx),%xmm1
subsd  %xmm0,%xmm1
movsd  %xmm1,0x18(%rdi)
movsd  0x20(%rdx),%xmm0
mulsd  0x8(%rsi),%xmm0
movsd  0x20(%rsi),%xmm1
mulsd  0x18(%rdx),%xmm1
subsd  %xmm0,%xmm1
movsd  %xmm1,0x20(%rdi)
movsd  0x38(%rdx),%xmm0
mulsd  0x8(%rsi),%xmm0
movsd  0x20(%rsi),%xmm1
mulsd  0x30(%rdx),%xmm1
subsd  %xmm0,%xmm1
movsd  %xmm1,0x28(%rdi)
movsd  0x18(%rsi),%xmm0
mulsd  0x8(%rdx),%xmm0
movsd  (%rsi),%xmm1
mulsd  (%rdx),%xmm1
addsd  %xmm0,%xmm1
lea    0x0(,%rcx,8),%eax
sub    %ecx,%eax
cltq
movsd  %xmm1,(%rdi,%rax,8)
movsd  (%rsi),%xmm0
movsd  0x18(%rsi),%xmm1
mulsd  0x20(%rdx),%xmm1
mulsd  0x18(%rdx),%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,0x8(%rdi,%rax,8)
movsd  (%rsi),%xmm0
movsd  0x18(%rsi),%xmm1
mulsd  0x38(%rdx),%xmm1
mulsd  0x30(%rdx),%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,0x10(%rdi,%rax,8)
movsd  0x8(%rsi),%xmm0
movsd  0x20(%rsi),%xmm1
mulsd  0x8(%rdx),%xmm1
mulsd  (%rdx),%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,0x18(%rdi,%rax,8)
movsd  0x8(%rsi),%xmm0
movsd  0x20(%rsi),%xmm1
mulsd  0x20(%rdx),%xmm1
mulsd  0x18(%rdx),%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,0x20(%rdi,%rax,8)
movsd  0x8(%rsi),%xmm0
movsd  0x20(%rsi),%xmm1
mulsd  0x38(%rdx),%xmm1
mulsd  0x30(%rdx),%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,0x28(%rdi,%rax,8)
ret

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

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