void kernel_dtrsm_nn_ll_diag_4x2_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, a_2, a_3, b_0, b_1, e_1, e_2, e_3,
      d_00 = 0, d_01 = 0, d_10 = 0, d_11 = 0, d_20 = 0, d_21 = 0, d_30 = 0,
      d_31 = 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];
    a_2 = A[2 + bs * 0];
    a_3 = A[3 + bs * 0];
    b_0 = B[0 + bs * 0];
    b_1 = B[0 + bs * 1];
    d_00 -= a_0 * b_0;
    d_10 -= a_1 * b_0;
    d_20 -= a_2 * b_0;
    d_30 -= a_3 * b_0;
    d_01 -= a_0 * b_1;
    d_11 -= a_1 * b_1;
    d_21 -= a_2 * b_1;
    d_31 -= a_3 * b_1;
    a_0 = A[0 + bs * 1];
    a_1 = A[1 + bs * 1];
    a_2 = A[2 + bs * 1];
    a_3 = A[3 + bs * 1];
    b_0 = B[1 + bs * 0];
    b_1 = B[1 + bs * 1];
    d_00 -= a_0 * b_0;
    d_10 -= a_1 * b_0;
    d_20 -= a_2 * b_0;
    d_30 -= a_3 * b_0;
    d_01 -= a_0 * b_1;
    d_11 -= a_1 * b_1;
    d_21 -= a_2 * b_1;
    d_31 -= a_3 * b_1;
    a_0 = A[0 + bs * 2];
    a_1 = A[1 + bs * 2];
    a_2 = A[2 + bs * 2];
    a_3 = A[3 + bs * 2];
    b_0 = B[2 + bs * 0];
    b_1 = B[2 + bs * 1];
    d_00 -= a_0 * b_0;
    d_10 -= a_1 * b_0;
    d_20 -= a_2 * b_0;
    d_30 -= a_3 * b_0;
    d_01 -= a_0 * b_1;
    d_11 -= a_1 * b_1;
    d_21 -= a_2 * b_1;
    d_31 -= a_3 * b_1;
    a_0 = A[0 + bs * 3];
    a_1 = A[1 + bs * 3];
    a_2 = A[2 + bs * 3];
    a_3 = A[3 + bs * 3];
    b_0 = B[3 + bs * 0];
    b_1 = B[3 + bs * 1];
    d_00 -= a_0 * b_0;
    d_10 -= a_1 * b_0;
    d_20 -= a_2 * b_0;
    d_30 -= a_3 * b_0;
    d_01 -= a_0 * b_1;
    d_11 -= a_1 * b_1;
    d_21 -= a_2 * b_1;
    d_31 -= a_3 * b_1;
    A += 16;
    B += 4 * sdb;
  }
  for (; k < kmax; k++) {
    a_0 = A[0 + bs * 0];
    a_1 = A[1 + bs * 0];
    a_2 = A[2 + bs * 0];
    a_3 = A[3 + bs * 0];
    b_0 = B[0 + bs * 0];
    b_1 = B[0 + bs * 1];
    d_00 -= a_0 * b_0;
    d_10 -= a_1 * b_0;
    d_20 -= a_2 * b_0;
    d_30 -= a_3 * b_0;
    d_01 -= a_0 * b_1;
    d_11 -= a_1 * b_1;
    d_21 -= a_2 * b_1;
    d_31 -= a_3 * b_1;
    A += 4;
    B += 1;
  }
add:
  if (alg != 0) {
    d_00 += C[0 + bs * 0];
    d_10 += C[1 + bs * 0];
    d_20 += C[2 + bs * 0];
    d_30 += C[3 + bs * 0];
    d_01 += C[0 + bs * 1];
    d_11 += C[1 + bs * 1];
    d_21 += C[2 + bs * 1];
    d_31 += C[3 + bs * 1];
  }
  D[0 + bs * 0] = d_00;
  if (kn >= 2)
    D[0 + bs * 1] = d_01;
  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_20 -= e_2 * d_00;
  d_30 -= e_3 * d_00;
  d_11 -= e_1 * d_01;
  d_21 -= e_2 * d_01;
  d_31 -= e_3 * d_01;
  D[1 + bs * 0] = d_10;
  if (kn >= 2)
    D[1 + bs * 1] = d_11;
  e_2 = E[2 + bs * 1];
  e_3 = E[3 + bs * 1];
  d_20 -= e_2 * d_10;
  d_30 -= e_3 * d_10;
  d_21 -= e_2 * d_11;
  d_31 -= e_3 * d_11;
  D[2 + bs * 0] = d_20;
  if (kn >= 2)
    D[2 + bs * 1] = d_21;
  if (km < 4)
    return;
  e_3 = E[3 + bs * 2];
  d_30 -= e_3 * d_20;
  d_31 -= e_3 * d_21;
  D[3 + bs * 0] = d_30;
  if (kn >= 2)
    D[3 + bs * 1] = d_31;
  return;
}


