void corner_dtrmm_l_u_nt_2x4_lib4(double *A, double *B, int alg, double *C,
                                  double *D) {
  const int bs = 4;
  double a_0, a_1, b_0, d_0, d_4, d_8, d_c, d_1, d_5, d_9, d_d;
  a_0 = A[0];
  a_1 = A[1];
  b_0 = B[0];
  d_0 = a_0 * b_0;
  d_1 = a_1 * b_0;
  b_0 = B[1];
  d_4 = a_0 * b_0;
  d_5 = a_1 * b_0;
  b_0 = B[2];
  d_8 = a_0 * b_0;
  d_9 = a_1 * b_0;
  b_0 = B[3];
  d_c = a_0 * b_0;
  d_d = a_1 * b_0;
  a_0 = A[4];
  a_1 = A[5];
  b_0 = B[4];
  d_0 += a_0 * b_0;
  d_1 += a_1 * b_0;
  b_0 = B[5];
  d_4 += a_0 * b_0;
  d_5 += a_1 * b_0;
  b_0 = B[6];
  d_8 += a_0 * b_0;
  d_9 += a_1 * b_0;
  b_0 = B[7];
  d_c += a_0 * b_0;
  d_d += a_1 * b_0;
  if (alg != 0) {
    if (alg == 1) {
      d_0 = C[0 + bs * 0] + d_0;
      d_1 = C[1 + bs * 0] + d_1;
      d_4 = C[0 + bs * 1] + d_4;
      d_5 = C[1 + bs * 1] + d_5;
      d_8 = C[0 + bs * 2] + d_8;
      d_9 = C[1 + bs * 2] + d_9;
      d_c = C[0 + bs * 3] + d_c;
      d_d = C[1 + bs * 3] + d_d;
    } else {
      d_0 = C[0 + bs * 0] - d_0;
      d_1 = C[1 + bs * 0] - d_1;
      d_4 = C[0 + bs * 1] - d_4;
      d_5 = C[1 + bs * 1] - d_5;
      d_8 = C[0 + bs * 2] - d_8;
      d_9 = C[1 + bs * 2] - d_9;
      d_c = C[0 + bs * 3] - d_c;
      d_d = C[1 + bs * 3] - d_d;
    }
  }
  D[0 + bs * 0] = d_0;
  D[1 + bs * 0] = d_1;
  D[0 + bs * 1] = d_4;
  D[1 + bs * 1] = d_5;
  D[0 + bs * 2] = d_8;
  D[1 + bs * 2] = d_9;
  D[0 + bs * 3] = d_c;
  D[1 + bs * 3] = d_d;
}


