void mat_mult(double **m1, double **m2, double **m3) {
  int i, j, k;
  double temp[4][4];
  for (i = 0; i < 4; i++)
    for (j = 0; j < 4; j++) {
      temp[i][j] = 0;
      for (k = 0; k < 4; k++)
        temp[i][j] += m1[i][k] * m2[k][j];
    }
  for (i = 0; i < 4; i++)
    for (j = 0; j < 4; j++)
      m3[i][j] = temp[i][j];
}


x86 assembly (clang, -O0):
<mat_mult>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
movl   $0x0,-0x1c(%rbp)
cmpl   $0x4,-0x1c(%rbp)
jge    11eb <mat_mult+0xeb>
movl   $0x0,-0x20(%rbp)
cmpl   $0x4,-0x20(%rbp)
jge    11d8 <mat_mult+0xd8>
movslq -0x1c(%rbp),%rcx
lea    -0xb0(%rbp),%rax
shl    $0x5,%rcx
add    %rcx,%rax
movslq -0x20(%rbp),%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
movl   $0x0,-0x24(%rbp)
cmpl   $0x4,-0x24(%rbp)
jge    11c5 <mat_mult+0xc5>
mov    -0x8(%rbp),%rax
movslq -0x1c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x24(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x24(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x20(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm2
movslq -0x1c(%rbp),%rcx
lea    -0xb0(%rbp),%rax
shl    $0x5,%rcx
add    %rcx,%rax
movslq -0x20(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    115b <mat_mult+0x5b>
jmp    11ca <mat_mult+0xca>
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    112c <mat_mult+0x2c>
jmp    11dd <mat_mult+0xdd>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    111b <mat_mult+0x1b>
movl   $0x0,-0x1c(%rbp)
cmpl   $0x4,-0x1c(%rbp)
jge    125e <mat_mult+0x15e>
movl   $0x0,-0x20(%rbp)
cmpl   $0x4,-0x20(%rbp)
jge    124b <mat_mult+0x14b>
movslq -0x1c(%rbp),%rcx
lea    -0xb0(%rbp),%rax
shl    $0x5,%rcx
add    %rcx,%rax
movslq -0x20(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x18(%rbp),%rax
movslq -0x1c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x20(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    1203 <mat_mult+0x103>
jmp    1250 <mat_mult+0x150>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    11f2 <mat_mult+0xf2>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<mat_mult>:
push   %rax
mov    (%rsi),%rax
mov    0x8(%rsi),%rcx
mov    0x10(%rsi),%r8
mov    0x18(%rsi),%rsi
movupd (%rax),%xmm7
movupd 0x10(%rax),%xmm12
movupd (%rcx),%xmm6
movupd 0x10(%rcx),%xmm11
movupd (%r8),%xmm13
movupd 0x10(%r8),%xmm10
movupd (%rsi),%xmm14
movupd 0x10(%rsi),%xmm9
mov    (%rdi),%rax
movsd  (%rax),%xmm4
movsd  0x8(%rax),%xmm5
movsd  0x10(%rax),%xmm0
movsd  0x18(%rax),%xmm1
unpcklpd %xmm4,%xmm4
movapd %xmm4,%xmm3
mulpd  %xmm7,%xmm3
xorpd  %xmm8,%xmm8
addpd  %xmm8,%xmm3
unpcklpd %xmm5,%xmm5
movapd %xmm5,%xmm2
mulpd  %xmm6,%xmm2
addpd  %xmm3,%xmm2
unpcklpd %xmm0,%xmm0
movapd %xmm0,%xmm3
mulpd  %xmm13,%xmm3
addpd  %xmm2,%xmm3
unpcklpd %xmm1,%xmm1
movapd %xmm1,%xmm2
mulpd  %xmm14,%xmm2
addpd  %xmm3,%xmm2
movapd %xmm2,-0x80(%rsp)
mulpd  %xmm12,%xmm4
addpd  %xmm8,%xmm4
mulpd  %xmm11,%xmm5
addpd  %xmm4,%xmm5
mulpd  %xmm10,%xmm0
addpd  %xmm5,%xmm0
mulpd  %xmm9,%xmm1
addpd  %xmm0,%xmm1
movapd %xmm1,-0x70(%rsp)
mov    0x8(%rdi),%rax
movsd  (%rax),%xmm3
movsd  0x8(%rax),%xmm2
movsd  0x10(%rax),%xmm0
movsd  0x18(%rax),%xmm1
unpcklpd %xmm3,%xmm3
movapd %xmm3,%xmm4
mulpd  %xmm7,%xmm4
addpd  %xmm8,%xmm4
unpcklpd %xmm2,%xmm2
movapd %xmm2,%xmm5
mulpd  %xmm6,%xmm5
addpd  %xmm4,%xmm5
unpcklpd %xmm0,%xmm0
movapd %xmm0,%xmm4
mulpd  %xmm13,%xmm4
addpd  %xmm5,%xmm4
unpcklpd %xmm1,%xmm1
movapd %xmm1,%xmm5
mulpd  %xmm14,%xmm5
addpd  %xmm4,%xmm5
movapd %xmm5,-0x60(%rsp)
mulpd  %xmm12,%xmm3
addpd  %xmm8,%xmm3
mulpd  %xmm11,%xmm2
addpd  %xmm3,%xmm2
mulpd  %xmm10,%xmm0
addpd  %xmm2,%xmm0
mulpd  %xmm9,%xmm1
addpd  %xmm0,%xmm1
movapd %xmm1,-0x50(%rsp)
mov    0x10(%rdi),%rax
movsd  (%rax),%xmm3
movsd  0x8(%rax),%xmm2
movsd  0x10(%rax),%xmm0
movsd  0x18(%rax),%xmm1
unpcklpd %xmm3,%xmm3
movapd %xmm3,%xmm4
mulpd  %xmm7,%xmm4
addpd  %xmm8,%xmm4
unpcklpd %xmm2,%xmm2
movapd %xmm2,%xmm5
mulpd  %xmm6,%xmm5
addpd  %xmm4,%xmm5
unpcklpd %xmm0,%xmm0
movapd %xmm0,%xmm4
mulpd  %xmm13,%xmm4
addpd  %xmm5,%xmm4
unpcklpd %xmm1,%xmm1
movapd %xmm1,%xmm5
mulpd  %xmm14,%xmm5
addpd  %xmm4,%xmm5
movapd %xmm5,-0x40(%rsp)
mulpd  %xmm12,%xmm3
addpd  %xmm8,%xmm3
mulpd  %xmm11,%xmm2
addpd  %xmm3,%xmm2
mulpd  %xmm10,%xmm0
addpd  %xmm2,%xmm0
mulpd  %xmm9,%xmm1
addpd  %xmm0,%xmm1
movapd %xmm1,-0x30(%rsp)
mov    0x18(%rdi),%rax
movsd  (%rax),%xmm3
movsd  0x8(%rax),%xmm2
movsd  0x10(%rax),%xmm0
movsd  0x18(%rax),%xmm1
unpcklpd %xmm3,%xmm3
mulpd  %xmm3,%xmm7
addpd  %xmm8,%xmm7
unpcklpd %xmm2,%xmm2
mulpd  %xmm2,%xmm6
addpd  %xmm7,%xmm6
unpcklpd %xmm0,%xmm0
mulpd  %xmm0,%xmm13
addpd  %xmm6,%xmm13
unpcklpd %xmm1,%xmm1
mulpd  %xmm1,%xmm14
addpd  %xmm13,%xmm14
movapd %xmm14,-0x20(%rsp)
mulpd  %xmm12,%xmm3
addpd  %xmm8,%xmm3
mulpd  %xmm11,%xmm2
addpd  %xmm3,%xmm2
mulpd  %xmm10,%xmm0
addpd  %xmm2,%xmm0
mulpd  %xmm9,%xmm1
addpd  %xmm0,%xmm1
movapd %xmm1,-0x10(%rsp)
mov    (%rdx),%rax
movaps -0x80(%rsp),%xmm0
movaps -0x70(%rsp),%xmm1
movups %xmm1,0x10(%rax)
movups %xmm0,(%rax)
mov    0x8(%rdx),%rax
movaps -0x60(%rsp),%xmm0
movaps -0x50(%rsp),%xmm1
movups %xmm1,0x10(%rax)
movups %xmm0,(%rax)
mov    0x10(%rdx),%rax
movaps -0x40(%rsp),%xmm0
movaps -0x30(%rsp),%xmm1
movups %xmm1,0x10(%rax)
movups %xmm0,(%rax)
mov    0x18(%rdx),%rax
movaps -0x20(%rsp),%xmm0
movaps -0x10(%rsp),%xmm1
movups %xmm1,0x10(%rax)
movups %xmm0,(%rax)
pop    %rax
ret

LLVM IR (-O0):
define void @mat_mult(double** %0, double** %1, double** %2) {
%4 = alloca double**
%5 = alloca double**
%6 = alloca double**
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca [4 x [4 x double]]
store double** %0, double*** %4
store double** %1, double*** %5
store double** %2, double*** %6
store i32 0, i32* %7
br label %11
11: ; preds = %63, %3
%12 = load i32, i32* %7
%13 = icmp slt i32 %12, 4
br i1 %13, label %14, label %66
14: ; preds = %11
store i32 0, i32* %8
br label %15
15: ; preds = %59, %14
%16 = load i32, i32* %8
%17 = icmp slt i32 %16, 4
br i1 %17, label %18, label %62
18: ; preds = %15
%19 = load i32, i32* %7
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds [4 x [4 x double]], [4 x [4 x double]]* %10, i64 0, i64 %20
%22 = load i32, i32* %8
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds [4 x double], [4 x double]* %21, i64 0, i64 %23
store double 0.000000e+00, double* %24
store i32 0, i32* %9
br label %25
25: ; preds = %55, %18
%26 = load i32, i32* %9
%27 = icmp slt i32 %26, 4
br i1 %27, label %28, label %58
28: ; preds = %25
%29 = load double**, double*** %4
%30 = load i32, i32* %7
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds double*, double** %29, i64 %31
%33 = load double*, double** %32
%34 = load i32, i32* %9
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds double, double* %33, i64 %35
%37 = load double, double* %36
%38 = load double**, double*** %5
%39 = load i32, i32* %9
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds double*, double** %38, i64 %40
%42 = load double*, double** %41
%43 = load i32, i32* %8
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds double, double* %42, i64 %44
%46 = load double, double* %45
%47 = load i32, i32* %7
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds [4 x [4 x double]], [4 x [4 x double]]* %10, i64 0, i64 %48
%50 = load i32, i32* %8
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds [4 x double], [4 x double]* %49, i64 0, i64 %51
%53 = load double, double* %52
%54 = call double @llvm.fmuladd.f64(double %37, double %46, double %53)
store double %54, double* %52
br label %55
55: ; preds = %28
%56 = load i32, i32* %9
%57 = add nsw i32 %56, 1
store i32 %57, i32* %9
br label %25
58: ; preds = %25
br label %59
59: ; preds = %58
%60 = load i32, i32* %8
%61 = add nsw i32 %60, 1
store i32 %61, i32* %8
br label %15
62: ; preds = %15
br label %63
63: ; preds = %62
%64 = load i32, i32* %7
%65 = add nsw i32 %64, 1
store i32 %65, i32* %7
br label %11
66: ; preds = %11
store i32 0, i32* %7
br label %67
67: ; preds = %94, %66
%68 = load i32, i32* %7
%69 = icmp slt i32 %68, 4
br i1 %69, label %70, label %97
70: ; preds = %67
store i32 0, i32* %8
br label %71
71: ; preds = %90, %70
%72 = load i32, i32* %8
%73 = icmp slt i32 %72, 4
br i1 %73, label %74, label %93
74: ; preds = %71
%75 = load i32, i32* %7
%76 = sext i32 %75 to i64
%77 = getelementptr inbounds [4 x [4 x double]], [4 x [4 x double]]* %10, i64 0, i64 %76
%78 = load i32, i32* %8
%79 = sext i32 %78 to i64
%80 = getelementptr inbounds [4 x double], [4 x double]* %77, i64 0, i64 %79
%81 = load double, double* %80
%82 = load double**, double*** %6
%83 = load i32, i32* %7
%84 = sext i32 %83 to i64
%85 = getelementptr inbounds double*, double** %82, i64 %84
%86 = load double*, double** %85
%87 = load i32, i32* %8
%88 = sext i32 %87 to i64
%89 = getelementptr inbounds double, double* %86, i64 %88
store double %81, double* %89
br label %90
90: ; preds = %74
%91 = load i32, i32* %8
%92 = add nsw i32 %91, 1
store i32 %92, i32* %8
br label %71
93: ; preds = %71
br label %94
94: ; preds = %93
%95 = load i32, i32* %7
%96 = add nsw i32 %95, 1
store i32 %96, i32* %7
br label %67
97: ; preds = %67
ret void
}

LLVM IR (-O2):
define void @mat_mult(double** nocapture %0, double** nocapture %1, double** nocapture %2) {
%4 = alloca [4 x [4 x double]]
%5 = bitcast [4 x [4 x double]]* %4 to i8*
%6 = load double*, double** %1
%7 = getelementptr inbounds double*, double** %1, i64 1
%8 = load double*, double** %7
%9 = getelementptr inbounds double*, double** %1, i64 2
%10 = load double*, double** %9
%11 = getelementptr inbounds double*, double** %1, i64 3
%12 = load double*, double** %11
%13 = bitcast double* %6 to <2 x double>*
%14 = load <2 x double>, <2 x double>* %13
%15 = bitcast double* %8 to <2 x double>*
%16 = load <2 x double>, <2 x double>* %15
%17 = bitcast double* %10 to <2 x double>*
%18 = load <2 x double>, <2 x double>* %17
%19 = bitcast double* %12 to <2 x double>*
%20 = load <2 x double>, <2 x double>* %19
%21 = getelementptr inbounds double, double* %6, i64 2
%22 = bitcast double* %21 to <2 x double>*
%23 = load <2 x double>, <2 x double>* %22
%24 = getelementptr inbounds double, double* %8, i64 2
%25 = bitcast double* %24 to <2 x double>*
%26 = load <2 x double>, <2 x double>* %25
%27 = getelementptr inbounds double, double* %10, i64 2
%28 = bitcast double* %27 to <2 x double>*
%29 = load <2 x double>, <2 x double>* %28
%30 = getelementptr inbounds double, double* %12, i64 2
%31 = bitcast double* %30 to <2 x double>*
%32 = load <2 x double>, <2 x double>* %31
%33 = load double*, double** %0
%34 = load double, double* %33
%35 = getelementptr inbounds double, double* %33, i64 1
%36 = load double, double* %35
%37 = getelementptr inbounds double, double* %33, i64 2
%38 = load double, double* %37
%39 = getelementptr inbounds double, double* %33, i64 3
%40 = load double, double* %39
%41 = insertelement <2 x double> poison, double %34, i64 0
%42 = shufflevector <2 x double> %41, <2 x double> poison, <2 x i32> zeroinitializer
%43 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %42, <2 x double> %14, <2 x double> zeroinitializer)
%44 = insertelement <2 x double> poison, double %36, i64 0
%45 = shufflevector <2 x double> %44, <2 x double> poison, <2 x i32> zeroinitializer
%46 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %45, <2 x double> %16, <2 x double> %43)
%47 = insertelement <2 x double> poison, double %38, i64 0
%48 = shufflevector <2 x double> %47, <2 x double> poison, <2 x i32> zeroinitializer
%49 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %48, <2 x double> %18, <2 x double> %46)
%50 = insertelement <2 x double> poison, double %40, i64 0
%51 = shufflevector <2 x double> %50, <2 x double> poison, <2 x i32> zeroinitializer
%52 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %51, <2 x double> %20, <2 x double> %49)
%53 = bitcast [4 x [4 x double]]* %4 to <2 x double>*
store <2 x double> %52, <2 x double>* %53
%54 = getelementptr inbounds [4 x [4 x double]], [4 x [4 x double]]* %4, i64 0, i64 0, i64 2
%55 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %42, <2 x double> %23, <2 x double> zeroinitializer)
%56 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %45, <2 x double> %26, <2 x double> %55)
%57 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %48, <2 x double> %29, <2 x double> %56)
%58 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %51, <2 x double> %32, <2 x double> %57)
%59 = bitcast double* %54 to <2 x double>*
store <2 x double> %58, <2 x double>* %59
%60 = getelementptr inbounds double*, double** %0, i64 1
%61 = load double*, double** %60
%62 = getelementptr inbounds [4 x [4 x double]], [4 x [4 x double]]* %4, i64 0, i64 1, i64 0
%63 = load double, double* %61
%64 = getelementptr inbounds double, double* %61, i64 1
%65 = load double, double* %64
%66 = getelementptr inbounds double, double* %61, i64 2
%67 = load double, double* %66
%68 = getelementptr inbounds double, double* %61, i64 3
%69 = load double, double* %68
%70 = insertelement <2 x double> poison, double %63, i64 0
%71 = shufflevector <2 x double> %70, <2 x double> poison, <2 x i32> zeroinitializer
%72 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %71, <2 x double> %14, <2 x double> zeroinitializer)
%73 = insertelement <2 x double> poison, double %65, i64 0
%74 = shufflevector <2 x double> %73, <2 x double> poison, <2 x i32> zeroinitializer
%75 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %74, <2 x double> %16, <2 x double> %72)
%76 = insertelement <2 x double> poison, double %67, i64 0
%77 = shufflevector <2 x double> %76, <2 x double> poison, <2 x i32> zeroinitializer
%78 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %77, <2 x double> %18, <2 x double> %75)
%79 = insertelement <2 x double> poison, double %69, i64 0
%80 = shufflevector <2 x double> %79, <2 x double> poison, <2 x i32> zeroinitializer
%81 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %80, <2 x double> %20, <2 x double> %78)
%82 = bitcast double* %62 to <2 x double>*
store <2 x double> %81, <2 x double>* %82
%83 = getelementptr inbounds [4 x [4 x double]], [4 x [4 x double]]* %4, i64 0, i64 1, i64 2
%84 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %71, <2 x double> %23, <2 x double> zeroinitializer)
%85 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %74, <2 x double> %26, <2 x double> %84)
%86 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %77, <2 x double> %29, <2 x double> %85)
%87 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %80, <2 x double> %32, <2 x double> %86)
%88 = bitcast double* %83 to <2 x double>*
store <2 x double> %87, <2 x double>* %88
%89 = getelementptr inbounds double*, double** %0, i64 2
%90 = load double*, double** %89
%91 = getelementptr inbounds [4 x [4 x double]], [4 x [4 x double]]* %4, i64 0, i64 2, i64 0
%92 = load double, double* %90
%93 = getelementptr inbounds double, double* %90, i64 1
%94 = load double, double* %93
%95 = getelementptr inbounds double, double* %90, i64 2
%96 = load double, double* %95
%97 = getelementptr inbounds double, double* %90, i64 3
%98 = load double, double* %97
%99 = insertelement <2 x double> poison, double %92, i64 0
%100 = shufflevector <2 x double> %99, <2 x double> poison, <2 x i32> zeroinitializer
%101 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %100, <2 x double> %14, <2 x double> zeroinitializer)
%102 = insertelement <2 x double> poison, double %94, i64 0
%103 = shufflevector <2 x double> %102, <2 x double> poison, <2 x i32> zeroinitializer
%104 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %103, <2 x double> %16, <2 x double> %101)
%105 = insertelement <2 x double> poison, double %96, i64 0
%106 = shufflevector <2 x double> %105, <2 x double> poison, <2 x i32> zeroinitializer
%107 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %106, <2 x double> %18, <2 x double> %104)
%108 = insertelement <2 x double> poison, double %98, i64 0
%109 = shufflevector <2 x double> %108, <2 x double> poison, <2 x i32> zeroinitializer
%110 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %109, <2 x double> %20, <2 x double> %107)
%111 = bitcast double* %91 to <2 x double>*
store <2 x double> %110, <2 x double>* %111
%112 = getelementptr inbounds [4 x [4 x double]], [4 x [4 x double]]* %4, i64 0, i64 2, i64 2
%113 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %100, <2 x double> %23, <2 x double> zeroinitializer)
%114 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %103, <2 x double> %26, <2 x double> %113)
%115 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %106, <2 x double> %29, <2 x double> %114)
%116 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %109, <2 x double> %32, <2 x double> %115)
%117 = bitcast double* %112 to <2 x double>*
store <2 x double> %116, <2 x double>* %117
%118 = getelementptr inbounds double*, double** %0, i64 3
%119 = load double*, double** %118
%120 = getelementptr inbounds [4 x [4 x double]], [4 x [4 x double]]* %4, i64 0, i64 3, i64 0
%121 = load double, double* %119
%122 = getelementptr inbounds double, double* %119, i64 1
%123 = load double, double* %122
%124 = getelementptr inbounds double, double* %119, i64 2
%125 = load double, double* %124
%126 = getelementptr inbounds double, double* %119, i64 3
%127 = load double, double* %126
%128 = insertelement <2 x double> poison, double %121, i64 0
%129 = shufflevector <2 x double> %128, <2 x double> poison, <2 x i32> zeroinitializer
%130 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %129, <2 x double> %14, <2 x double> zeroinitializer)
%131 = insertelement <2 x double> poison, double %123, i64 0
%132 = shufflevector <2 x double> %131, <2 x double> poison, <2 x i32> zeroinitializer
%133 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %132, <2 x double> %16, <2 x double> %130)
%134 = insertelement <2 x double> poison, double %125, i64 0
%135 = shufflevector <2 x double> %134, <2 x double> poison, <2 x i32> zeroinitializer
%136 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %135, <2 x double> %18, <2 x double> %133)
%137 = insertelement <2 x double> poison, double %127, i64 0
%138 = shufflevector <2 x double> %137, <2 x double> poison, <2 x i32> zeroinitializer
%139 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %138, <2 x double> %20, <2 x double> %136)
%140 = bitcast double* %120 to <2 x double>*
store <2 x double> %139, <2 x double>* %140
%141 = getelementptr inbounds [4 x [4 x double]], [4 x [4 x double]]* %4, i64 0, i64 3, i64 2
%142 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %129, <2 x double> %23, <2 x double> zeroinitializer)
%143 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %132, <2 x double> %26, <2 x double> %142)
%144 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %135, <2 x double> %29, <2 x double> %143)
%145 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %138, <2 x double> %32, <2 x double> %144)
%146 = bitcast double* %141 to <2 x double>*
store <2 x double> %145, <2 x double>* %146
%147 = bitcast [4 x [4 x double]]* %4 to i8*
%148 = bitcast double** %2 to i8**
%149 = load i8*, i8** %148
%150 = getelementptr inbounds [4 x [4 x double]], [4 x [4 x double]]* %4, i64 0, i64 1, i64 0
%151 = bitcast double* %150 to i8*
%152 = getelementptr inbounds double*, double** %2, i64 1
%153 = bitcast double** %152 to i8**
%154 = load i8*, i8** %153
%155 = getelementptr inbounds [4 x [4 x double]], [4 x [4 x double]]* %4, i64 0, i64 2, i64 0
%156 = bitcast double* %155 to i8*
%157 = getelementptr inbounds double*, double** %2, i64 2
%158 = bitcast double** %157 to i8**
%159 = load i8*, i8** %158
%160 = getelementptr inbounds [4 x [4 x double]], [4 x [4 x double]]* %4, i64 0, i64 3, i64 0
%161 = bitcast double* %160 to i8*
%162 = getelementptr inbounds double*, double** %2, i64 3
%163 = bitcast double** %162 to i8**
%164 = load i8*, i8** %163
ret void
}