x86 assembly (clang, -O0):
<kernel_dtrsm_nn_ll_diag_4x2_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_4x2_vs_lib4+0x9a>
jmp    1caa <kernel_dtrsm_nn_ll_diag_4x2_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_4x2_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    -0x18(%rbp),%rax
movsd  0x10(%rax),%xmm0
movsd  %xmm0,-0x50(%rbp)
mov    -0x18(%rbp),%rax
movsd  0x18(%rax),%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    -0x20(%rbp),%rax
movsd  (%rax),%xmm0
movsd  %xmm0,-0x60(%rbp)
mov    -0x20(%rbp),%rax
movsd  0x20(%rax),%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x40(%rbp),%xmm0
movsd  -0x60(%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  -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  -0x50(%rbp),%xmm0
movsd  -0x60(%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  -0x58(%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  -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  -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  -0x50(%rbp),%xmm0
movsd  -0x68(%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  -0x58(%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    -0x18(%rbp),%rax
movsd  0x30(%rax),%xmm0
movsd  %xmm0,-0x50(%rbp)
mov    -0x18(%rbp),%rax
movsd  0x38(%rax),%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    -0x20(%rbp),%rax
movsd  0x8(%rax),%xmm0
movsd  %xmm0,-0x60(%rbp)
mov    -0x20(%rbp),%rax
movsd  0x28(%rax),%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x40(%rbp),%xmm0
movsd  -0x60(%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  -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  -0x50(%rbp),%xmm0
movsd  -0x60(%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  -0x58(%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  -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  -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  -0x50(%rbp),%xmm0
movsd  -0x68(%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  -0x58(%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    -0x18(%rbp),%rax
movsd  0x50(%rax),%xmm0
movsd  %xmm0,-0x50(%rbp)
mov    -0x18(%rbp),%rax
movsd  0x58(%rax),%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    -0x20(%rbp),%rax
movsd  0x10(%rax),%xmm0
movsd  %xmm0,-0x60(%rbp)
mov    -0x20(%rbp),%rax
movsd  0x30(%rax),%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x40(%rbp),%xmm0
movsd  -0x60(%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  -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  -0x50(%rbp),%xmm0
movsd  -0x60(%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  -0x58(%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  -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  -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  -0x50(%rbp),%xmm0
movsd  -0x68(%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  -0x58(%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    -0x18(%rbp),%rax
movsd  0x70(%rax),%xmm0
movsd  %xmm0,-0x50(%rbp)
mov    -0x18(%rbp),%rax
movsd  0x78(%rax),%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    -0x20(%rbp),%rax
movsd  0x18(%rax),%xmm0
movsd  %xmm0,-0x60(%rbp)
mov    -0x20(%rbp),%rax
movsd  0x38(%rax),%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x40(%rbp),%xmm0
movsd  -0x60(%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  -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  -0x50(%rbp),%xmm0
movsd  -0x60(%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  -0x58(%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  -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  -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  -0x50(%rbp),%xmm0
movsd  -0x68(%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  -0x58(%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_4x2_vs_lib4+0xa1>
jmp    1a59 <kernel_dtrsm_nn_ll_diag_4x2_vs_lib4+0x959>
mov    -0x2c(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    1ca5 <kernel_dtrsm_nn_ll_diag_4x2_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    -0x18(%rbp),%rax
movsd  0x10(%rax),%xmm0
movsd  %xmm0,-0x50(%rbp)
mov    -0x18(%rbp),%rax
movsd  0x18(%rax),%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    -0x20(%rbp),%rax
movsd  (%rax),%xmm0
movsd  %xmm0,-0x60(%rbp)
mov    -0x20(%rbp),%rax
movsd  0x20(%rax),%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x40(%rbp),%xmm0
movsd  -0x60(%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  -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  -0x50(%rbp),%xmm0
movsd  -0x60(%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  -0x58(%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  -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  -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  -0x50(%rbp),%xmm0
movsd  -0x68(%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  -0x58(%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_4x2_vs_lib4+0x959>
jmp    1caa <kernel_dtrsm_nn_ll_diag_4x2_vs_lib4+0xbaa>
cmpl   $0x0,0x10(%rbp)
je     1d7b <kernel_dtrsm_nn_ll_diag_4x2_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  -0x98(%rbp),%xmm0
ff
movsd  %xmm0,-0x98(%rbp)
ff
mov    0x18(%rbp),%rax
movsd  0x10(%rax),%xmm0
addsd  -0xa8(%rbp),%xmm0
ff
movsd  %xmm0,-0xa8(%rbp)
ff
mov    0x18(%rbp),%rax
movsd  0x18(%rax),%xmm0
addsd  -0xb8(%rbp),%xmm0
ff
movsd  %xmm0,-0xb8(%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  -0xa0(%rbp),%xmm0
ff
movsd  %xmm0,-0xa0(%rbp)
ff
mov    0x18(%rbp),%rax
movsd  0x30(%rax),%xmm0
addsd  -0xb0(%rbp),%xmm0
ff
movsd  %xmm0,-0xb0(%rbp)
ff
mov    0x18(%rbp),%rax
movsd  0x38(%rax),%xmm0
addsd  -0xc0(%rbp),%xmm0
ff
movsd  %xmm0,-0xc0(%rbp)
ff
movsd  -0x88(%rbp),%xmm0
ff
mov    0x20(%rbp),%rax
movsd  %xmm0,(%rax)
cmpl   $0x2,-0x8(%rbp)
jl     1da6 <kernel_dtrsm_nn_ll_diag_4x2_vs_lib4+0xca6>
movsd  -0x90(%rbp),%xmm0
ff
mov    0x20(%rbp),%rax
movsd  %xmm0,0x20(%rax)
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  -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  -0x78(%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  -0x80(%rbp),%xmm0
movsd  -0x88(%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  -0x90(%rbp),%xmm2
ff
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  -0x78(%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  -0x80(%rbp),%xmm0
movsd  -0x90(%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  -0x98(%rbp),%xmm0
ff
mov    0x20(%rbp),%rax
movsd  %xmm0,0x8(%rax)
cmpl   $0x2,-0x8(%rbp)
jl     1f64 <kernel_dtrsm_nn_ll_diag_4x2_vs_lib4+0xe64>
movsd  -0xa0(%rbp),%xmm0
ff
mov    0x20(%rbp),%rax
movsd  %xmm0,0x28(%rax)
mov    0x28(%rbp),%rax
movsd  0x30(%rax),%xmm0
movsd  %xmm0,-0x78(%rbp)
mov    0x28(%rbp),%rax
movsd  0x38(%rax),%xmm0
movsd  %xmm0,-0x80(%rbp)
movsd  -0x78(%rbp),%xmm0
movsd  -0x98(%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  -0x80(%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  -0x78(%rbp),%xmm0
movsd  -0xa0(%rbp),%xmm2
movsd  -0xb0(%rbp),%xmm1
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xb0(%rbp)
ff
movsd  -0x80(%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,0x10(%rax)
cmpl   $0x2,-0x8(%rbp)
jl     209c <kernel_dtrsm_nn_ll_diag_4x2_vs_lib4+0xf9c>
movsd  -0xb0(%rbp),%xmm0
ff
mov    0x20(%rbp),%rax
movsd  %xmm0,0x30(%rax)
cmpl   $0x4,-0x4(%rbp)
jge    20ab <kernel_dtrsm_nn_ll_diag_4x2_vs_lib4+0xfab>
jmp    2162 <kernel_dtrsm_nn_ll_diag_4x2_vs_lib4+0x1062>
mov    0x28(%rbp),%rax
movsd  0x58(%rax),%xmm0
movsd  %xmm0,-0x80(%rbp)
movsd  -0x80(%rbp),%xmm0
movsd  -0xa8(%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  -0x80(%rbp),%xmm0
movsd  -0xb0(%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  -0xb8(%rbp),%xmm0
ff
mov    0x20(%rbp),%rax
movsd  %xmm0,0x18(%rax)
cmpl   $0x2,-0x8(%rbp)
jl     215d <kernel_dtrsm_nn_ll_diag_4x2_vs_lib4+0x105d>
movsd  -0xc0(%rbp),%xmm0
ff
mov    0x20(%rbp),%rax
movsd  %xmm0,0x38(%rax)
jmp    2162 <kernel_dtrsm_nn_ll_diag_4x2_vs_lib4+0x1062>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<kernel_dtrsm_nn_ll_diag_4x2_vs_lib4>:
sub    $0x28,%rsp
mov    0x30(%rsp),%r10d
test   %edx,%edx
jle    1423 <kernel_dtrsm_nn_ll_diag_4x2_vs_lib4+0x323>
cmp    $0x4,%edx
jb     143b <kernel_dtrsm_nn_ll_diag_4x2_vs_lib4+0x33b>
lea    -0x3(%rdx),%r11d
shl    $0x2,%r9d
movslq %r9d,%r9
shl    $0x3,%r9
xorpd  %xmm11,%xmm11
xor    %eax,%eax
xorpd  %xmm8,%xmm8
xorpd  %xmm10,%xmm10
xorpd  %xmm15,%xmm15
nop
movapd %xmm15,-0x60(%rsp)
movapd %xmm10,-0x50(%rsp)
movapd %xmm8,-0x40(%rsp)
movapd %xmm11,-0x20(%rsp)
movupd (%rcx),%xmm4
movupd 0x10(%rcx),%xmm6
movupd 0x20(%rcx),%xmm1
movupd 0x30(%rcx),%xmm2
movsd  0x20(%r8),%xmm7
unpcklpd %xmm7,%xmm7
movsd  (%r8),%xmm3
movsd  0x8(%r8),%xmm5
movsd  0x10(%r8),%xmm9
unpcklpd %xmm3,%xmm3
movapd %xmm4,%xmm0
mulpd  %xmm3,%xmm0
subpd  %xmm0,%xmm11
movapd %xmm6,%xmm0
mulpd  %xmm3,%xmm0
subpd  %xmm0,%xmm8
movapd %xmm4,-0x30(%rsp)
movapd %xmm4,%xmm0
mulpd  %xmm7,%xmm0
subpd  %xmm0,%xmm10
movapd %xmm6,-0x10(%rsp)
movapd %xmm6,%xmm0
mulpd  %xmm7,%xmm0
subpd  %xmm0,%xmm15
unpcklpd %xmm5,%xmm5
movsd  0x28(%r8),%xmm12
unpcklpd %xmm12,%xmm12
movapd %xmm2,%xmm0
mulpd  %xmm12,%xmm0
subpd  %xmm0,%xmm15
movapd %xmm1,%xmm0
mulpd  %xmm12,%xmm0
subpd  %xmm0,%xmm10
movapd %xmm2,(%rsp)
movapd %xmm2,%xmm0
mulpd  %xmm5,%xmm0
subpd  %xmm0,%xmm8
movapd %xmm1,0x10(%rsp)
movapd %xmm1,%xmm0
mulpd  %xmm5,%xmm0
subpd  %xmm0,%xmm11
movupd 0x40(%rcx),%xmm2
movupd 0x50(%rcx),%xmm0
unpcklpd %xmm9,%xmm9
movapd %xmm2,%xmm1
mulpd  %xmm9,%xmm1
subpd  %xmm1,%xmm11
movapd %xmm0,%xmm1
mulpd  %xmm9,%xmm1
subpd  %xmm1,%xmm8
movsd  0x30(%r8),%xmm14
unpcklpd %xmm14,%xmm14
movapd %xmm2,-0x70(%rsp)
movapd %xmm2,%xmm1
mulpd  %xmm14,%xmm1
subpd  %xmm1,%xmm10
movapd %xmm0,-0x80(%rsp)
movapd %xmm0,%xmm1
mulpd  %xmm14,%xmm1
subpd  %xmm1,%xmm15
movsd  0x38(%r8),%xmm6
unpcklpd %xmm6,%xmm6
movupd 0x70(%rcx),%xmm13
movapd %xmm13,%xmm1
mulpd  %xmm6,%xmm1
subpd  %xmm1,%xmm15
movupd 0x60(%rcx),%xmm2
movapd %xmm2,%xmm1
mulpd  %xmm6,%xmm1
subpd  %xmm1,%xmm10
movsd  0x18(%r8),%xmm1
unpcklpd %xmm1,%xmm1
movapd %xmm13,%xmm4
mulpd  %xmm1,%xmm13
subpd  %xmm13,%xmm8
movapd %xmm2,%xmm0
mulpd  %xmm1,%xmm2
subpd  %xmm2,%xmm11
sub    $0xffffffffffffff80,%rcx
add    $0x4,%eax
add    %r9,%r8
cmp    %r11d,%eax
jl     1140 <kernel_dtrsm_nn_ll_diag_4x2_vs_lib4+0x40>
movapd -0x10(%rsp),%xmm13
movapd 0xd0b(%rip),%xmm15
xorpd  %xmm15,%xmm13
movapd -0x30(%rsp),%xmm8
xorpd  %xmm15,%xmm8
movapd (%rsp),%xmm11
xorpd  %xmm15,%xmm11
movapd 0x10(%rsp),%xmm10
xorpd  %xmm15,%xmm10
movapd -0x80(%rsp),%xmm2
xorpd  %xmm15,%xmm2
movapd %xmm2,-0x80(%rsp)
movapd -0x70(%rsp),%xmm2
xorpd  %xmm15,%xmm2
movapd %xmm2,-0x70(%rsp)
xorpd  %xmm15,%xmm4
xorpd  %xmm15,%xmm0
movapd %xmm13,%xmm2
mulpd  %xmm7,%xmm2
addpd  -0x60(%rsp),%xmm2
mulpd  %xmm8,%xmm7
addpd  -0x50(%rsp),%xmm7
mulpd  %xmm3,%xmm13
addpd  -0x40(%rsp),%xmm13
mulpd  %xmm3,%xmm8
addpd  -0x20(%rsp),%xmm8
movapd %xmm10,%xmm3
mulpd  %xmm5,%xmm3
addpd  %xmm8,%xmm3
mulpd  %xmm11,%xmm5
addpd  %xmm13,%xmm5
mulpd  %xmm12,%xmm10
addpd  %xmm7,%xmm10
mulpd  %xmm12,%xmm11
addpd  %xmm2,%xmm11
movapd -0x80(%rsp),%xmm2
movapd %xmm2,%xmm7
mulpd  %xmm14,%xmm7
addpd  %xmm11,%xmm7
movapd -0x70(%rsp),%xmm8
mulpd  %xmm8,%xmm14
addpd  %xmm10,%xmm14
mulpd  %xmm9,%xmm2
addpd  %xmm5,%xmm2
movapd %xmm8,%xmm5
mulpd  %xmm9,%xmm5
addpd  %xmm3,%xmm5
movapd %xmm0,%xmm10
mulpd  %xmm1,%xmm10
addpd  %xmm5,%xmm10
mulpd  %xmm4,%xmm1
addpd  %xmm2,%xmm1
mulpd  %xmm6,%xmm0
addpd  %xmm14,%xmm0
mulpd  %xmm6,%xmm4
addpd  %xmm7,%xmm4
mov    %edx,%eax
and    $0xfffffffc,%eax
movapd %xmm4,%xmm13
movapd %xmm0,%xmm9
cmp    %edx,%eax
jl     1458 <kernel_dtrsm_nn_ll_diag_4x2_vs_lib4+0x358>
jmp    1521 <kernel_dtrsm_nn_ll_diag_4x2_vs_lib4+0x421>
xorpd  %xmm10,%xmm10
xorpd  %xmm1,%xmm1
xorpd  %xmm9,%xmm9
xorpd  %xmm13,%xmm13
jmp    1521 <kernel_dtrsm_nn_ll_diag_4x2_vs_lib4+0x421>
xorpd  %xmm10,%xmm10
xor    %eax,%eax
xorpd  %xmm1,%xmm1
xorpd  %xmm9,%xmm9
xorpd  %xmm13,%xmm13
cmp    %edx,%eax
jge    1521 <kernel_dtrsm_nn_ll_diag_4x2_vs_lib4+0x421>
sub    %eax,%edx
xor    %eax,%eax
movapd 0xb9b(%rip),%xmm8
cs nopw 0x0(%rax,%rax,1)
nop
movapd %xmm13,%xmm12
movapd %xmm9,%xmm11
movapd %xmm1,%xmm4
movapd %xmm10,%xmm7
movupd (%rcx),%xmm5
movupd 0x10(%rcx),%xmm6
movsd  (%r8,%rax,8),%xmm0
movsd  0x20(%r8,%rax,8),%xmm3
unpcklpd %xmm0,%xmm0
unpcklpd %xmm3,%xmm3
movapd %xmm6,%xmm2
mulpd  %xmm3,%xmm2
subpd  %xmm2,%xmm13
movapd %xmm5,%xmm2
mulpd  %xmm3,%xmm2
subpd  %xmm2,%xmm9
movapd %xmm6,%xmm2
mulpd  %xmm0,%xmm2
subpd  %xmm2,%xmm1
movapd %xmm5,%xmm2
mulpd  %xmm0,%xmm2
subpd  %xmm2,%xmm10
add    $0x20,%rcx
add    $0x1,%rax
cmp    %eax,%edx
jne    1470 <kernel_dtrsm_nn_ll_diag_4x2_vs_lib4+0x370>
xorpd  %xmm8,%xmm6
xorpd  %xmm8,%xmm5
movapd %xmm5,%xmm10
mulpd  %xmm0,%xmm10
addpd  %xmm7,%xmm10
mulpd  %xmm6,%xmm0
addpd  %xmm4,%xmm0
mulpd  %xmm3,%xmm5
addpd  %xmm11,%xmm5
mulpd  %xmm3,%xmm6
addpd  %xmm12,%xmm6
movapd %xmm0,%xmm1
movapd %xmm5,%xmm9
movapd %xmm6,%xmm13
mov    0x40(%rsp),%rcx
test   %r10d,%r10d
je     1556 <kernel_dtrsm_nn_ll_diag_4x2_vs_lib4+0x456>
mov    0x38(%rsp),%rax
movupd (%rax),%xmm0
movupd 0x10(%rax),%xmm2
movupd 0x20(%rax),%xmm3
movupd 0x30(%rax),%xmm4
addpd  %xmm2,%xmm1
addpd  %xmm0,%xmm10
addpd  %xmm3,%xmm9
addpd  %xmm4,%xmm13
mov    0x48(%rsp),%rax
movlpd %xmm10,(%rcx)
cmp    $0x2,%esi
jl     156b <kernel_dtrsm_nn_ll_diag_4x2_vs_lib4+0x46b>
movlpd %xmm9,0x20(%rcx)
movsd  0x8(%rax),%xmm2
movsd  0x10(%rax),%xmm0
movsd  0x18(%rax),%xmm8
movapd %xmm10,%xmm6
unpckhpd %xmm10,%xmm6
movapd %xmm2,%xmm3
mulsd  %xmm10,%xmm3
subsd  %xmm3,%xmm6
movapd %xmm0,%xmm3
mulsd  %xmm10,%xmm3
movapd %xmm1,%xmm4
subsd  %xmm3,%xmm4
unpckhpd %xmm1,%xmm1
movapd %xmm8,%xmm3
mulsd  %xmm10,%xmm3
subsd  %xmm3,%xmm1
movapd %xmm9,%xmm3
unpckhpd %xmm9,%xmm3
mulsd  %xmm9,%xmm2
subsd  %xmm2,%xmm3
movsd  %xmm6,0x8(%rcx)
cmp    $0x2,%esi
jl     15d7 <kernel_dtrsm_nn_ll_diag_4x2_vs_lib4+0x4d7>
movsd  %xmm3,0x28(%rcx)
movsd  0x30(%rax),%xmm5
movsd  0x38(%rax),%xmm7
movapd %xmm5,%xmm2
mulsd  %xmm6,%xmm2
subsd  %xmm2,%xmm4
mulsd  %xmm7,%xmm6
subsd  %xmm6,%xmm1
movsd  %xmm4,0x10(%rcx)
cmp    $0x2,%esi
jl     165e <kernel_dtrsm_nn_ll_diag_4x2_vs_lib4+0x55e>
mulsd  %xmm9,%xmm0
movapd %xmm13,%xmm6
subsd  %xmm0,%xmm6
mulsd  %xmm3,%xmm5
subsd  %xmm5,%xmm6
movsd  %xmm6,0x30(%rcx)
cmp    $0x4,%edi
jl     1676 <kernel_dtrsm_nn_ll_diag_4x2_vs_lib4+0x576>
unpckhpd %xmm13,%xmm13
mulsd  %xmm9,%xmm8
subsd  %xmm8,%xmm13
mulsd  %xmm3,%xmm7
subsd  %xmm7,%xmm13
movsd  0x58(%rax),%xmm0
mulsd  %xmm0,%xmm4
subsd  %xmm4,%xmm1
movsd  %xmm1,0x18(%rcx)
mulsd  %xmm0,%xmm6
subsd  %xmm6,%xmm13
mov    $0x7,%eax
movapd %xmm13,%xmm1
jmp    1671 <kernel_dtrsm_nn_ll_diag_4x2_vs_lib4+0x571>
cmp    $0x4,%edi
jl     1676 <kernel_dtrsm_nn_ll_diag_4x2_vs_lib4+0x576>
mulsd  0x58(%rax),%xmm4
subsd  %xmm4,%xmm1
mov    $0x3,%eax
movsd  %xmm1,(%rcx,%rax,8)
add    $0x28,%rsp
ret

LLVM IR (-O0):
define void @kernel_dtrsm_nn_ll_diag_4x2_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** %14
%58 = getelementptr inbounds double, double* %57, i64 2
%59 = load double, double* %58
store double %59, double* %26
%60 = load double*, double** %14
%61 = getelementptr inbounds double, double* %60, i64 3
%62 = load double, double* %61
store double %62, double* %27
%63 = load double*, double** %15
%64 = getelementptr inbounds double, double* %63, i64 0
%65 = load double, double* %64
store double %65, double* %28
%66 = load double*, double** %15
%67 = getelementptr inbounds double, double* %66, i64 4
%68 = load double, double* %67
store double %68, double* %29
%69 = load double, double* %24
%70 = load double, double* %28
%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* %28
%76 = load double, double* %35
%77 = fneg double %74
%78 = call double @llvm.fmuladd.f64(double %77, double %75, double %76)
store double %78, double* %35
%79 = load double, double* %26
%80 = load double, double* %28
%81 = load double, double* %37
%82 = fneg double %79
%83 = call double @llvm.fmuladd.f64(double %82, double %80, double %81)
store double %83, double* %37
%84 = load double, double* %27
%85 = load double, double* %28
%86 = load double, double* %39
%87 = fneg double %84
%88 = call double @llvm.fmuladd.f64(double %87, double %85, double %86)
store double %88, double* %39
%89 = load double, double* %24
%90 = load double, double* %29
%91 = load double, double* %34
%92 = fneg double %89
%93 = call double @llvm.fmuladd.f64(double %92, double %90, double %91)
store double %93, double* %34
%94 = load double, double* %25
%95 = load double, double* %29
%96 = load double, double* %36
%97 = fneg double %94
%98 = call double @llvm.fmuladd.f64(double %97, double %95, double %96)
store double %98, double* %36
%99 = load double, double* %26
%100 = load double, double* %29
%101 = load double, double* %38
%102 = fneg double %99
%103 = call double @llvm.fmuladd.f64(double %102, double %100, double %101)
store double %103, double* %38
%104 = load double, double* %27
%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** %14
%116 = getelementptr inbounds double, double* %115, i64 6
%117 = load double, double* %116
store double %117, double* %26
%118 = load double*, double** %14
%119 = getelementptr inbounds double, double* %118, i64 7
%120 = load double, double* %119
store double %120, double* %27
%121 = load double*, double** %15
%122 = getelementptr inbounds double, double* %121, i64 1
%123 = load double, double* %122
store double %123, double* %28
%124 = load double*, double** %15
%125 = getelementptr inbounds double, double* %124, i64 5
%126 = load double, double* %125
store double %126, double* %29
%127 = load double, double* %24
%128 = load double, double* %28
%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* %28
%134 = load double, double* %35
%135 = fneg double %132
%136 = call double @llvm.fmuladd.f64(double %135, double %133, double %134)
store double %136, double* %35
%137 = load double, double* %26
%138 = load double, double* %28
%139 = load double, double* %37
%140 = fneg double %137
%141 = call double @llvm.fmuladd.f64(double %140, double %138, double %139)
store double %141, double* %37
%142 = load double, double* %27
%143 = load double, double* %28
%144 = load double, double* %39
%145 = fneg double %142
%146 = call double @llvm.fmuladd.f64(double %145, double %143, double %144)
store double %146, double* %39
%147 = load double, double* %24
%148 = load double, double* %29
%149 = load double, double* %34
%150 = fneg double %147
%151 = call double @llvm.fmuladd.f64(double %150, double %148, double %149)
store double %151, double* %34
%152 = load double, double* %25
%153 = load double, double* %29
%154 = load double, double* %36
%155 = fneg double %152
%156 = call double @llvm.fmuladd.f64(double %155, double %153, double %154)
store double %156, double* %36
%157 = load double, double* %26
%158 = load double, double* %29
%159 = load double, double* %38
%160 = fneg double %157
%161 = call double @llvm.fmuladd.f64(double %160, double %158, double %159)
store double %161, double* %38
%162 = load double, double* %27
%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** %14
%174 = getelementptr inbounds double, double* %173, i64 10
%175 = load double, double* %174
store double %175, double* %26
%176 = load double*, double** %14
%177 = getelementptr inbounds double, double* %176, i64 11
%178 = load double, double* %177
store double %178, double* %27
%179 = load double*, double** %15
%180 = getelementptr inbounds double, double* %179, i64 2
%181 = load double, double* %180
store double %181, double* %28
%182 = load double*, double** %15
%183 = getelementptr inbounds double, double* %182, i64 6
%184 = load double, double* %183
store double %184, double* %29
%185 = load double, double* %24
%186 = load double, double* %28
%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* %28
%192 = load double, double* %35
%193 = fneg double %190
%194 = call double @llvm.fmuladd.f64(double %193, double %191, double %192)
store double %194, double* %35
%195 = load double, double* %26
%196 = load double, double* %28
%197 = load double, double* %37
%198 = fneg double %195
%199 = call double @llvm.fmuladd.f64(double %198, double %196, double %197)
store double %199, double* %37
%200 = load double, double* %27
%201 = load double, double* %28
%202 = load double, double* %39
%203 = fneg double %200
%204 = call double @llvm.fmuladd.f64(double %203, double %201, double %202)
store double %204, double* %39
%205 = load double, double* %24
%206 = load double, double* %29
%207 = load double, double* %34
%208 = fneg double %205
%209 = call double @llvm.fmuladd.f64(double %208, double %206, double %207)
store double %209, double* %34
%210 = load double, double* %25
%211 = load double, double* %29
%212 = load double, double* %36
%213 = fneg double %210
%214 = call double @llvm.fmuladd.f64(double %213, double %211, double %212)
store double %214, double* %36
%215 = load double, double* %26
%216 = load double, double* %29
%217 = load double, double* %38
%218 = fneg double %215
%219 = call double @llvm.fmuladd.f64(double %218, double %216, double %217)
store double %219, double* %38
%220 = load double, double* %27
%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** %14
%232 = getelementptr inbounds double, double* %231, i64 14
%233 = load double, double* %232
store double %233, double* %26
%234 = load double*, double** %14
%235 = getelementptr inbounds double, double* %234, i64 15
%236 = load double, double* %235
store double %236, double* %27
%237 = load double*, double** %15
%238 = getelementptr inbounds double, double* %237, i64 3
%239 = load double, double* %238
store double %239, double* %28
%240 = load double*, double** %15
%241 = getelementptr inbounds double, double* %240, i64 7
%242 = load double, double* %241
store double %242, double* %29
%243 = load double, double* %24
%244 = load double, double* %28
%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* %28
%250 = load double, double* %35
%251 = fneg double %248
%252 = call double @llvm.fmuladd.f64(double %251, double %249, double %250)
store double %252, double* %35
%253 = load double, double* %26
%254 = load double, double* %28
%255 = load double, double* %37
%256 = fneg double %253
%257 = call double @llvm.fmuladd.f64(double %256, double %254, double %255)
store double %257, double* %37
%258 = load double, double* %27
%259 = load double, double* %28
%260 = load double, double* %39
%261 = fneg double %258
%262 = call double @llvm.fmuladd.f64(double %261, double %259, double %260)
store double %262, double* %39
%263 = load double, double* %24
%264 = load double, double* %29
%265 = load double, double* %34
%266 = fneg double %263
%267 = call double @llvm.fmuladd.f64(double %266, double %264, double %265)
store double %267, double* %34
%268 = load double, double* %25
%269 = load double, double* %29
%270 = load double, double* %36
%271 = fneg double %268
%272 = call double @llvm.fmuladd.f64(double %271, double %269, double %270)
store double %272, double* %36
%273 = load double, double* %26
%274 = load double, double* %29
%275 = load double, double* %38
%276 = fneg double %273
%277 = call double @llvm.fmuladd.f64(double %276, double %274, double %275)
store double %277, double* %38
%278 = load double, double* %27
%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** %14
%306 = getelementptr inbounds double, double* %305, i64 2
%307 = load double, double* %306
store double %307, double* %26
%308 = load double*, double** %14
%309 = getelementptr inbounds double, double* %308, i64 3
%310 = load double, double* %309
store double %310, double* %27
%311 = load double*, double** %15
%312 = getelementptr inbounds double, double* %311, i64 0
%313 = load double, double* %312
store double %313, double* %28
%314 = load double*, double** %15
%315 = getelementptr inbounds double, double* %314, i64 4
%316 = load double, double* %315
store double %316, double* %29
%317 = load double, double* %24
%318 = load double, double* %28
%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* %28
%324 = load double, double* %35
%325 = fneg double %322
%326 = call double @llvm.fmuladd.f64(double %325, double %323, double %324)
store double %326, double* %35
%327 = load double, double* %26
%328 = load double, double* %28
%329 = load double, double* %37
%330 = fneg double %327
%331 = call double @llvm.fmuladd.f64(double %330, double %328, double %329)
store double %331, double* %37
%332 = load double, double* %27
%333 = load double, double* %28
%334 = load double, double* %39
%335 = fneg double %332
%336 = call double @llvm.fmuladd.f64(double %335, double %333, double %334)
store double %336, double* %39
%337 = load double, double* %24
%338 = load double, double* %29
%339 = load double, double* %34
%340 = fneg double %337
%341 = call double @llvm.fmuladd.f64(double %340, double %338, double %339)
store double %341, double* %34
%342 = load double, double* %25
%343 = load double, double* %29
%344 = load double, double* %36
%345 = fneg double %342
%346 = call double @llvm.fmuladd.f64(double %345, double %343, double %344)
store double %346, double* %36
%347 = load double, double* %26
%348 = load double, double* %29
%349 = load double, double* %38
%350 = fneg double %347
%351 = call double @llvm.fmuladd.f64(double %350, double %348, double %349)
store double %351, double* %38
%352 = load double, double* %27
%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* %35
%378 = fadd double %377, %376
store double %378, double* %35
%379 = load double*, double** %18
%380 = getelementptr inbounds double, double* %379, i64 2
%381 = load double, double* %380
%382 = load double, double* %37
%383 = fadd double %382, %381
store double %383, double* %37
%384 = load double*, double** %18
%385 = getelementptr inbounds double, double* %384, i64 3
%386 = load double, double* %385
%387 = load double, double* %39
%388 = fadd double %387, %386
store double %388, double* %39
%389 = load double*, double** %18
%390 = getelementptr inbounds double, double* %389, i64 4
%391 = load double, double* %390
%392 = load double, double* %34
%393 = fadd double %392, %391
store double %393, double* %34
%394 = load double*, double** %18
%395 = getelementptr inbounds double, double* %394, i64 5
%396 = load double, double* %395
%397 = load double, double* %36
%398 = fadd double %397, %396
store double %398, double* %36
%399 = load double*, double** %18
%400 = getelementptr inbounds double, double* %399, i64 6
%401 = load double, double* %400
%402 = load double, double* %38
%403 = fadd double %402, %401
store double %403, double* %38
%404 = load double*, double** %18
%405 = getelementptr inbounds double, double* %404, i64 7
%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 i32, i32* %12
%414 = icmp sge i32 %413, 2
br i1 %414, label %415, label %419
415: ; preds = %409
%416 = load double, double* %34
%417 = load double*, double** %19
%418 = getelementptr inbounds double, double* %417, i64 4
store double %416, double* %418
br label %419
419: ; preds = %415, %409
%420 = load double*, double** %20
%421 = getelementptr inbounds double, double* %420, i64 1
%422 = load double, double* %421
store double %422, double* %30
%423 = load double*, double** %20
%424 = getelementptr inbounds double, double* %423, i64 2
%425 = load double, double* %424
store double %425, double* %31
%426 = load double*, double** %20
%427 = getelementptr inbounds double, double* %426, i64 3
%428 = load double, double* %427
store double %428, double* %32
%429 = load double, double* %30
%430 = load double, double* %33
%431 = load double, double* %35
%432 = fneg double %429
%433 = call double @llvm.fmuladd.f64(double %432, double %430, double %431)
store double %433, double* %35
%434 = load double, double* %31
%435 = load double, double* %33
%436 = load double, double* %37
%437 = fneg double %434
%438 = call double @llvm.fmuladd.f64(double %437, double %435, double %436)
store double %438, double* %37
%439 = load double, double* %32
%440 = load double, double* %33
%441 = load double, double* %39
%442 = fneg double %439
%443 = call double @llvm.fmuladd.f64(double %442, double %440, double %441)
store double %443, double* %39
%444 = load double, double* %30
%445 = load double, double* %34
%446 = load double, double* %36
%447 = fneg double %444
%448 = call double @llvm.fmuladd.f64(double %447, double %445, double %446)
store double %448, double* %36
%449 = load double, double* %31
%450 = load double, double* %34
%451 = load double, double* %38
%452 = fneg double %449
%453 = call double @llvm.fmuladd.f64(double %452, double %450, double %451)
store double %453, double* %38
%454 = load double, double* %32
%455 = load double, double* %34
%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* %35
%460 = load double*, double** %19
%461 = getelementptr inbounds double, double* %460, i64 1
store double %459, double* %461
%462 = load i32, i32* %12
%463 = icmp sge i32 %462, 2
br i1 %463, label %464, label %468
464: ; preds = %419
%465 = load double, double* %36
%466 = load double*, double** %19
%467 = getelementptr inbounds double, double* %466, i64 5
store double %465, double* %467
br label %468
468: ; preds = %464, %419
%469 = load double*, double** %20
%470 = getelementptr inbounds double, double* %469, i64 6
%471 = load double, double* %470
store double %471, double* %31
%472 = load double*, double** %20
%473 = getelementptr inbounds double, double* %472, i64 7
%474 = load double, double* %473
store double %474, double* %32
%475 = load double, double* %31
%476 = load double, double* %35
%477 = load double, double* %37
%478 = fneg double %475
%479 = call double @llvm.fmuladd.f64(double %478, double %476, double %477)
store double %479, double* %37
%480 = load double, double* %32
%481 = load double, double* %35
%482 = load double, double* %39
%483 = fneg double %480
%484 = call double @llvm.fmuladd.f64(double %483, double %481, double %482)
store double %484, double* %39
%485 = load double, double* %31
%486 = load double, double* %36
%487 = load double, double* %38
%488 = fneg double %485
%489 = call double @llvm.fmuladd.f64(double %488, double %486, double %487)
store double %489, double* %38
%490 = load double, double* %32
%491 = load double, double* %36
%492 = load double, double* %40
%493 = fneg double %490
%494 = call double @llvm.fmuladd.f64(double %493, double %491, double %492)
store double %494, double* %40
%495 = load double, double* %37
%496 = load double*, double** %19
%497 = getelementptr inbounds double, double* %496, i64 2
store double %495, double* %497
%498 = load i32, i32* %12
%499 = icmp sge i32 %498, 2
br i1 %499, label %500, label %504
500: ; preds = %468
%501 = load double, double* %38
%502 = load double*, double** %19
%503 = getelementptr inbounds double, double* %502, i64 6
store double %501, double* %503
br label %504
504: ; preds = %500, %468
%505 = load i32, i32* %11
%506 = icmp slt i32 %505, 4
br i1 %506, label %507, label %508
507: ; preds = %504
br label %532
508: ; preds = %504
%509 = load double*, double** %20
%510 = getelementptr inbounds double, double* %509, i64 11
%511 = load double, double* %510
store double %511, double* %32
%512 = load double, double* %32
%513 = load double, double* %37
%514 = load double, double* %39
%515 = fneg double %512
%516 = call double @llvm.fmuladd.f64(double %515, double %513, double %514)
store double %516, double* %39
%517 = load double, double* %32
%518 = load double, double* %38
%519 = load double, double* %40
%520 = fneg double %517
%521 = call double @llvm.fmuladd.f64(double %520, double %518, double %519)
store double %521, double* %40
%522 = load double, double* %39
%523 = load double*, double** %19
%524 = getelementptr inbounds double, double* %523, i64 3
store double %522, double* %524
%525 = load i32, i32* %12
%526 = icmp sge i32 %525, 2
br i1 %526, label %527, label %531
527: ; preds = %508
%528 = load double, double* %40
%529 = load double*, double** %19
%530 = getelementptr inbounds double, double* %529, i64 7
store double %528, double* %530
br label %531
531: ; preds = %527, %508
br label %532
532: ; preds = %531, %507
ret void
}

LLVM IR (-O2):
define void @kernel_dtrsm_nn_ll_diag_4x2_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 %111, label %12
12: ; preds = %10
%13 = add nsw i32 %2, -3
%14 = icmp ugt i32 %2, 3
br i1 %14, label %15, label %24
15: ; preds = %12
%16 = shl nsw i32 %5, 2
%17 = sext i32 %16 to i64
br label %30
18: ; preds = %30
%19 = call <8 x double> @llvm.fmuladd.v8f64(<8 x double> %41, <8 x double> %44, <8 x double> %34)
%20 = call <8 x double> @llvm.fmuladd.v8f64(<8 x double> %54, <8 x double> %57, <8 x double> %19)
%21 = call <8 x double> @llvm.fmuladd.v8f64(<8 x double> %67, <8 x double> %70, <8 x double> %20)
%22 = call <8 x double> @llvm.fmuladd.v8f64(<8 x double> %80, <8 x double> %83, <8 x double> %21)
%23 = and i32 %2, -4
br label %24
24: ; preds = %18, %12
%25 = phi i32 [ 0, %12 ], [ %23, %18 ]
%26 = phi double* [ %4, %12 ], [ %86, %18 ]
%27 = phi double* [ %3, %12 ], [ %85, %18 ]
%28 = phi <8 x double> [ zeroinitializer, %12 ], [ %22, %18 ]
%29 = icmp slt i32 %25, %2
br i1 %29, label %89, label %111
30: ; preds = %15, %30
%31 = phi double* [ %3, %15 ], [ %85, %30 ]
%32 = phi double* [ %4, %15 ], [ %86, %30 ]
%33 = phi i32 [ 0, %15 ], [ %87, %30 ]
%34 = phi <8 x double> [ zeroinitializer, %15 ], [ %84, %30 ]
%35 = bitcast double* %31 to <4 x double>*
%36 = load <4 x double>, <4 x double>* %35
%37 = load double, double* %32
%38 = getelementptr inbounds double, double* %32, i64 4
%39 = load double, double* %38
%40 = fneg <4 x double> %36
%41 = shufflevector <4 x double> %40, <4 x double> poison, <8 x i32> <i32 0, i32 1, i32 2, i32 3, i32 0, i32 1, i32 2, i32 3>
%42 = insertelement <8 x double> poison, double %37, i64 0
%43 = insertelement <8 x double> %42, double %39, i64 1
%44 = shufflevector <8 x double> %43, <8 x double> poison, <8 x i32> <i32 0, i32 0, i32 0, i32 0, i32 1, i32 1, i32 1, i32 1>
%45 = call <8 x double> @llvm.fmuladd.v8f64(<8 x double> %41, <8 x double> %44, <8 x double> %34)
%46 = getelementptr inbounds double, double* %31, i64 4
%47 = bitcast double* %46 to <4 x double>*
%48 = load <4 x double>, <4 x double>* %47
%49 = getelementptr inbounds double, double* %32, i64 1
%50 = load double, double* %49
%51 = getelementptr inbounds double, double* %32, i64 5
%52 = load double, double* %51
%53 = fneg <4 x double> %48
%54 = shufflevector <4 x double> %53, <4 x double> poison, <8 x i32> <i32 0, i32 1, i32 2, i32 3, i32 0, i32 1, i32 2, i32 3>
%55 = insertelement <8 x double> poison, double %50, i64 0
%56 = insertelement <8 x double> %55, double %52, i64 1
%57 = shufflevector <8 x double> %56, <8 x double> poison, <8 x i32> <i32 0, i32 0, i32 0, i32 0, i32 1, i32 1, i32 1, i32 1>
%58 = call <8 x double> @llvm.fmuladd.v8f64(<8 x double> %54, <8 x double> %57, <8 x double> %45)
%59 = getelementptr inbounds double, double* %31, i64 8
%60 = bitcast double* %59 to <4 x double>*
%61 = load <4 x double>, <4 x double>* %60
%62 = getelementptr inbounds double, double* %32, i64 2
%63 = load double, double* %62
%64 = getelementptr inbounds double, double* %32, i64 6
%65 = load double, double* %64
%66 = fneg <4 x double> %61
%67 = shufflevector <4 x double> %66, <4 x double> poison, <8 x i32> <i32 0, i32 1, i32 2, i32 3, i32 0, i32 1, i32 2, i32 3>
%68 = insertelement <8 x double> poison, double %63, i64 0
%69 = insertelement <8 x double> %68, double %65, i64 1
%70 = shufflevector <8 x double> %69, <8 x double> poison, <8 x i32> <i32 0, i32 0, i32 0, i32 0, i32 1, i32 1, i32 1, i32 1>
%71 = call <8 x double> @llvm.fmuladd.v8f64(<8 x double> %67, <8 x double> %70, <8 x double> %58)
%72 = getelementptr inbounds double, double* %31, i64 12
%73 = bitcast double* %72 to <4 x double>*
%74 = load <4 x double>, <4 x double>* %73
%75 = getelementptr inbounds double, double* %32, i64 3
%76 = load double, double* %75
%77 = getelementptr inbounds double, double* %32, i64 7
%78 = load double, double* %77
%79 = fneg <4 x double> %74
%80 = shufflevector <4 x double> %79, <4 x double> poison, <8 x i32> <i32 0, i32 1, i32 2, i32 3, i32 0, i32 1, i32 2, i32 3>
%81 = insertelement <8 x double> poison, double %76, i64 0
%82 = insertelement <8 x double> %81, double %78, i64 1
%83 = shufflevector <8 x double> %82, <8 x double> poison, <8 x i32> <i32 0, i32 0, i32 0, i32 0, i32 1, i32 1, i32 1, i32 1>
%84 = call <8 x double> @llvm.fmuladd.v8f64(<8 x double> %80, <8 x double> %83, <8 x double> %71)
%85 = getelementptr inbounds double, double* %31, i64 16
%86 = getelementptr inbounds double, double* %32, i64 %17
%87 = add nuw nsw i32 %33, 4
%88 = icmp slt i32 %87, %13
br i1 %88, label %30, label %18
89: ; preds = %24, %89
%90 = phi double* [ %105, %89 ], [ %27, %24 ]
%91 = phi double* [ %106, %89 ], [ %26, %24 ]
%92 = phi i32 [ %107, %89 ], [ %25, %24 ]
%93 = phi <8 x double> [ %104, %89 ], [ %28, %24 ]
%94 = bitcast double* %90 to <4 x double>*
%95 = load <4 x double>, <4 x double>* %94
%96 = load double, double* %91
%97 = getelementptr inbounds double, double* %91, i64 4
%98 = load double, double* %97
%99 = fneg <4 x double> %95
%100 = shufflevector <4 x double> %99, <4 x double> poison, <8 x i32> <i32 0, i32 1, i32 2, i32 3, i32 0, i32 1, i32 2, i32 3>
%101 = insertelement <8 x double> poison, double %96, i64 0
%102 = insertelement <8 x double> %101, double %98, i64 1
%103 = shufflevector <8 x double> %102, <8 x double> poison, <8 x i32> <i32 0, i32 0, i32 0, i32 0, i32 1, i32 1, i32 1, i32 1>
%104 = call <8 x double> @llvm.fmuladd.v8f64(<8 x double> %100, <8 x double> %103, <8 x double> %93)
%105 = getelementptr inbounds double, double* %90, i64 4
%106 = getelementptr inbounds double, double* %91, i64 1
%107 = add nuw nsw i32 %92, 1
%108 = icmp eq i32 %107, %2
br i1 %108, label %109, label %89
109: ; preds = %89
%110 = call <8 x double> @llvm.fmuladd.v8f64(<8 x double> %100, <8 x double> %103, <8 x double> %93)
br label %111
111: ; preds = %109, %24, %10
%112 = phi <8 x double> [ zeroinitializer, %10 ], [ %28, %24 ], [ %110, %109 ]
%113 = icmp eq i32 %6, 0
br i1 %113, label %118, label %114
114: ; preds = %111
%115 = bitcast double* %7 to <8 x double>*
%116 = load <8 x double>, <8 x double>* %115
%117 = fadd <8 x double> %112, %116
br label %118
118: ; preds = %114, %111
%119 = phi <8 x double> [ %117, %114 ], [ %112, %111 ]
%120 = extractelement <8 x double> %119, i64 0
store double %120, double* %8
%121 = icmp sgt i32 %1, 1
br i1 %121, label %122, label %125
122: ; preds = %118
%123 = getelementptr inbounds double, double* %8, i64 4
%124 = extractelement <8 x double> %119, i64 4
store double %124, double* %123
br label %125
125: ; preds = %122, %118
%126 = getelementptr inbounds double, double* %9, i64 1
%127 = load double, double* %126
%128 = getelementptr inbounds double, double* %9, i64 2
%129 = load double, double* %128
%130 = getelementptr inbounds double, double* %9, i64 3
%131 = load double, double* %130
%132 = fneg double %127
%133 = extractelement <8 x double> %119, i64 1
%134 = tail call double @llvm.fmuladd.f64(double %132, double %120, double %133)
%135 = fneg double %129
%136 = extractelement <8 x double> %119, i64 2
%137 = tail call double @llvm.fmuladd.f64(double %135, double %120, double %136)
%138 = fneg double %131
%139 = extractelement <8 x double> %119, i64 3
%140 = tail call double @llvm.fmuladd.f64(double %138, double %120, double %139)
%141 = extractelement <8 x double> %119, i64 4
%142 = extractelement <8 x double> %119, i64 5
%143 = tail call double @llvm.fmuladd.f64(double %132, double %141, double %142)
%144 = extractelement <8 x double> %119, i64 6
%145 = tail call double @llvm.fmuladd.f64(double %135, double %141, double %144)
%146 = extractelement <8 x double> %119, i64 7
%147 = tail call double @llvm.fmuladd.f64(double %138, double %141, double %146)
%148 = getelementptr inbounds double, double* %8, i64 1
store double %134, double* %148
br i1 %121, label %149, label %151
149: ; preds = %125
%150 = getelementptr inbounds double, double* %8, i64 5
store double %143, double* %150
br label %151
151: ; preds = %149, %125
%152 = getelementptr inbounds double, double* %9, i64 6
%153 = load double, double* %152
%154 = getelementptr inbounds double, double* %9, i64 7
%155 = load double, double* %154
%156 = fneg double %153
%157 = tail call double @llvm.fmuladd.f64(double %156, double %134, double %137)
%158 = fneg double %155
%159 = tail call double @llvm.fmuladd.f64(double %158, double %134, double %140)
%160 = tail call double @llvm.fmuladd.f64(double %156, double %143, double %145)
%161 = tail call double @llvm.fmuladd.f64(double %158, double %143, double %147)
%162 = getelementptr inbounds double, double* %8, i64 2
store double %157, double* %162
br i1 %121, label %163, label %166
163: ; preds = %151
%164 = getelementptr inbounds double, double* %8, i64 6
store double %160, double* %164
%165 = icmp slt i32 %0, 4
br i1 %165, label %184, label %173
166: ; preds = %151
%167 = icmp slt i32 %0, 4
br i1 %167, label %184, label %168
168: ; preds = %166
%169 = getelementptr inbounds double, double* %9, i64 11
%170 = load double, double* %169
%171 = fneg double %170
%172 = tail call double @llvm.fmuladd.f64(double %171, double %157, double %159)
br label %180
173: ; preds = %163
%174 = getelementptr inbounds double, double* %9, i64 11
%175 = load double, double* %174
%176 = fneg double %175
%177 = tail call double @llvm.fmuladd.f64(double %176, double %157, double %159)
%178 = getelementptr inbounds double, double* %8, i64 3
store double %177, double* %178
%179 = tail call double @llvm.fmuladd.f64(double %176, double %160, double %161)
br label %180
180: ; preds = %173, %168
%181 = phi i64 [ 3, %168 ], [ 7, %173 ]
%182 = phi double [ %172, %168 ], [ %179, %173 ]
%183 = getelementptr inbounds double, double* %8, i64 %181
store double %182, double* %183
br label %184
184: ; preds = %180, %166, %163
ret void
}