void kernel_dtrsm_nn_ll_diag_2x4_vs_lib4(int km, int kn, int kmax, double *A,
                                         double *B, int sdb, int alg, double *C,
                                         double *D, double *E) {
  const int bs = 4;
  int k;
  double tmp, a_0, a_1, b_0, b_1, b_2, b_3, e_1, e_2, e_3,
      d_00 = 0, d_01 = 0, d_02 = 0, d_03 = 0, d_10 = 0, d_11 = 0, d_12 = 0,
      d_13 = 0;
  if (kmax <= 0)
    goto add;
  for (k = 0; k < kmax - 3; k += 4) {
    a_0 = A[0 + bs * 0];
    a_1 = A[1 + bs * 0];
    b_0 = B[0 + bs * 0];
    b_1 = B[0 + bs * 1];
    b_2 = B[0 + bs * 2];
    b_3 = B[0 + bs * 3];
    d_00 -= a_0 * b_0;
    d_10 -= a_1 * b_0;
    d_01 -= a_0 * b_1;
    d_11 -= a_1 * b_1;
    d_02 -= a_0 * b_2;
    d_12 -= a_1 * b_2;
    d_03 -= a_0 * b_3;
    d_13 -= a_1 * b_3;
    a_0 = A[0 + bs * 1];
    a_1 = A[1 + bs * 1];
    b_0 = B[1 + bs * 0];
    b_1 = B[1 + bs * 1];
    b_2 = B[1 + bs * 2];
    b_3 = B[1 + bs * 3];
    d_00 -= a_0 * b_0;
    d_10 -= a_1 * b_0;
    d_01 -= a_0 * b_1;
    d_11 -= a_1 * b_1;
    d_02 -= a_0 * b_2;
    d_12 -= a_1 * b_2;
    d_03 -= a_0 * b_3;
    d_13 -= a_1 * b_3;
    a_0 = A[0 + bs * 2];
    a_1 = A[1 + bs * 2];
    b_0 = B[2 + bs * 0];
    b_1 = B[2 + bs * 1];
    b_2 = B[2 + bs * 2];
    b_3 = B[2 + bs * 3];
    d_00 -= a_0 * b_0;
    d_10 -= a_1 * b_0;
    d_01 -= a_0 * b_1;
    d_11 -= a_1 * b_1;
    d_02 -= a_0 * b_2;
    d_12 -= a_1 * b_2;
    d_03 -= a_0 * b_3;
    d_13 -= a_1 * b_3;
    a_0 = A[0 + bs * 3];
    a_1 = A[1 + bs * 3];
    b_0 = B[3 + bs * 0];
    b_1 = B[3 + bs * 1];
    b_2 = B[3 + bs * 2];
    b_3 = B[3 + bs * 3];
    d_00 -= a_0 * b_0;
    d_10 -= a_1 * b_0;
    d_01 -= a_0 * b_1;
    d_11 -= a_1 * b_1;
    d_02 -= a_0 * b_2;
    d_12 -= a_1 * b_2;
    d_03 -= a_0 * b_3;
    d_13 -= a_1 * b_3;
    A += 16;
    B += 4 * sdb;
  }
  for (; k < kmax; k++) {
    a_0 = A[0 + bs * 0];
    a_1 = A[1 + bs * 0];
    b_0 = B[0 + bs * 0];
    b_1 = B[0 + bs * 1];
    b_2 = B[0 + bs * 2];
    b_3 = B[0 + bs * 3];
    d_00 -= a_0 * b_0;
    d_10 -= a_1 * b_0;
    d_01 -= a_0 * b_1;
    d_11 -= a_1 * b_1;
    d_02 -= a_0 * b_2;
    d_12 -= a_1 * b_2;
    d_03 -= a_0 * b_3;
    d_13 -= a_1 * b_3;
    A += 4;
    B += 1;
  }
add:
  if (alg != 0) {
    d_00 += C[0 + bs * 0];
    d_10 += C[1 + bs * 0];
    d_01 += C[0 + bs * 1];
    d_11 += C[1 + bs * 1];
    d_02 += C[0 + bs * 2];
    d_12 += C[1 + bs * 2];
    d_03 += C[0 + bs * 3];
    d_13 += C[1 + bs * 3];
  }
  D[0 + bs * 0] = d_00;
  D[0 + bs * 1] = d_01;
  D[0 + bs * 2] = d_02;
  if (kn >= 4)
    D[0 + bs * 3] = d_03;
  if (km < 2)
    return;
  e_1 = E[1 + bs * 0];
  e_2 = E[2 + bs * 0];
  e_3 = E[3 + bs * 0];
  d_10 -= e_1 * d_00;
  d_11 -= e_1 * d_01;
  d_12 -= e_1 * d_02;
  d_13 -= e_1 * d_03;
  D[1 + bs * 0] = d_10;
  D[1 + bs * 1] = d_11;
  D[1 + bs * 2] = d_12;
  if (kn >= 4)
    D[1 + bs * 3] = d_13;
  return;
}