x86 assembly (clang, -O0):
<corner_dtrmm_l_u_nt_2x4_lib4>:
push   %rbp
mov    %rsp,%rbp
push   %rax
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
movl   $0x4,-0x2c(%rbp)
mov    -0x8(%rbp),%rax
movsd  (%rax),%xmm0
movsd  %xmm0,-0x38(%rbp)
mov    -0x8(%rbp),%rax
movsd  0x8(%rax),%xmm0
movsd  %xmm0,-0x40(%rbp)
mov    -0x10(%rbp),%rax
movsd  (%rax),%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  -0x38(%rbp),%xmm0
mulsd  -0x48(%rbp),%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  -0x40(%rbp),%xmm0
mulsd  -0x48(%rbp),%xmm0
movsd  %xmm0,-0x70(%rbp)
mov    -0x10(%rbp),%rax
movsd  0x8(%rax),%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  -0x38(%rbp),%xmm0
mulsd  -0x48(%rbp),%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  -0x40(%rbp),%xmm0
mulsd  -0x48(%rbp),%xmm0
movsd  %xmm0,-0x78(%rbp)
mov    -0x10(%rbp),%rax
movsd  0x10(%rax),%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  -0x38(%rbp),%xmm0
mulsd  -0x48(%rbp),%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  -0x40(%rbp),%xmm0
mulsd  -0x48(%rbp),%xmm0
movsd  %xmm0,-0x80(%rbp)
mov    -0x10(%rbp),%rax
movsd  0x18(%rax),%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  -0x38(%rbp),%xmm0
mulsd  -0x48(%rbp),%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x40(%rbp),%xmm0
mulsd  -0x48(%rbp),%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
mov    -0x8(%rbp),%rax
movsd  0x20(%rax),%xmm0
movsd  %xmm0,-0x38(%rbp)
mov    -0x8(%rbp),%rax
movsd  0x28(%rax),%xmm0
movsd  %xmm0,-0x40(%rbp)
mov    -0x10(%rbp),%rax
movsd  0x20(%rax),%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  -0x38(%rbp),%xmm0
movsd  -0x48(%rbp),%xmm2
movsd  -0x50(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  -0x40(%rbp),%xmm0
movsd  -0x48(%rbp),%xmm2
movsd  -0x70(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x70(%rbp)
mov    -0x10(%rbp),%rax
movsd  0x28(%rax),%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  -0x38(%rbp),%xmm0
movsd  -0x48(%rbp),%xmm2
movsd  -0x58(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  -0x40(%rbp),%xmm0
movsd  -0x48(%rbp),%xmm2
movsd  -0x78(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x78(%rbp)
mov    -0x10(%rbp),%rax
movsd  0x30(%rax),%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  -0x38(%rbp),%xmm0
movsd  -0x48(%rbp),%xmm2
movsd  -0x60(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  -0x40(%rbp),%xmm0
movsd  -0x48(%rbp),%xmm2
movsd  -0x80(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x80(%rbp)
mov    -0x10(%rbp),%rax
movsd  0x38(%rax),%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  -0x38(%rbp),%xmm0
movsd  -0x48(%rbp),%xmm2
movsd  -0x68(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x40(%rbp),%xmm0
movsd  -0x48(%rbp),%xmm2
movsd  -0x88(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
cmpl   $0x0,-0x14(%rbp)
je     147e <corner_dtrmm_l_u_nt_2x4_lib4+0x37e>
cmpl   $0x1,-0x14(%rbp)
jne    13dc <corner_dtrmm_l_u_nt_2x4_lib4+0x2dc>
mov    -0x20(%rbp),%rax
movsd  (%rax),%xmm0
addsd  -0x50(%rbp),%xmm0
movsd  %xmm0,-0x50(%rbp)
mov    -0x20(%rbp),%rax
movsd  0x8(%rax),%xmm0
addsd  -0x70(%rbp),%xmm0
movsd  %xmm0,-0x70(%rbp)
mov    -0x20(%rbp),%rax
movsd  0x20(%rax),%xmm0
addsd  -0x58(%rbp),%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    -0x20(%rbp),%rax
movsd  0x28(%rax),%xmm0
addsd  -0x78(%rbp),%xmm0
movsd  %xmm0,-0x78(%rbp)
mov    -0x20(%rbp),%rax
movsd  0x40(%rax),%xmm0
addsd  -0x60(%rbp),%xmm0
movsd  %xmm0,-0x60(%rbp)
mov    -0x20(%rbp),%rax
movsd  0x48(%rax),%xmm0
addsd  -0x80(%rbp),%xmm0
movsd  %xmm0,-0x80(%rbp)
mov    -0x20(%rbp),%rax
movsd  0x60(%rax),%xmm0
addsd  -0x68(%rbp),%xmm0
movsd  %xmm0,-0x68(%rbp)
mov    -0x20(%rbp),%rax
movsd  0x68(%rax),%xmm0
addsd  -0x88(%rbp),%xmm0
ff
movsd  %xmm0,-0x88(%rbp)
ff
jmp    1479 <corner_dtrmm_l_u_nt_2x4_lib4+0x379>
mov    -0x20(%rbp),%rax
movsd  (%rax),%xmm0
subsd  -0x50(%rbp),%xmm0
movsd  %xmm0,-0x50(%rbp)
mov    -0x20(%rbp),%rax
movsd  0x8(%rax),%xmm0
subsd  -0x70(%rbp),%xmm0
movsd  %xmm0,-0x70(%rbp)
mov    -0x20(%rbp),%rax
movsd  0x20(%rax),%xmm0
subsd  -0x58(%rbp),%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    -0x20(%rbp),%rax
movsd  0x28(%rax),%xmm0
subsd  -0x78(%rbp),%xmm0
movsd  %xmm0,-0x78(%rbp)
mov    -0x20(%rbp),%rax
movsd  0x40(%rax),%xmm0
subsd  -0x60(%rbp),%xmm0
movsd  %xmm0,-0x60(%rbp)
mov    -0x20(%rbp),%rax
movsd  0x48(%rax),%xmm0
subsd  -0x80(%rbp),%xmm0
movsd  %xmm0,-0x80(%rbp)
mov    -0x20(%rbp),%rax
movsd  0x60(%rax),%xmm0
subsd  -0x68(%rbp),%xmm0
movsd  %xmm0,-0x68(%rbp)
mov    -0x20(%rbp),%rax
movsd  0x68(%rax),%xmm0
subsd  -0x88(%rbp),%xmm0
ff
movsd  %xmm0,-0x88(%rbp)
ff
jmp    147e <corner_dtrmm_l_u_nt_2x4_lib4+0x37e>
movsd  -0x50(%rbp),%xmm0
mov    -0x28(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  -0x70(%rbp),%xmm0
mov    -0x28(%rbp),%rax
movsd  %xmm0,0x8(%rax)
movsd  -0x58(%rbp),%xmm0
mov    -0x28(%rbp),%rax
movsd  %xmm0,0x20(%rax)
movsd  -0x78(%rbp),%xmm0
mov    -0x28(%rbp),%rax
movsd  %xmm0,0x28(%rax)
movsd  -0x60(%rbp),%xmm0
mov    -0x28(%rbp),%rax
movsd  %xmm0,0x40(%rax)
movsd  -0x80(%rbp),%xmm0
mov    -0x28(%rbp),%rax
movsd  %xmm0,0x48(%rax)
movsd  -0x68(%rbp),%xmm0
mov    -0x28(%rbp),%rax
movsd  %xmm0,0x60(%rax)
movsd  -0x88(%rbp),%xmm0
ff
mov    -0x28(%rbp),%rax
movsd  %xmm0,0x68(%rax)
add    $0x8,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<corner_dtrmm_l_u_nt_2x4_lib4>:
movsd  (%rsi),%xmm1
movsd  0x8(%rsi),%xmm2
movsd  0x10(%rsi),%xmm3
movsd  0x18(%rsi),%xmm4
unpcklpd %xmm1,%xmm1
movupd (%rdi),%xmm0
movupd 0x20(%rdi),%xmm5
mulpd  %xmm0,%xmm1
unpcklpd %xmm2,%xmm2
mulpd  %xmm0,%xmm2
unpcklpd %xmm3,%xmm3
mulpd  %xmm0,%xmm3
unpcklpd %xmm4,%xmm4
mulpd  %xmm0,%xmm4
movsd  0x20(%rsi),%xmm0
unpcklpd %xmm0,%xmm0
mulpd  %xmm5,%xmm0
addpd  %xmm1,%xmm0
movsd  0x28(%rsi),%xmm1
unpcklpd %xmm1,%xmm1
mulpd  %xmm5,%xmm1
addpd  %xmm2,%xmm1
movsd  0x30(%rsi),%xmm2
unpcklpd %xmm2,%xmm2
mulpd  %xmm5,%xmm2
addpd  %xmm3,%xmm2
movsd  0x38(%rsi),%xmm3
unpcklpd %xmm3,%xmm3
mulpd  %xmm5,%xmm3
addpd  %xmm4,%xmm3
test   %edx,%edx
je     11e1 <corner_dtrmm_l_u_nt_2x4_lib4+0xe1>
cmp    $0x1,%edx
jne    11ae <corner_dtrmm_l_u_nt_2x4_lib4+0xae>
movupd (%rcx),%xmm4
movupd 0x20(%rcx),%xmm5
movupd 0x40(%rcx),%xmm6
movupd 0x60(%rcx),%xmm7
addpd  %xmm4,%xmm0
addpd  %xmm5,%xmm1
addpd  %xmm6,%xmm2
addpd  %xmm7,%xmm3
jmp    11e1 <corner_dtrmm_l_u_nt_2x4_lib4+0xe1>
movupd (%rcx),%xmm4
movupd 0x20(%rcx),%xmm5
movupd 0x40(%rcx),%xmm6
movupd 0x60(%rcx),%xmm7
subpd  %xmm0,%xmm4
subpd  %xmm1,%xmm5
subpd  %xmm2,%xmm6
subpd  %xmm3,%xmm7
movapd %xmm4,%xmm0
movapd %xmm5,%xmm1
movapd %xmm6,%xmm2
movapd %xmm7,%xmm3
movupd %xmm0,(%r8)
movupd %xmm1,0x20(%r8)
movupd %xmm2,0x40(%r8)
movupd %xmm3,0x60(%r8)
ret

LLVM IR (-O0):
define void @corner_dtrmm_l_u_nt_2x4_lib4(double* %0, double* %1, i32 %2, double* %3, double* %4) {
%6 = alloca double*
%7 = alloca double*
%8 = alloca i32
%9 = alloca double*
%10 = alloca double*
%11 = alloca i32
%12 = alloca double
%13 = alloca double
%14 = alloca double
%15 = alloca double
%16 = alloca double
%17 = alloca double
%18 = alloca double
%19 = alloca double
%20 = alloca double
%21 = alloca double
%22 = alloca double
store double* %0, double** %6
store double* %1, double** %7
store i32 %2, i32* %8
store double* %3, double** %9
store double* %4, double** %10
store i32 4, i32* %11
%23 = load double*, double** %6
%24 = getelementptr inbounds double, double* %23, i64 0
%25 = load double, double* %24
store double %25, double* %12
%26 = load double*, double** %6
%27 = getelementptr inbounds double, double* %26, i64 1
%28 = load double, double* %27
store double %28, double* %13
%29 = load double*, double** %7
%30 = getelementptr inbounds double, double* %29, i64 0
%31 = load double, double* %30
store double %31, double* %14
%32 = load double, double* %12
%33 = load double, double* %14
%34 = fmul double %32, %33
store double %34, double* %15
%35 = load double, double* %13
%36 = load double, double* %14
%37 = fmul double %35, %36
store double %37, double* %19
%38 = load double*, double** %7
%39 = getelementptr inbounds double, double* %38, i64 1
%40 = load double, double* %39
store double %40, double* %14
%41 = load double, double* %12
%42 = load double, double* %14
%43 = fmul double %41, %42
store double %43, double* %16
%44 = load double, double* %13
%45 = load double, double* %14
%46 = fmul double %44, %45
store double %46, double* %20
%47 = load double*, double** %7
%48 = getelementptr inbounds double, double* %47, i64 2
%49 = load double, double* %48
store double %49, double* %14
%50 = load double, double* %12
%51 = load double, double* %14
%52 = fmul double %50, %51
store double %52, double* %17
%53 = load double, double* %13
%54 = load double, double* %14
%55 = fmul double %53, %54
store double %55, double* %21
%56 = load double*, double** %7
%57 = getelementptr inbounds double, double* %56, i64 3
%58 = load double, double* %57
store double %58, double* %14
%59 = load double, double* %12
%60 = load double, double* %14
%61 = fmul double %59, %60
store double %61, double* %18
%62 = load double, double* %13
%63 = load double, double* %14
%64 = fmul double %62, %63
store double %64, double* %22
%65 = load double*, double** %6
%66 = getelementptr inbounds double, double* %65, i64 4
%67 = load double, double* %66
store double %67, double* %12
%68 = load double*, double** %6
%69 = getelementptr inbounds double, double* %68, i64 5
%70 = load double, double* %69
store double %70, double* %13
%71 = load double*, double** %7
%72 = getelementptr inbounds double, double* %71, i64 4
%73 = load double, double* %72
store double %73, double* %14
%74 = load double, double* %12
%75 = load double, double* %14
%76 = load double, double* %15
%77 = call double @llvm.fmuladd.f64(double %74, double %75, double %76)
store double %77, double* %15
%78 = load double, double* %13
%79 = load double, double* %14
%80 = load double, double* %19
%81 = call double @llvm.fmuladd.f64(double %78, double %79, double %80)
store double %81, double* %19
%82 = load double*, double** %7
%83 = getelementptr inbounds double, double* %82, i64 5
%84 = load double, double* %83
store double %84, double* %14
%85 = load double, double* %12
%86 = load double, double* %14
%87 = load double, double* %16
%88 = call double @llvm.fmuladd.f64(double %85, double %86, double %87)
store double %88, double* %16
%89 = load double, double* %13
%90 = load double, double* %14
%91 = load double, double* %20
%92 = call double @llvm.fmuladd.f64(double %89, double %90, double %91)
store double %92, double* %20
%93 = load double*, double** %7
%94 = getelementptr inbounds double, double* %93, i64 6
%95 = load double, double* %94
store double %95, double* %14
%96 = load double, double* %12
%97 = load double, double* %14
%98 = load double, double* %17
%99 = call double @llvm.fmuladd.f64(double %96, double %97, double %98)
store double %99, double* %17
%100 = load double, double* %13
%101 = load double, double* %14
%102 = load double, double* %21
%103 = call double @llvm.fmuladd.f64(double %100, double %101, double %102)
store double %103, double* %21
%104 = load double*, double** %7
%105 = getelementptr inbounds double, double* %104, i64 7
%106 = load double, double* %105
store double %106, double* %14
%107 = load double, double* %12
%108 = load double, double* %14
%109 = load double, double* %18
%110 = call double @llvm.fmuladd.f64(double %107, double %108, double %109)
store double %110, double* %18
%111 = load double, double* %13
%112 = load double, double* %14
%113 = load double, double* %22
%114 = call double @llvm.fmuladd.f64(double %111, double %112, double %113)
store double %114, double* %22
%115 = load i32, i32* %8
%116 = icmp ne i32 %115, 0
br i1 %116, label %117, label %203
117: ; preds = %5
%118 = load i32, i32* %8
%119 = icmp eq i32 %118, 1
br i1 %119, label %120, label %161
120: ; preds = %117
%121 = load double*, double** %9
%122 = getelementptr inbounds double, double* %121, i64 0
%123 = load double, double* %122
%124 = load double, double* %15
%125 = fadd double %123, %124
store double %125, double* %15
%126 = load double*, double** %9
%127 = getelementptr inbounds double, double* %126, i64 1
%128 = load double, double* %127
%129 = load double, double* %19
%130 = fadd double %128, %129
store double %130, double* %19
%131 = load double*, double** %9
%132 = getelementptr inbounds double, double* %131, i64 4
%133 = load double, double* %132
%134 = load double, double* %16
%135 = fadd double %133, %134
store double %135, double* %16
%136 = load double*, double** %9
%137 = getelementptr inbounds double, double* %136, i64 5
%138 = load double, double* %137
%139 = load double, double* %20
%140 = fadd double %138, %139
store double %140, double* %20
%141 = load double*, double** %9
%142 = getelementptr inbounds double, double* %141, i64 8
%143 = load double, double* %142
%144 = load double, double* %17
%145 = fadd double %143, %144
store double %145, double* %17
%146 = load double*, double** %9
%147 = getelementptr inbounds double, double* %146, i64 9
%148 = load double, double* %147
%149 = load double, double* %21
%150 = fadd double %148, %149
store double %150, double* %21
%151 = load double*, double** %9
%152 = getelementptr inbounds double, double* %151, i64 12
%153 = load double, double* %152
%154 = load double, double* %18
%155 = fadd double %153, %154
store double %155, double* %18
%156 = load double*, double** %9
%157 = getelementptr inbounds double, double* %156, i64 13
%158 = load double, double* %157
%159 = load double, double* %22
%160 = fadd double %158, %159
store double %160, double* %22
br label %202
161: ; preds = %117
%162 = load double*, double** %9
%163 = getelementptr inbounds double, double* %162, i64 0
%164 = load double, double* %163
%165 = load double, double* %15
%166 = fsub double %164, %165
store double %166, double* %15
%167 = load double*, double** %9
%168 = getelementptr inbounds double, double* %167, i64 1
%169 = load double, double* %168
%170 = load double, double* %19
%171 = fsub double %169, %170
store double %171, double* %19
%172 = load double*, double** %9
%173 = getelementptr inbounds double, double* %172, i64 4
%174 = load double, double* %173
%175 = load double, double* %16
%176 = fsub double %174, %175
store double %176, double* %16
%177 = load double*, double** %9
%178 = getelementptr inbounds double, double* %177, i64 5
%179 = load double, double* %178
%180 = load double, double* %20
%181 = fsub double %179, %180
store double %181, double* %20
%182 = load double*, double** %9
%183 = getelementptr inbounds double, double* %182, i64 8
%184 = load double, double* %183
%185 = load double, double* %17
%186 = fsub double %184, %185
store double %186, double* %17
%187 = load double*, double** %9
%188 = getelementptr inbounds double, double* %187, i64 9
%189 = load double, double* %188
%190 = load double, double* %21
%191 = fsub double %189, %190
store double %191, double* %21
%192 = load double*, double** %9
%193 = getelementptr inbounds double, double* %192, i64 12
%194 = load double, double* %193
%195 = load double, double* %18
%196 = fsub double %194, %195
store double %196, double* %18
%197 = load double*, double** %9
%198 = getelementptr inbounds double, double* %197, i64 13
%199 = load double, double* %198
%200 = load double, double* %22
%201 = fsub double %199, %200
store double %201, double* %22
br label %202
202: ; preds = %161, %120
br label %203
203: ; preds = %202, %5
%204 = load double, double* %15
%205 = load double*, double** %10
%206 = getelementptr inbounds double, double* %205, i64 0
store double %204, double* %206
%207 = load double, double* %19
%208 = load double*, double** %10
%209 = getelementptr inbounds double, double* %208, i64 1
store double %207, double* %209
%210 = load double, double* %16
%211 = load double*, double** %10
%212 = getelementptr inbounds double, double* %211, i64 4
store double %210, double* %212
%213 = load double, double* %20
%214 = load double*, double** %10
%215 = getelementptr inbounds double, double* %214, i64 5
store double %213, double* %215
%216 = load double, double* %17
%217 = load double*, double** %10
%218 = getelementptr inbounds double, double* %217, i64 8
store double %216, double* %218
%219 = load double, double* %21
%220 = load double*, double** %10
%221 = getelementptr inbounds double, double* %220, i64 9
store double %219, double* %221
%222 = load double, double* %18
%223 = load double*, double** %10
%224 = getelementptr inbounds double, double* %223, i64 12
store double %222, double* %224
%225 = load double, double* %22
%226 = load double*, double** %10
%227 = getelementptr inbounds double, double* %226, i64 13
store double %225, double* %227
ret void
}

LLVM IR (-O2):
define void @corner_dtrmm_l_u_nt_2x4_lib4(double* nocapture %0, double* nocapture %1, i32 %2, double* nocapture %3, double* nocapture writeonly %4) {
%6 = bitcast double* %0 to <2 x double>*
%7 = load <2 x double>, <2 x double>* %6
%8 = load double, double* %1
%9 = insertelement <2 x double> poison, double %8, i64 0
%10 = shufflevector <2 x double> %9, <2 x double> poison, <2 x i32> zeroinitializer
%11 = fmul <2 x double> %7, %10
%12 = getelementptr inbounds double, double* %1, i64 1
%13 = load double, double* %12
%14 = insertelement <2 x double> poison, double %13, i64 0
%15 = shufflevector <2 x double> %14, <2 x double> poison, <2 x i32> zeroinitializer
%16 = fmul <2 x double> %7, %15
%17 = getelementptr inbounds double, double* %1, i64 2
%18 = load double, double* %17
%19 = insertelement <2 x double> poison, double %18, i64 0
%20 = shufflevector <2 x double> %19, <2 x double> poison, <2 x i32> zeroinitializer
%21 = fmul <2 x double> %7, %20
%22 = getelementptr inbounds double, double* %1, i64 3
%23 = load double, double* %22
%24 = insertelement <2 x double> poison, double %23, i64 0
%25 = shufflevector <2 x double> %24, <2 x double> poison, <2 x i32> zeroinitializer
%26 = fmul <2 x double> %7, %25
%27 = getelementptr inbounds double, double* %0, i64 4
%28 = bitcast double* %27 to <2 x double>*
%29 = load <2 x double>, <2 x double>* %28
%30 = getelementptr inbounds double, double* %1, i64 4
%31 = load double, double* %30
%32 = insertelement <2 x double> poison, double %31, i64 0
%33 = shufflevector <2 x double> %32, <2 x double> poison, <2 x i32> zeroinitializer
%34 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %29, <2 x double> %33, <2 x double> %11)
%35 = getelementptr inbounds double, double* %1, i64 5
%36 = load double, double* %35
%37 = insertelement <2 x double> poison, double %36, i64 0
%38 = shufflevector <2 x double> %37, <2 x double> poison, <2 x i32> zeroinitializer
%39 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %29, <2 x double> %38, <2 x double> %16)
%40 = getelementptr inbounds double, double* %1, i64 6
%41 = load double, double* %40
%42 = insertelement <2 x double> poison, double %41, i64 0
%43 = shufflevector <2 x double> %42, <2 x double> poison, <2 x i32> zeroinitializer
%44 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %29, <2 x double> %43, <2 x double> %21)
%45 = getelementptr inbounds double, double* %1, i64 7
%46 = load double, double* %45
%47 = insertelement <2 x double> poison, double %46, 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> %29, <2 x double> %48, <2 x double> %26)
switch i32 %2, label %66 [
i32 0, label %82
i32 1, label %50
]
50: ; preds = %5
%51 = bitcast double* %3 to <2 x double>*
%52 = load <2 x double>, <2 x double>* %51
%53 = fadd <2 x double> %34, %52
%54 = getelementptr inbounds double, double* %3, i64 4
%55 = bitcast double* %54 to <2 x double>*
%56 = load <2 x double>, <2 x double>* %55
%57 = fadd <2 x double> %39, %56
%58 = getelementptr inbounds double, double* %3, i64 8
%59 = bitcast double* %58 to <2 x double>*
%60 = load <2 x double>, <2 x double>* %59
%61 = fadd <2 x double> %44, %60
%62 = getelementptr inbounds double, double* %3, i64 12
%63 = bitcast double* %62 to <2 x double>*
%64 = load <2 x double>, <2 x double>* %63
%65 = fadd <2 x double> %49, %64
br label %82
66: ; preds = %5
%67 = bitcast double* %3 to <2 x double>*
%68 = load <2 x double>, <2 x double>* %67
%69 = fsub <2 x double> %68, %34
%70 = getelementptr inbounds double, double* %3, i64 4
%71 = bitcast double* %70 to <2 x double>*
%72 = load <2 x double>, <2 x double>* %71
%73 = fsub <2 x double> %72, %39
%74 = getelementptr inbounds double, double* %3, i64 8
%75 = bitcast double* %74 to <2 x double>*
%76 = load <2 x double>, <2 x double>* %75
%77 = fsub <2 x double> %76, %44
%78 = getelementptr inbounds double, double* %3, i64 12
%79 = bitcast double* %78 to <2 x double>*
%80 = load <2 x double>, <2 x double>* %79
%81 = fsub <2 x double> %80, %49
br label %82
82: ; preds = %5, %50, %66
%83 = phi <2 x double> [ %53, %50 ], [ %69, %66 ], [ %34, %5 ]
%84 = phi <2 x double> [ %57, %50 ], [ %73, %66 ], [ %39, %5 ]
%85 = phi <2 x double> [ %61, %50 ], [ %77, %66 ], [ %44, %5 ]
%86 = phi <2 x double> [ %65, %50 ], [ %81, %66 ], [ %49, %5 ]
%87 = bitcast double* %4 to <2 x double>*
store <2 x double> %83, <2 x double>* %87
%88 = getelementptr inbounds double, double* %4, i64 4
%89 = bitcast double* %88 to <2 x double>*
store <2 x double> %84, <2 x double>* %89
%90 = getelementptr inbounds double, double* %4, i64 8
%91 = bitcast double* %90 to <2 x double>*
store <2 x double> %85, <2 x double>* %91
%92 = getelementptr inbounds double, double* %4, i64 12
%93 = bitcast double* %92 to <2 x double>*
store <2 x double> %86, <2 x double>* %93
ret void
}