x86 assembly (clang, -O0):
<kernel_dtrsm_nn_ll_diag_2x4_vs_lib4>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    0x28(%rbp),%rax
mov    0x20(%rbp),%rax
mov    0x18(%rbp),%rax
mov    0x10(%rbp),%eax
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    %rcx,-0x18(%rbp)
mov    %r8,-0x20(%rbp)
mov    %r9d,-0x24(%rbp)
movl   $0x4,-0x28(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x98(%rbp)
ff
xorps  %xmm0,%xmm0
movsd  %xmm0,-0xa0(%rbp)
ff
xorps  %xmm0,%xmm0
movsd  %xmm0,-0xa8(%rbp)
ff
xorps  %xmm0,%xmm0
movsd  %xmm0,-0xb0(%rbp)
ff
xorps  %xmm0,%xmm0
movsd  %xmm0,-0xb8(%rbp)
ff
xorps  %xmm0,%xmm0
movsd  %xmm0,-0xc0(%rbp)
ff
cmpl   $0x0,-0xc(%rbp)
jg     119a <kernel_dtrsm_nn_ll_diag_2x4_vs_lib4+0x9a>
jmp    1caa <kernel_dtrsm_nn_ll_diag_2x4_vs_lib4+0xbaa>
movl   $0x0,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
mov    -0xc(%rbp),%ecx
sub    $0x3,%ecx
cmp    %ecx,%eax
jge    1a54 <kernel_dtrsm_nn_ll_diag_2x4_vs_lib4+0x954>
mov    -0x18(%rbp),%rax
movsd  (%rax),%xmm0
movsd  %xmm0,-0x40(%rbp)
mov    -0x18(%rbp),%rax
movsd  0x8(%rax),%xmm0
movsd  %xmm0,-0x48(%rbp)
mov    -0x20(%rbp),%rax
movsd  (%rax),%xmm0
movsd  %xmm0,-0x50(%rbp)
mov    -0x20(%rbp),%rax
movsd  0x20(%rax),%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    -0x20(%rbp),%rax
movsd  0x40(%rax),%xmm0
movsd  %xmm0,-0x60(%rbp)
mov    -0x20(%rbp),%rax
movsd  0x60(%rax),%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x40(%rbp),%xmm0
movsd  -0x50(%rbp),%xmm2
movsd  -0x88(%rbp),%xmm1
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
movsd  -0x48(%rbp),%xmm0
movsd  -0x50(%rbp),%xmm2
movsd  -0xa8(%rbp),%xmm1
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xa8(%rbp)
ff
movsd  -0x40(%rbp),%xmm0
movsd  -0x58(%rbp),%xmm2
movsd  -0x90(%rbp),%xmm1
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
movsd  -0x48(%rbp),%xmm0
movsd  -0x58(%rbp),%xmm2
movsd  -0xb0(%rbp),%xmm1
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xb0(%rbp)
ff
movsd  -0x40(%rbp),%xmm0
movsd  -0x60(%rbp),%xmm2
movsd  -0x98(%rbp),%xmm1
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x98(%rbp)
ff
movsd  -0x48(%rbp),%xmm0
movsd  -0x60(%rbp),%xmm2
movsd  -0xb8(%rbp),%xmm1
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xb8(%rbp)
ff
movsd  -0x40(%rbp),%xmm0
movsd  -0x68(%rbp),%xmm2
movsd  -0xa0(%rbp),%xmm1
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xa0(%rbp)
ff
movsd  -0x48(%rbp),%xmm0
movsd  -0x68(%rbp),%xmm2
movsd  -0xc0(%rbp),%xmm1
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xc0(%rbp)
ff
mov    -0x18(%rbp),%rax
movsd  0x20(%rax),%xmm0
movsd  %xmm0,-0x40(%rbp)
mov    -0x18(%rbp),%rax
movsd  0x28(%rax),%xmm0
movsd  %xmm0,-0x48(%rbp)
mov    -0x20(%rbp),%rax
movsd  0x8(%rax),%xmm0
movsd  %xmm0,-0x50(%rbp)
mov    -0x20(%rbp),%rax
movsd  0x28(%rax),%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    -0x20(%rbp),%rax
movsd  0x48(%rax),%xmm0
movsd  %xmm0,-0x60(%rbp)
mov    -0x20(%rbp),%rax
movsd  0x68(%rax),%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x40(%rbp),%xmm0
movsd  -0x50(%rbp),%xmm2
movsd  -0x88(%rbp),%xmm1
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
movsd  -0x48(%rbp),%xmm0
movsd  -0x50(%rbp),%xmm2
movsd  -0xa8(%rbp),%xmm1
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xa8(%rbp)
ff
movsd  -0x40(%rbp),%xmm0
movsd  -0x58(%rbp),%xmm2
movsd  -0x90(%rbp),%xmm1
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
movsd  -0x48(%rbp),%xmm0
movsd  -0x58(%rbp),%xmm2
movsd  -0xb0(%rbp),%xmm1
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xb0(%rbp)
ff
movsd  -0x40(%rbp),%xmm0
movsd  -0x60(%rbp),%xmm2
movsd  -0x98(%rbp),%xmm1
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x98(%rbp)
ff
movsd  -0x48(%rbp),%xmm0
movsd  -0x60(%rbp),%xmm2
movsd  -0xb8(%rbp),%xmm1
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xb8(%rbp)
ff
movsd  -0x40(%rbp),%xmm0
movsd  -0x68(%rbp),%xmm2
movsd  -0xa0(%rbp),%xmm1
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xa0(%rbp)
ff
movsd  -0x48(%rbp),%xmm0
movsd  -0x68(%rbp),%xmm2
movsd  -0xc0(%rbp),%xmm1
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xc0(%rbp)
ff
mov    -0x18(%rbp),%rax
movsd  0x40(%rax),%xmm0
movsd  %xmm0,-0x40(%rbp)
mov    -0x18(%rbp),%rax
movsd  0x48(%rax),%xmm0
movsd  %xmm0,-0x48(%rbp)
mov    -0x20(%rbp),%rax
movsd  0x10(%rax),%xmm0
movsd  %xmm0,-0x50(%rbp)
mov    -0x20(%rbp),%rax
movsd  0x30(%rax),%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    -0x20(%rbp),%rax
movsd  0x50(%rax),%xmm0
movsd  %xmm0,-0x60(%rbp)
mov    -0x20(%rbp),%rax
movsd  0x70(%rax),%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x40(%rbp),%xmm0
movsd  -0x50(%rbp),%xmm2
movsd  -0x88(%rbp),%xmm1
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
movsd  -0x48(%rbp),%xmm0
movsd  -0x50(%rbp),%xmm2
movsd  -0xa8(%rbp),%xmm1
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xa8(%rbp)
ff
movsd  -0x40(%rbp),%xmm0
movsd  -0x58(%rbp),%xmm2
movsd  -0x90(%rbp),%xmm1
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
movsd  -0x48(%rbp),%xmm0
movsd  -0x58(%rbp),%xmm2
movsd  -0xb0(%rbp),%xmm1
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xb0(%rbp)
ff
movsd  -0x40(%rbp),%xmm0
movsd  -0x60(%rbp),%xmm2
movsd  -0x98(%rbp),%xmm1
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x98(%rbp)
ff
movsd  -0x48(%rbp),%xmm0
movsd  -0x60(%rbp),%xmm2
movsd  -0xb8(%rbp),%xmm1
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xb8(%rbp)
ff
movsd  -0x40(%rbp),%xmm0
movsd  -0x68(%rbp),%xmm2
movsd  -0xa0(%rbp),%xmm1
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xa0(%rbp)
ff
movsd  -0x48(%rbp),%xmm0
movsd  -0x68(%rbp),%xmm2
movsd  -0xc0(%rbp),%xmm1
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xc0(%rbp)
ff
mov    -0x18(%rbp),%rax
movsd  0x60(%rax),%xmm0
movsd  %xmm0,-0x40(%rbp)
mov    -0x18(%rbp),%rax
movsd  0x68(%rax),%xmm0
movsd  %xmm0,-0x48(%rbp)
mov    -0x20(%rbp),%rax
movsd  0x18(%rax),%xmm0
movsd  %xmm0,-0x50(%rbp)
mov    -0x20(%rbp),%rax
movsd  0x38(%rax),%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    -0x20(%rbp),%rax
movsd  0x58(%rax),%xmm0
movsd  %xmm0,-0x60(%rbp)
mov    -0x20(%rbp),%rax
movsd  0x78(%rax),%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x40(%rbp),%xmm0
movsd  -0x50(%rbp),%xmm2
movsd  -0x88(%rbp),%xmm1
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
movsd  -0x48(%rbp),%xmm0
movsd  -0x50(%rbp),%xmm2
movsd  -0xa8(%rbp),%xmm1
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xa8(%rbp)
ff
movsd  -0x40(%rbp),%xmm0
movsd  -0x58(%rbp),%xmm2
movsd  -0x90(%rbp),%xmm1
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
movsd  -0x48(%rbp),%xmm0
movsd  -0x58(%rbp),%xmm2
movsd  -0xb0(%rbp),%xmm1
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xb0(%rbp)
ff
movsd  -0x40(%rbp),%xmm0
movsd  -0x60(%rbp),%xmm2
movsd  -0x98(%rbp),%xmm1
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x98(%rbp)
ff
movsd  -0x48(%rbp),%xmm0
movsd  -0x60(%rbp),%xmm2
movsd  -0xb8(%rbp),%xmm1
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xb8(%rbp)
ff
movsd  -0x40(%rbp),%xmm0
movsd  -0x68(%rbp),%xmm2
movsd  -0xa0(%rbp),%xmm1
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xa0(%rbp)
ff
movsd  -0x48(%rbp),%xmm0
movsd  -0x68(%rbp),%xmm2
movsd  -0xc0(%rbp),%xmm1
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xc0(%rbp)
ff
mov    -0x18(%rbp),%rax
add    $0x80,%rax
mov    %rax,-0x18(%rbp)
mov    -0x24(%rbp),%ecx
shl    $0x2,%ecx
mov    -0x20(%rbp),%rax
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x20(%rbp)
mov    -0x2c(%rbp),%eax
add    $0x4,%eax
mov    %eax,-0x2c(%rbp)
jmp    11a1 <kernel_dtrsm_nn_ll_diag_2x4_vs_lib4+0xa1>
jmp    1a59 <kernel_dtrsm_nn_ll_diag_2x4_vs_lib4+0x959>
mov    -0x2c(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    1ca5 <kernel_dtrsm_nn_ll_diag_2x4_vs_lib4+0xba5>
mov    -0x18(%rbp),%rax
movsd  (%rax),%xmm0
movsd  %xmm0,-0x40(%rbp)
mov    -0x18(%rbp),%rax
movsd  0x8(%rax),%xmm0
movsd  %xmm0,-0x48(%rbp)
mov    -0x20(%rbp),%rax
movsd  (%rax),%xmm0
movsd  %xmm0,-0x50(%rbp)
mov    -0x20(%rbp),%rax
movsd  0x20(%rax),%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    -0x20(%rbp),%rax
movsd  0x40(%rax),%xmm0
movsd  %xmm0,-0x60(%rbp)
mov    -0x20(%rbp),%rax
movsd  0x60(%rax),%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x40(%rbp),%xmm0
movsd  -0x50(%rbp),%xmm2
movsd  -0x88(%rbp),%xmm1
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
movsd  -0x48(%rbp),%xmm0
movsd  -0x50(%rbp),%xmm2
movsd  -0xa8(%rbp),%xmm1
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xa8(%rbp)
ff
movsd  -0x40(%rbp),%xmm0
movsd  -0x58(%rbp),%xmm2
movsd  -0x90(%rbp),%xmm1
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
movsd  -0x48(%rbp),%xmm0
movsd  -0x58(%rbp),%xmm2
movsd  -0xb0(%rbp),%xmm1
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xb0(%rbp)
ff
movsd  -0x40(%rbp),%xmm0
movsd  -0x60(%rbp),%xmm2
movsd  -0x98(%rbp),%xmm1
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x98(%rbp)
ff
movsd  -0x48(%rbp),%xmm0
movsd  -0x60(%rbp),%xmm2
movsd  -0xb8(%rbp),%xmm1
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xb8(%rbp)
ff
movsd  -0x40(%rbp),%xmm0
movsd  -0x68(%rbp),%xmm2
movsd  -0xa0(%rbp),%xmm1
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xa0(%rbp)
ff
movsd  -0x48(%rbp),%xmm0
movsd  -0x68(%rbp),%xmm2
movsd  -0xc0(%rbp),%xmm1
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xc0(%rbp)
ff
mov    -0x18(%rbp),%rax
add    $0x20,%rax
mov    %rax,-0x18(%rbp)
mov    -0x20(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x20(%rbp)
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    1a59 <kernel_dtrsm_nn_ll_diag_2x4_vs_lib4+0x959>
jmp    1caa <kernel_dtrsm_nn_ll_diag_2x4_vs_lib4+0xbaa>
cmpl   $0x0,0x10(%rbp)
je     1d7b <kernel_dtrsm_nn_ll_diag_2x4_vs_lib4+0xc7b>
mov    0x18(%rbp),%rax
movsd  (%rax),%xmm0
addsd  -0x88(%rbp),%xmm0
ff
movsd  %xmm0,-0x88(%rbp)
ff
mov    0x18(%rbp),%rax
movsd  0x8(%rax),%xmm0
addsd  -0xa8(%rbp),%xmm0
ff
movsd  %xmm0,-0xa8(%rbp)
ff
mov    0x18(%rbp),%rax
movsd  0x20(%rax),%xmm0
addsd  -0x90(%rbp),%xmm0
ff
movsd  %xmm0,-0x90(%rbp)
ff
mov    0x18(%rbp),%rax
movsd  0x28(%rax),%xmm0
addsd  -0xb0(%rbp),%xmm0
ff
movsd  %xmm0,-0xb0(%rbp)
ff
mov    0x18(%rbp),%rax
movsd  0x40(%rax),%xmm0
addsd  -0x98(%rbp),%xmm0
ff
movsd  %xmm0,-0x98(%rbp)
ff
mov    0x18(%rbp),%rax
movsd  0x48(%rax),%xmm0
addsd  -0xb8(%rbp),%xmm0
ff
movsd  %xmm0,-0xb8(%rbp)
ff
mov    0x18(%rbp),%rax
movsd  0x60(%rax),%xmm0
addsd  -0xa0(%rbp),%xmm0
ff
movsd  %xmm0,-0xa0(%rbp)
ff
mov    0x18(%rbp),%rax
movsd  0x68(%rax),%xmm0
addsd  -0xc0(%rbp),%xmm0
ff
movsd  %xmm0,-0xc0(%rbp)
ff
movsd  -0x88(%rbp),%xmm0
ff
mov    0x20(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  -0x90(%rbp),%xmm0
ff
mov    0x20(%rbp),%rax
movsd  %xmm0,0x20(%rax)
movsd  -0x98(%rbp),%xmm0
ff
mov    0x20(%rbp),%rax
movsd  %xmm0,0x40(%rax)
cmpl   $0x4,-0x8(%rbp)
jl     1dc8 <kernel_dtrsm_nn_ll_diag_2x4_vs_lib4+0xcc8>
movsd  -0xa0(%rbp),%xmm0
ff
mov    0x20(%rbp),%rax
movsd  %xmm0,0x60(%rax)
cmpl   $0x2,-0x4(%rbp)
jge    1dd7 <kernel_dtrsm_nn_ll_diag_2x4_vs_lib4+0xcd7>
jmp    1f44 <kernel_dtrsm_nn_ll_diag_2x4_vs_lib4+0xe44>
mov    0x28(%rbp),%rax
movsd  0x8(%rax),%xmm0
movsd  %xmm0,-0x70(%rbp)
mov    0x28(%rbp),%rax
movsd  0x10(%rax),%xmm0
movsd  %xmm0,-0x78(%rbp)
mov    0x28(%rbp),%rax
movsd  0x18(%rax),%xmm0
movsd  %xmm0,-0x80(%rbp)
movsd  -0x70(%rbp),%xmm0
movsd  -0x88(%rbp),%xmm2
ff
movsd  -0xa8(%rbp),%xmm1
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xa8(%rbp)
ff
movsd  -0x70(%rbp),%xmm0
movsd  -0x90(%rbp),%xmm2
ff
movsd  -0xb0(%rbp),%xmm1
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xb0(%rbp)
ff
movsd  -0x70(%rbp),%xmm0
movsd  -0x98(%rbp),%xmm2
ff
movsd  -0xb8(%rbp),%xmm1
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xb8(%rbp)
ff
movsd  -0x70(%rbp),%xmm0
movsd  -0xa0(%rbp),%xmm2
ff
movsd  -0xc0(%rbp),%xmm1
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xc0(%rbp)
ff
movsd  -0xa8(%rbp),%xmm0
ff
mov    0x20(%rbp),%rax
movsd  %xmm0,0x8(%rax)
movsd  -0xb0(%rbp),%xmm0
ff
mov    0x20(%rbp),%rax
movsd  %xmm0,0x28(%rax)
movsd  -0xb8(%rbp),%xmm0
ff
mov    0x20(%rbp),%rax
movsd  %xmm0,0x48(%rax)
cmpl   $0x4,-0x8(%rbp)
jl     1f3f <kernel_dtrsm_nn_ll_diag_2x4_vs_lib4+0xe3f>
movsd  -0xc0(%rbp),%xmm0
ff
mov    0x20(%rbp),%rax
movsd  %xmm0,0x68(%rax)
jmp    1f44 <kernel_dtrsm_nn_ll_diag_2x4_vs_lib4+0xe44>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<kernel_dtrsm_nn_ll_diag_2x4_vs_lib4>:
mov    0x8(%rsp),%r10d
test   %edx,%edx
jle    1345 <kernel_dtrsm_nn_ll_diag_2x4_vs_lib4+0x245>
cmp    $0x4,%edx
jb     1371 <kernel_dtrsm_nn_ll_diag_2x4_vs_lib4+0x271>
lea    -0x3(%rdx),%r11d
shl    $0x2,%r9d
movslq %r9d,%r9
shl    $0x3,%r9
xor    %eax,%eax
xorpd  %xmm8,%xmm8
xorpd  %xmm10,%xmm10
xorpd  %xmm11,%xmm11
xorpd  %xmm12,%xmm12
xorpd  %xmm9,%xmm9
xorpd  %xmm14,%xmm14
xorpd  %xmm7,%xmm7
xorpd  %xmm15,%xmm15
xchg   %ax,%ax
movsd  (%rcx),%xmm3
movsd  0x8(%rcx),%xmm1
movsd  0x20(%r8),%xmm5
movsd  0x40(%r8),%xmm6
movsd  0x60(%r8),%xmm13
movsd  (%r8),%xmm2
movsd  0x8(%r8),%xmm0
movapd %xmm3,%xmm4
mulsd  %xmm2,%xmm4
subsd  %xmm4,%xmm15
mulsd  %xmm1,%xmm2
subsd  %xmm2,%xmm12
movapd %xmm3,%xmm2
mulsd  %xmm5,%xmm2
subsd  %xmm2,%xmm7
mulsd  %xmm1,%xmm5
subsd  %xmm5,%xmm11
movapd %xmm3,%xmm2
mulsd  %xmm6,%xmm2
subsd  %xmm2,%xmm14
mulsd  %xmm1,%xmm6
subsd  %xmm6,%xmm10
mulsd  %xmm13,%xmm3
subsd  %xmm3,%xmm9
mulsd  %xmm13,%xmm1
subsd  %xmm1,%xmm8
movsd  0x20(%rcx),%xmm2
movsd  0x28(%rcx),%xmm1
movsd  0x28(%r8),%xmm3
movsd  0x48(%r8),%xmm4
movsd  0x68(%r8),%xmm5
movapd %xmm2,%xmm6
mulsd  %xmm0,%xmm6
subsd  %xmm6,%xmm15
mulsd  %xmm1,%xmm0
subsd  %xmm0,%xmm12
movapd %xmm2,%xmm0
mulsd  %xmm3,%xmm0
subsd  %xmm0,%xmm7
mulsd  %xmm1,%xmm3
subsd  %xmm3,%xmm11
movapd %xmm2,%xmm0
mulsd  %xmm4,%xmm0
subsd  %xmm0,%xmm14
mulsd  %xmm1,%xmm4
subsd  %xmm4,%xmm10
mulsd  %xmm5,%xmm2
subsd  %xmm2,%xmm9
mulsd  %xmm5,%xmm1
subsd  %xmm1,%xmm8
movsd  0x40(%rcx),%xmm1
movsd  0x48(%rcx),%xmm0
movsd  0x10(%r8),%xmm2
movsd  0x30(%r8),%xmm3
movsd  0x50(%r8),%xmm4
movsd  0x70(%r8),%xmm5
movapd %xmm1,%xmm6
mulsd  %xmm2,%xmm6
subsd  %xmm6,%xmm15
mulsd  %xmm0,%xmm2
subsd  %xmm2,%xmm12
movapd %xmm1,%xmm2
mulsd  %xmm3,%xmm2
subsd  %xmm2,%xmm7
mulsd  %xmm0,%xmm3
subsd  %xmm3,%xmm11
movapd %xmm1,%xmm2
mulsd  %xmm4,%xmm2
subsd  %xmm2,%xmm14
mulsd  %xmm0,%xmm4
subsd  %xmm4,%xmm10
mulsd  %xmm5,%xmm1
subsd  %xmm1,%xmm9
mulsd  %xmm5,%xmm0
subsd  %xmm0,%xmm8
movsd  0x60(%rcx),%xmm1
movsd  0x68(%rcx),%xmm0
movsd  0x18(%r8),%xmm2
movsd  0x38(%r8),%xmm3
movsd  0x58(%r8),%xmm4
movsd  0x78(%r8),%xmm5
movapd %xmm1,%xmm6
mulsd  %xmm2,%xmm6
subsd  %xmm6,%xmm15
mulsd  %xmm0,%xmm2
subsd  %xmm2,%xmm12
movapd %xmm1,%xmm2
mulsd  %xmm3,%xmm2
subsd  %xmm2,%xmm7
mulsd  %xmm0,%xmm3
subsd  %xmm3,%xmm11
movapd %xmm1,%xmm2
mulsd  %xmm4,%xmm2
subsd  %xmm2,%xmm14
mulsd  %xmm0,%xmm4
subsd  %xmm4,%xmm10
mulsd  %xmm5,%xmm1
subsd  %xmm1,%xmm9
mulsd  %xmm5,%xmm0
subsd  %xmm0,%xmm8
sub    $0xffffffffffffff80,%rcx
add    $0x4,%eax
add    %r9,%r8
cmp    %r11d,%eax
jl     1150 <kernel_dtrsm_nn_ll_diag_2x4_vs_lib4+0x50>
mov    %edx,%eax
and    $0xfffffffc,%eax
cmp    %edx,%eax
jl     13a2 <kernel_dtrsm_nn_ll_diag_2x4_vs_lib4+0x2a2>
jmp    1437 <kernel_dtrsm_nn_ll_diag_2x4_vs_lib4+0x337>
xorpd  %xmm15,%xmm15
xorpd  %xmm7,%xmm7
xorpd  %xmm14,%xmm14
xorpd  %xmm9,%xmm9
xorpd  %xmm12,%xmm12
xorpd  %xmm11,%xmm11
xorpd  %xmm10,%xmm10
xorpd  %xmm8,%xmm8
jmp    1437 <kernel_dtrsm_nn_ll_diag_2x4_vs_lib4+0x337>
xorpd  %xmm15,%xmm15
xor    %eax,%eax
xorpd  %xmm7,%xmm7
xorpd  %xmm14,%xmm14
xorpd  %xmm9,%xmm9
xorpd  %xmm12,%xmm12
xorpd  %xmm11,%xmm11
xorpd  %xmm10,%xmm10
xorpd  %xmm8,%xmm8
cmp    %edx,%eax
jge    1437 <kernel_dtrsm_nn_ll_diag_2x4_vs_lib4+0x337>
sub    %eax,%edx
xor    %eax,%eax
cs nopw 0x0(%rax,%rax,1)
movsd  (%rcx),%xmm1
movsd  0x8(%rcx),%xmm0
movsd  (%r8,%rax,8),%xmm2
movsd  0x20(%r8,%rax,8),%xmm3
movsd  0x40(%r8,%rax,8),%xmm4
movsd  0x60(%r8,%rax,8),%xmm5
movapd %xmm1,%xmm6
mulsd  %xmm2,%xmm6
subsd  %xmm6,%xmm15
mulsd  %xmm0,%xmm2
subsd  %xmm2,%xmm12
movapd %xmm1,%xmm2
mulsd  %xmm3,%xmm2
subsd  %xmm2,%xmm7
mulsd  %xmm0,%xmm3
subsd  %xmm3,%xmm11
movapd %xmm1,%xmm2
mulsd  %xmm4,%xmm2
subsd  %xmm2,%xmm14
mulsd  %xmm0,%xmm4
subsd  %xmm4,%xmm10
mulsd  %xmm5,%xmm1
subsd  %xmm1,%xmm9
mulsd  %xmm5,%xmm0
subsd  %xmm0,%xmm8
add    $0x1,%rax
add    $0x20,%rcx
cmp    %eax,%edx
jne    13b0 <kernel_dtrsm_nn_ll_diag_2x4_vs_lib4+0x2b0>
mov    0x18(%rsp),%rax
test   %r10d,%r10d
je     1474 <kernel_dtrsm_nn_ll_diag_2x4_vs_lib4+0x374>
mov    0x10(%rsp),%rcx
addsd  (%rcx),%xmm15
addsd  0x8(%rcx),%xmm12
addsd  0x20(%rcx),%xmm7
addsd  0x28(%rcx),%xmm11
addsd  0x40(%rcx),%xmm14
addsd  0x48(%rcx),%xmm10
addsd  0x60(%rcx),%xmm9
addsd  0x68(%rcx),%xmm8
movsd  %xmm15,(%rax)
movsd  %xmm7,0x20(%rax)
movsd  %xmm14,0x40(%rax)
cmp    $0x4,%esi
jl     148f <kernel_dtrsm_nn_ll_diag_2x4_vs_lib4+0x38f>
movsd  %xmm9,0x60(%rax)
cmp    $0x2,%edi
jl     14e9 <kernel_dtrsm_nn_ll_diag_2x4_vs_lib4+0x3e9>
mov    0x20(%rsp),%rcx
movsd  0x8(%rcx),%xmm0
mulsd  %xmm0,%xmm15
subsd  %xmm15,%xmm12
mulsd  %xmm0,%xmm7
subsd  %xmm7,%xmm11
mulsd  %xmm0,%xmm14
subsd  %xmm14,%xmm10
movsd  %xmm12,0x8(%rax)
movsd  %xmm11,0x28(%rax)
movsd  %xmm10,0x48(%rax)
cmp    $0x4,%esi
jl     14e9 <kernel_dtrsm_nn_ll_diag_2x4_vs_lib4+0x3e9>
xorpd  0xb26(%rip),%xmm0
mulsd  %xmm9,%xmm0
addsd  %xmm8,%xmm0
movsd  %xmm0,0x68(%rax)
ret

LLVM IR (-O0):
define void @kernel_dtrsm_nn_ll_diag_2x4_vs_lib4(i32 %0, i32 %1, i32 %2, double* %3, double* %4, i32 %5, i32 %6, double* %7, double* %8, double* %9) {
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca double*
%15 = alloca double*
%16 = alloca i32
%17 = alloca i32
%18 = alloca double*
%19 = alloca double*
%20 = alloca double*
%21 = alloca i32
%22 = alloca i32
%23 = alloca double
%24 = alloca double
%25 = alloca double
%26 = alloca double
%27 = alloca double
%28 = alloca double
%29 = alloca double
%30 = alloca double
%31 = alloca double
%32 = alloca double
%33 = alloca double
%34 = alloca double
%35 = alloca double
%36 = alloca double
%37 = alloca double
%38 = alloca double
%39 = alloca double
%40 = alloca double
store i32 %0, i32* %11
store i32 %1, i32* %12
store i32 %2, i32* %13
store double* %3, double** %14
store double* %4, double** %15
store i32 %5, i32* %16
store i32 %6, i32* %17
store double* %7, double** %18
store double* %8, double** %19
store double* %9, double** %20
store i32 4, i32* %21
store double 0.000000e+00, double* %33
store double 0.000000e+00, double* %34
store double 0.000000e+00, double* %35
store double 0.000000e+00, double* %36
store double 0.000000e+00, double* %37
store double 0.000000e+00, double* %38
store double 0.000000e+00, double* %39
store double 0.000000e+00, double* %40
%41 = load i32, i32* %13
%42 = icmp sle i32 %41, 0
br i1 %42, label %43, label %44
43: ; preds = %10
br label %365
44: ; preds = %10
store i32 0, i32* %22
br label %45
45: ; preds = %290, %44
%46 = load i32, i32* %22
%47 = load i32, i32* %13
%48 = sub nsw i32 %47, 3
%49 = icmp slt i32 %46, %48
br i1 %49, label %50, label %293
50: ; preds = %45
%51 = load double*, double** %14
%52 = getelementptr inbounds double, double* %51, i64 0
%53 = load double, double* %52
store double %53, double* %24
%54 = load double*, double** %14
%55 = getelementptr inbounds double, double* %54, i64 1
%56 = load double, double* %55
store double %56, double* %25
%57 = load double*, double** %15
%58 = getelementptr inbounds double, double* %57, i64 0
%59 = load double, double* %58
store double %59, double* %26
%60 = load double*, double** %15
%61 = getelementptr inbounds double, double* %60, i64 4
%62 = load double, double* %61
store double %62, double* %27
%63 = load double*, double** %15
%64 = getelementptr inbounds double, double* %63, i64 8
%65 = load double, double* %64
store double %65, double* %28
%66 = load double*, double** %15
%67 = getelementptr inbounds double, double* %66, i64 12
%68 = load double, double* %67
store double %68, double* %29
%69 = load double, double* %24
%70 = load double, double* %26
%71 = load double, double* %33
%72 = fneg double %69
%73 = call double @llvm.fmuladd.f64(double %72, double %70, double %71)
store double %73, double* %33
%74 = load double, double* %25
%75 = load double, double* %26
%76 = load double, double* %37
%77 = fneg double %74
%78 = call double @llvm.fmuladd.f64(double %77, double %75, double %76)
store double %78, double* %37
%79 = load double, double* %24
%80 = load double, double* %27
%81 = load double, double* %34
%82 = fneg double %79
%83 = call double @llvm.fmuladd.f64(double %82, double %80, double %81)
store double %83, double* %34
%84 = load double, double* %25
%85 = load double, double* %27
%86 = load double, double* %38
%87 = fneg double %84
%88 = call double @llvm.fmuladd.f64(double %87, double %85, double %86)
store double %88, double* %38
%89 = load double, double* %24
%90 = load double, double* %28
%91 = load double, double* %35
%92 = fneg double %89
%93 = call double @llvm.fmuladd.f64(double %92, double %90, double %91)
store double %93, double* %35
%94 = load double, double* %25
%95 = load double, double* %28
%96 = load double, double* %39
%97 = fneg double %94
%98 = call double @llvm.fmuladd.f64(double %97, double %95, double %96)
store double %98, double* %39
%99 = load double, double* %24
%100 = load double, double* %29
%101 = load double, double* %36
%102 = fneg double %99
%103 = call double @llvm.fmuladd.f64(double %102, double %100, double %101)
store double %103, double* %36
%104 = load double, double* %25
%105 = load double, double* %29
%106 = load double, double* %40
%107 = fneg double %104
%108 = call double @llvm.fmuladd.f64(double %107, double %105, double %106)
store double %108, double* %40
%109 = load double*, double** %14
%110 = getelementptr inbounds double, double* %109, i64 4
%111 = load double, double* %110
store double %111, double* %24
%112 = load double*, double** %14
%113 = getelementptr inbounds double, double* %112, i64 5
%114 = load double, double* %113
store double %114, double* %25
%115 = load double*, double** %15
%116 = getelementptr inbounds double, double* %115, i64 1
%117 = load double, double* %116
store double %117, double* %26
%118 = load double*, double** %15
%119 = getelementptr inbounds double, double* %118, i64 5
%120 = load double, double* %119
store double %120, double* %27
%121 = load double*, double** %15
%122 = getelementptr inbounds double, double* %121, i64 9
%123 = load double, double* %122
store double %123, double* %28
%124 = load double*, double** %15
%125 = getelementptr inbounds double, double* %124, i64 13
%126 = load double, double* %125
store double %126, double* %29
%127 = load double, double* %24
%128 = load double, double* %26
%129 = load double, double* %33
%130 = fneg double %127
%131 = call double @llvm.fmuladd.f64(double %130, double %128, double %129)
store double %131, double* %33
%132 = load double, double* %25
%133 = load double, double* %26
%134 = load double, double* %37
%135 = fneg double %132
%136 = call double @llvm.fmuladd.f64(double %135, double %133, double %134)
store double %136, double* %37
%137 = load double, double* %24
%138 = load double, double* %27
%139 = load double, double* %34
%140 = fneg double %137
%141 = call double @llvm.fmuladd.f64(double %140, double %138, double %139)
store double %141, double* %34
%142 = load double, double* %25
%143 = load double, double* %27
%144 = load double, double* %38
%145 = fneg double %142
%146 = call double @llvm.fmuladd.f64(double %145, double %143, double %144)
store double %146, double* %38
%147 = load double, double* %24
%148 = load double, double* %28
%149 = load double, double* %35
%150 = fneg double %147
%151 = call double @llvm.fmuladd.f64(double %150, double %148, double %149)
store double %151, double* %35
%152 = load double, double* %25
%153 = load double, double* %28
%154 = load double, double* %39
%155 = fneg double %152
%156 = call double @llvm.fmuladd.f64(double %155, double %153, double %154)
store double %156, double* %39
%157 = load double, double* %24
%158 = load double, double* %29
%159 = load double, double* %36
%160 = fneg double %157
%161 = call double @llvm.fmuladd.f64(double %160, double %158, double %159)
store double %161, double* %36
%162 = load double, double* %25
%163 = load double, double* %29
%164 = load double, double* %40
%165 = fneg double %162
%166 = call double @llvm.fmuladd.f64(double %165, double %163, double %164)
store double %166, double* %40
%167 = load double*, double** %14
%168 = getelementptr inbounds double, double* %167, i64 8
%169 = load double, double* %168
store double %169, double* %24
%170 = load double*, double** %14
%171 = getelementptr inbounds double, double* %170, i64 9
%172 = load double, double* %171
store double %172, double* %25
%173 = load double*, double** %15
%174 = getelementptr inbounds double, double* %173, i64 2
%175 = load double, double* %174
store double %175, double* %26
%176 = load double*, double** %15
%177 = getelementptr inbounds double, double* %176, i64 6
%178 = load double, double* %177
store double %178, double* %27
%179 = load double*, double** %15
%180 = getelementptr inbounds double, double* %179, i64 10
%181 = load double, double* %180
store double %181, double* %28
%182 = load double*, double** %15
%183 = getelementptr inbounds double, double* %182, i64 14
%184 = load double, double* %183
store double %184, double* %29
%185 = load double, double* %24
%186 = load double, double* %26
%187 = load double, double* %33
%188 = fneg double %185
%189 = call double @llvm.fmuladd.f64(double %188, double %186, double %187)
store double %189, double* %33
%190 = load double, double* %25
%191 = load double, double* %26
%192 = load double, double* %37
%193 = fneg double %190
%194 = call double @llvm.fmuladd.f64(double %193, double %191, double %192)
store double %194, double* %37
%195 = load double, double* %24
%196 = load double, double* %27
%197 = load double, double* %34
%198 = fneg double %195
%199 = call double @llvm.fmuladd.f64(double %198, double %196, double %197)
store double %199, double* %34
%200 = load double, double* %25
%201 = load double, double* %27
%202 = load double, double* %38
%203 = fneg double %200
%204 = call double @llvm.fmuladd.f64(double %203, double %201, double %202)
store double %204, double* %38
%205 = load double, double* %24
%206 = load double, double* %28
%207 = load double, double* %35
%208 = fneg double %205
%209 = call double @llvm.fmuladd.f64(double %208, double %206, double %207)
store double %209, double* %35
%210 = load double, double* %25
%211 = load double, double* %28
%212 = load double, double* %39
%213 = fneg double %210
%214 = call double @llvm.fmuladd.f64(double %213, double %211, double %212)
store double %214, double* %39
%215 = load double, double* %24
%216 = load double, double* %29
%217 = load double, double* %36
%218 = fneg double %215
%219 = call double @llvm.fmuladd.f64(double %218, double %216, double %217)
store double %219, double* %36
%220 = load double, double* %25
%221 = load double, double* %29
%222 = load double, double* %40
%223 = fneg double %220
%224 = call double @llvm.fmuladd.f64(double %223, double %221, double %222)
store double %224, double* %40
%225 = load double*, double** %14
%226 = getelementptr inbounds double, double* %225, i64 12
%227 = load double, double* %226
store double %227, double* %24
%228 = load double*, double** %14
%229 = getelementptr inbounds double, double* %228, i64 13
%230 = load double, double* %229
store double %230, double* %25
%231 = load double*, double** %15
%232 = getelementptr inbounds double, double* %231, i64 3
%233 = load double, double* %232
store double %233, double* %26
%234 = load double*, double** %15
%235 = getelementptr inbounds double, double* %234, i64 7
%236 = load double, double* %235
store double %236, double* %27
%237 = load double*, double** %15
%238 = getelementptr inbounds double, double* %237, i64 11
%239 = load double, double* %238
store double %239, double* %28
%240 = load double*, double** %15
%241 = getelementptr inbounds double, double* %240, i64 15
%242 = load double, double* %241
store double %242, double* %29
%243 = load double, double* %24
%244 = load double, double* %26
%245 = load double, double* %33
%246 = fneg double %243
%247 = call double @llvm.fmuladd.f64(double %246, double %244, double %245)
store double %247, double* %33
%248 = load double, double* %25
%249 = load double, double* %26
%250 = load double, double* %37
%251 = fneg double %248
%252 = call double @llvm.fmuladd.f64(double %251, double %249, double %250)
store double %252, double* %37
%253 = load double, double* %24
%254 = load double, double* %27
%255 = load double, double* %34
%256 = fneg double %253
%257 = call double @llvm.fmuladd.f64(double %256, double %254, double %255)
store double %257, double* %34
%258 = load double, double* %25
%259 = load double, double* %27
%260 = load double, double* %38
%261 = fneg double %258
%262 = call double @llvm.fmuladd.f64(double %261, double %259, double %260)
store double %262, double* %38
%263 = load double, double* %24
%264 = load double, double* %28
%265 = load double, double* %35
%266 = fneg double %263
%267 = call double @llvm.fmuladd.f64(double %266, double %264, double %265)
store double %267, double* %35
%268 = load double, double* %25
%269 = load double, double* %28
%270 = load double, double* %39
%271 = fneg double %268
%272 = call double @llvm.fmuladd.f64(double %271, double %269, double %270)
store double %272, double* %39
%273 = load double, double* %24
%274 = load double, double* %29
%275 = load double, double* %36
%276 = fneg double %273
%277 = call double @llvm.fmuladd.f64(double %276, double %274, double %275)
store double %277, double* %36
%278 = load double, double* %25
%279 = load double, double* %29
%280 = load double, double* %40
%281 = fneg double %278
%282 = call double @llvm.fmuladd.f64(double %281, double %279, double %280)
store double %282, double* %40
%283 = load double*, double** %14
%284 = getelementptr inbounds double, double* %283, i64 16
store double* %284, double** %14
%285 = load i32, i32* %16
%286 = mul nsw i32 4, %285
%287 = load double*, double** %15
%288 = sext i32 %286 to i64
%289 = getelementptr inbounds double, double* %287, i64 %288
store double* %289, double** %15
br label %290
290: ; preds = %50
%291 = load i32, i32* %22
%292 = add nsw i32 %291, 4
store i32 %292, i32* %22
br label %45
293: ; preds = %45
br label %294
294: ; preds = %361, %293
%295 = load i32, i32* %22
%296 = load i32, i32* %13
%297 = icmp slt i32 %295, %296
br i1 %297, label %298, label %364
298: ; preds = %294
%299 = load double*, double** %14
%300 = getelementptr inbounds double, double* %299, i64 0
%301 = load double, double* %300
store double %301, double* %24
%302 = load double*, double** %14
%303 = getelementptr inbounds double, double* %302, i64 1
%304 = load double, double* %303
store double %304, double* %25
%305 = load double*, double** %15
%306 = getelementptr inbounds double, double* %305, i64 0
%307 = load double, double* %306
store double %307, double* %26
%308 = load double*, double** %15
%309 = getelementptr inbounds double, double* %308, i64 4
%310 = load double, double* %309
store double %310, double* %27
%311 = load double*, double** %15
%312 = getelementptr inbounds double, double* %311, i64 8
%313 = load double, double* %312
store double %313, double* %28
%314 = load double*, double** %15
%315 = getelementptr inbounds double, double* %314, i64 12
%316 = load double, double* %315
store double %316, double* %29
%317 = load double, double* %24
%318 = load double, double* %26
%319 = load double, double* %33
%320 = fneg double %317
%321 = call double @llvm.fmuladd.f64(double %320, double %318, double %319)
store double %321, double* %33
%322 = load double, double* %25
%323 = load double, double* %26
%324 = load double, double* %37
%325 = fneg double %322
%326 = call double @llvm.fmuladd.f64(double %325, double %323, double %324)
store double %326, double* %37
%327 = load double, double* %24
%328 = load double, double* %27
%329 = load double, double* %34
%330 = fneg double %327
%331 = call double @llvm.fmuladd.f64(double %330, double %328, double %329)
store double %331, double* %34
%332 = load double, double* %25
%333 = load double, double* %27
%334 = load double, double* %38
%335 = fneg double %332
%336 = call double @llvm.fmuladd.f64(double %335, double %333, double %334)
store double %336, double* %38
%337 = load double, double* %24
%338 = load double, double* %28
%339 = load double, double* %35
%340 = fneg double %337
%341 = call double @llvm.fmuladd.f64(double %340, double %338, double %339)
store double %341, double* %35
%342 = load double, double* %25
%343 = load double, double* %28
%344 = load double, double* %39
%345 = fneg double %342
%346 = call double @llvm.fmuladd.f64(double %345, double %343, double %344)
store double %346, double* %39
%347 = load double, double* %24
%348 = load double, double* %29
%349 = load double, double* %36
%350 = fneg double %347
%351 = call double @llvm.fmuladd.f64(double %350, double %348, double %349)
store double %351, double* %36
%352 = load double, double* %25
%353 = load double, double* %29
%354 = load double, double* %40
%355 = fneg double %352
%356 = call double @llvm.fmuladd.f64(double %355, double %353, double %354)
store double %356, double* %40
%357 = load double*, double** %14
%358 = getelementptr inbounds double, double* %357, i64 4
store double* %358, double** %14
%359 = load double*, double** %15
%360 = getelementptr inbounds double, double* %359, i64 1
store double* %360, double** %15
br label %361
361: ; preds = %298
%362 = load i32, i32* %22
%363 = add nsw i32 %362, 1
store i32 %363, i32* %22
br label %294
364: ; preds = %294
br label %365
365: ; preds = %364, %43
%366 = load i32, i32* %17
%367 = icmp ne i32 %366, 0
br i1 %367, label %368, label %409
368: ; preds = %365
%369 = load double*, double** %18
%370 = getelementptr inbounds double, double* %369, i64 0
%371 = load double, double* %370
%372 = load double, double* %33
%373 = fadd double %372, %371
store double %373, double* %33
%374 = load double*, double** %18
%375 = getelementptr inbounds double, double* %374, i64 1
%376 = load double, double* %375
%377 = load double, double* %37
%378 = fadd double %377, %376
store double %378, double* %37
%379 = load double*, double** %18
%380 = getelementptr inbounds double, double* %379, i64 4
%381 = load double, double* %380
%382 = load double, double* %34
%383 = fadd double %382, %381
store double %383, double* %34
%384 = load double*, double** %18
%385 = getelementptr inbounds double, double* %384, i64 5
%386 = load double, double* %385
%387 = load double, double* %38
%388 = fadd double %387, %386
store double %388, double* %38
%389 = load double*, double** %18
%390 = getelementptr inbounds double, double* %389, i64 8
%391 = load double, double* %390
%392 = load double, double* %35
%393 = fadd double %392, %391
store double %393, double* %35
%394 = load double*, double** %18
%395 = getelementptr inbounds double, double* %394, i64 9
%396 = load double, double* %395
%397 = load double, double* %39
%398 = fadd double %397, %396
store double %398, double* %39
%399 = load double*, double** %18
%400 = getelementptr inbounds double, double* %399, i64 12
%401 = load double, double* %400
%402 = load double, double* %36
%403 = fadd double %402, %401
store double %403, double* %36
%404 = load double*, double** %18
%405 = getelementptr inbounds double, double* %404, i64 13
%406 = load double, double* %405
%407 = load double, double* %40
%408 = fadd double %407, %406
store double %408, double* %40
br label %409
409: ; preds = %368, %365
%410 = load double, double* %33
%411 = load double*, double** %19
%412 = getelementptr inbounds double, double* %411, i64 0
store double %410, double* %412
%413 = load double, double* %34
%414 = load double*, double** %19
%415 = getelementptr inbounds double, double* %414, i64 4
store double %413, double* %415
%416 = load double, double* %35
%417 = load double*, double** %19
%418 = getelementptr inbounds double, double* %417, i64 8
store double %416, double* %418
%419 = load i32, i32* %12
%420 = icmp sge i32 %419, 4
br i1 %420, label %421, label %425
421: ; preds = %409
%422 = load double, double* %36
%423 = load double*, double** %19
%424 = getelementptr inbounds double, double* %423, i64 12
store double %422, double* %424
br label %425
425: ; preds = %421, %409
%426 = load i32, i32* %11
%427 = icmp slt i32 %426, 2
br i1 %427, label %428, label %429
428: ; preds = %425
br label %475
429: ; preds = %425
%430 = load double*, double** %20
%431 = getelementptr inbounds double, double* %430, i64 1
%432 = load double, double* %431
store double %432, double* %30
%433 = load double*, double** %20
%434 = getelementptr inbounds double, double* %433, i64 2
%435 = load double, double* %434
store double %435, double* %31
%436 = load double*, double** %20
%437 = getelementptr inbounds double, double* %436, i64 3
%438 = load double, double* %437
store double %438, double* %32
%439 = load double, double* %30
%440 = load double, double* %33
%441 = load double, double* %37
%442 = fneg double %439
%443 = call double @llvm.fmuladd.f64(double %442, double %440, double %441)
store double %443, double* %37
%444 = load double, double* %30
%445 = load double, double* %34
%446 = load double, double* %38
%447 = fneg double %444
%448 = call double @llvm.fmuladd.f64(double %447, double %445, double %446)
store double %448, double* %38
%449 = load double, double* %30
%450 = load double, double* %35
%451 = load double, double* %39
%452 = fneg double %449
%453 = call double @llvm.fmuladd.f64(double %452, double %450, double %451)
store double %453, double* %39
%454 = load double, double* %30
%455 = load double, double* %36
%456 = load double, double* %40
%457 = fneg double %454
%458 = call double @llvm.fmuladd.f64(double %457, double %455, double %456)
store double %458, double* %40
%459 = load double, double* %37
%460 = load double*, double** %19
%461 = getelementptr inbounds double, double* %460, i64 1
store double %459, double* %461
%462 = load double, double* %38
%463 = load double*, double** %19
%464 = getelementptr inbounds double, double* %463, i64 5
store double %462, double* %464
%465 = load double, double* %39
%466 = load double*, double** %19
%467 = getelementptr inbounds double, double* %466, i64 9
store double %465, double* %467
%468 = load i32, i32* %12
%469 = icmp sge i32 %468, 4
br i1 %469, label %470, label %474
470: ; preds = %429
%471 = load double, double* %40
%472 = load double*, double** %19
%473 = getelementptr inbounds double, double* %472, i64 13
store double %471, double* %473
br label %474
474: ; preds = %470, %429
br label %475
475: ; preds = %474, %428
ret void
}

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