void kernel_dtrsm_nn_ll_diag_2x2_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, e_1, e_2, e_3, d_00 = 0, d_01 = 0, d_10 = 0,
                                                 d_11 = 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];
    d_00 -= a_0 * b_0;
    d_10 -= a_1 * b_0;
    d_01 -= a_0 * b_1;
    d_11 -= a_1 * b_1;
    a_0 = A[0 + bs * 1];
    a_1 = A[1 + 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_01 -= a_0 * b_1;
    d_11 -= a_1 * b_1;
    a_0 = A[0 + bs * 2];
    a_1 = A[1 + 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_01 -= a_0 * b_1;
    d_11 -= a_1 * b_1;
    a_0 = A[0 + bs * 3];
    a_1 = A[1 + 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_01 -= a_0 * b_1;
    d_11 -= a_1 * b_1;
    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];
    d_00 -= a_0 * b_0;
    d_10 -= a_1 * b_0;
    d_01 -= a_0 * b_1;
    d_11 -= a_1 * b_1;
    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[0 + bs * 0] = d_00;
  if (kn >= 2)
    D[0 + bs * 1] = d_01;
  if (km < 2)
    return;
  e_1 = E[1 + bs * 0];
  d_10 -= e_1 * d_00;
  d_11 -= e_1 * d_01;
  D[1 + bs * 0] = d_10;
  if (kn >= 2)
    D[1 + bs * 1] = d_11;
  return;
}


x86 assembly (clang, -O0):
<kernel_dtrsm_nn_ll_diag_2x2_vs_lib4>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%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,-0x78(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x80(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
cmpl   $0x0,-0xc(%rbp)
jg     1168 <kernel_dtrsm_nn_ll_diag_2x2_vs_lib4+0x68>
jmp    173c <kernel_dtrsm_nn_ll_diag_2x2_vs_lib4+0x63c>
movl   $0x0,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
mov    -0xc(%rbp),%ecx
sub    $0x3,%ecx
cmp    %ecx,%eax
jge    15f2 <kernel_dtrsm_nn_ll_diag_2x2_vs_lib4+0x4f2>
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)
movsd  -0x40(%rbp),%xmm0
movsd  -0x50(%rbp),%xmm2
movsd  -0x78(%rbp),%xmm1
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x78(%rbp)
movsd  -0x48(%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  -0x40(%rbp),%xmm0
movsd  -0x58(%rbp),%xmm2
movsd  -0x80(%rbp),%xmm1
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x80(%rbp)
movsd  -0x48(%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
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)
movsd  -0x40(%rbp),%xmm0
movsd  -0x50(%rbp),%xmm2
movsd  -0x78(%rbp),%xmm1
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x78(%rbp)
movsd  -0x48(%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  -0x40(%rbp),%xmm0
movsd  -0x58(%rbp),%xmm2
movsd  -0x80(%rbp),%xmm1
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x80(%rbp)
movsd  -0x48(%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
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)
movsd  -0x40(%rbp),%xmm0
movsd  -0x50(%rbp),%xmm2
movsd  -0x78(%rbp),%xmm1
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x78(%rbp)
movsd  -0x48(%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  -0x40(%rbp),%xmm0
movsd  -0x58(%rbp),%xmm2
movsd  -0x80(%rbp),%xmm1
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x80(%rbp)
movsd  -0x48(%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
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)
movsd  -0x40(%rbp),%xmm0
movsd  -0x50(%rbp),%xmm2
movsd  -0x78(%rbp),%xmm1
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x78(%rbp)
movsd  -0x48(%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  -0x40(%rbp),%xmm0
movsd  -0x58(%rbp),%xmm2
movsd  -0x80(%rbp),%xmm1
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x80(%rbp)
movsd  -0x48(%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
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    116f <kernel_dtrsm_nn_ll_diag_2x2_vs_lib4+0x6f>
jmp    15f7 <kernel_dtrsm_nn_ll_diag_2x2_vs_lib4+0x4f7>
mov    -0x2c(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    1737 <kernel_dtrsm_nn_ll_diag_2x2_vs_lib4+0x637>
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)
movsd  -0x40(%rbp),%xmm0
movsd  -0x50(%rbp),%xmm2
movsd  -0x78(%rbp),%xmm1
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x78(%rbp)
movsd  -0x48(%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  -0x40(%rbp),%xmm0
movsd  -0x58(%rbp),%xmm2
movsd  -0x80(%rbp),%xmm1
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x80(%rbp)
movsd  -0x48(%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
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    15f7 <kernel_dtrsm_nn_ll_diag_2x2_vs_lib4+0x4f7>
jmp    173c <kernel_dtrsm_nn_ll_diag_2x2_vs_lib4+0x63c>
cmpl   $0x0,0x10(%rbp)
je     179d <kernel_dtrsm_nn_ll_diag_2x2_vs_lib4+0x69d>
mov    0x18(%rbp),%rax
movsd  (%rax),%xmm0
addsd  -0x78(%rbp),%xmm0
movsd  %xmm0,-0x78(%rbp)
mov    0x18(%rbp),%rax
movsd  0x8(%rax),%xmm0
addsd  -0x88(%rbp),%xmm0
ff
movsd  %xmm0,-0x88(%rbp)
ff
mov    0x18(%rbp),%rax
movsd  0x20(%rax),%xmm0
addsd  -0x80(%rbp),%xmm0
movsd  %xmm0,-0x80(%rbp)
mov    0x18(%rbp),%rax
movsd  0x28(%rax),%xmm0
addsd  -0x90(%rbp),%xmm0
ff
movsd  %xmm0,-0x90(%rbp)
ff
movsd  -0x78(%rbp),%xmm0
mov    0x20(%rbp),%rax
movsd  %xmm0,(%rax)
cmpl   $0x2,-0x8(%rbp)
jl     17c2 <kernel_dtrsm_nn_ll_diag_2x2_vs_lib4+0x6c2>
movsd  -0x80(%rbp),%xmm0
mov    0x20(%rbp),%rax
movsd  %xmm0,0x20(%rax)
cmpl   $0x2,-0x4(%rbp)
jge    17d1 <kernel_dtrsm_nn_ll_diag_2x2_vs_lib4+0x6d1>
jmp    1882 <kernel_dtrsm_nn_ll_diag_2x2_vs_lib4+0x782>
mov    0x28(%rbp),%rax
movsd  0x8(%rax),%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  -0x60(%rbp),%xmm0
movsd  -0x78(%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  -0x60(%rbp),%xmm0
movsd  -0x80(%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  -0x88(%rbp),%xmm0
ff
mov    0x20(%rbp),%rax
movsd  %xmm0,0x8(%rax)
cmpl   $0x2,-0x8(%rbp)
jl     187d <kernel_dtrsm_nn_ll_diag_2x2_vs_lib4+0x77d>
movsd  -0x90(%rbp),%xmm0
ff
mov    0x20(%rbp),%rax
movsd  %xmm0,0x28(%rax)
jmp    1882 <kernel_dtrsm_nn_ll_diag_2x2_vs_lib4+0x782>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<kernel_dtrsm_nn_ll_diag_2x2_vs_lib4>:
mov    0x8(%rsp),%r10d
test   %edx,%edx
jle    12d5 <kernel_dtrsm_nn_ll_diag_2x2_vs_lib4+0x1d5>
cmp    $0x4,%edx
jb     12e2 <kernel_dtrsm_nn_ll_diag_2x2_vs_lib4+0x1e2>
lea    -0x3(%rdx),%r11d
shl    $0x2,%r9d
movslq %r9d,%r9
shl    $0x3,%r9
xorpd  %xmm1,%xmm1
xor    %eax,%eax
movapd 0xecc(%rip),%xmm14
xorpd  %xmm5,%xmm5
nopl   0x0(%rax,%rax,1)
movapd %xmm5,%xmm10
movapd %xmm1,%xmm8
movupd (%rcx),%xmm9
movupd 0x20(%rcx),%xmm13
movupd 0x40(%rcx),%xmm12
movupd 0x60(%rcx),%xmm11
movapd %xmm9,%xmm0
unpckhpd %xmm9,%xmm0
movapd %xmm9,%xmm3
unpcklpd %xmm9,%xmm3
movsd  (%r8),%xmm7
movsd  0x8(%r8),%xmm6
movsd  0x10(%r8),%xmm4
movsd  0x18(%r8),%xmm2
movhpd 0x20(%r8),%xmm7
mulpd  %xmm7,%xmm3
subpd  %xmm3,%xmm1
mulpd  %xmm7,%xmm0
subpd  %xmm0,%xmm5
movapd %xmm13,%xmm0
unpcklpd %xmm13,%xmm0
movapd %xmm13,%xmm3
unpckhpd %xmm13,%xmm3
movhpd 0x28(%r8),%xmm6
mulpd  %xmm6,%xmm3
subpd  %xmm3,%xmm5
mulpd  %xmm6,%xmm0
subpd  %xmm0,%xmm1
movapd %xmm12,%xmm0
unpckhpd %xmm12,%xmm0
movapd %xmm12,%xmm3
unpcklpd %xmm12,%xmm3
movhpd 0x30(%r8),%xmm4
mulpd  %xmm4,%xmm3
subpd  %xmm3,%xmm1
mulpd  %xmm4,%xmm0
subpd  %xmm0,%xmm5
movapd %xmm11,%xmm0
unpcklpd %xmm11,%xmm0
movapd %xmm11,%xmm3
unpckhpd %xmm11,%xmm3
movhpd 0x38(%r8),%xmm2
mulpd  %xmm2,%xmm3
subpd  %xmm3,%xmm5
mulpd  %xmm2,%xmm0
subpd  %xmm0,%xmm1
sub    $0xffffffffffffff80,%rcx
add    $0x4,%eax
add    %r9,%r8
cmp    %r11d,%eax
jl     1140 <kernel_dtrsm_nn_ll_diag_2x2_vs_lib4+0x40>
xorpd  %xmm14,%xmm9
pshufd $0xee,%xmm9,%xmm15
pshufd $0x44,%xmm9,%xmm5
xorpd  %xmm14,%xmm13
pshufd $0xee,%xmm13,%xmm9
movapd %xmm14,%xmm0
pshufd $0x44,%xmm13,%xmm14
xorpd  %xmm0,%xmm12
pshufd $0xee,%xmm12,%xmm13
pshufd $0x44,%xmm12,%xmm3
xorpd  %xmm0,%xmm11
pshufd $0xee,%xmm11,%xmm0
pshufd $0x44,%xmm11,%xmm1
mulpd  %xmm7,%xmm15
addpd  %xmm10,%xmm15
mulpd  %xmm7,%xmm5
addpd  %xmm8,%xmm5
mulpd  %xmm6,%xmm14
addpd  %xmm5,%xmm14
mulpd  %xmm6,%xmm9
addpd  %xmm15,%xmm9
mulpd  %xmm4,%xmm13
addpd  %xmm9,%xmm13
mulpd  %xmm4,%xmm3
addpd  %xmm14,%xmm3
mulpd  %xmm2,%xmm1
addpd  %xmm3,%xmm1
mulpd  %xmm2,%xmm0
addpd  %xmm13,%xmm0
mov    %edx,%eax
and    $0xfffffffc,%eax
cmp    %edx,%eax
jl     12f0 <kernel_dtrsm_nn_ll_diag_2x2_vs_lib4+0x1f0>
jmp    1364 <kernel_dtrsm_nn_ll_diag_2x2_vs_lib4+0x264>
xorpd  %xmm1,%xmm1
xorpd  %xmm0,%xmm0
jmp    1364 <kernel_dtrsm_nn_ll_diag_2x2_vs_lib4+0x264>
xorpd  %xmm1,%xmm1
xor    %eax,%eax
xorpd  %xmm0,%xmm0
cmp    %edx,%eax
jge    1364 <kernel_dtrsm_nn_ll_diag_2x2_vs_lib4+0x264>
sub    %eax,%edx
xor    %eax,%eax
movapd 0xd03(%rip),%xmm8
nopl   (%rax)
movapd %xmm0,%xmm2
movapd %xmm1,%xmm4
movupd (%rcx),%xmm3
movapd %xmm3,%xmm7
unpcklpd %xmm3,%xmm7
movapd %xmm3,%xmm6
movsd  (%r8,%rax,8),%xmm5
movhpd 0x20(%r8,%rax,8),%xmm5
unpckhpd %xmm3,%xmm6
mulpd  %xmm5,%xmm6
subpd  %xmm6,%xmm0
mulpd  %xmm5,%xmm7
subpd  %xmm7,%xmm1
add    $0x20,%rcx
add    $0x1,%rax
cmp    %eax,%edx
jne    1300 <kernel_dtrsm_nn_ll_diag_2x2_vs_lib4+0x200>
xorpd  %xmm8,%xmm3
pshufd $0xee,%xmm3,%xmm0
pshufd $0x44,%xmm3,%xmm1
mulpd  %xmm5,%xmm1
addpd  %xmm4,%xmm1
mulpd  %xmm5,%xmm0
addpd  %xmm2,%xmm0
mov    0x18(%rsp),%rax
test   %r10d,%r10d
je     138e <kernel_dtrsm_nn_ll_diag_2x2_vs_lib4+0x28e>
mov    0x10(%rsp),%rcx
movsd  (%rcx),%xmm2
movsd  0x8(%rcx),%xmm3
movhpd 0x20(%rcx),%xmm2
movhpd 0x28(%rcx),%xmm3
addpd  %xmm3,%xmm0
addpd  %xmm2,%xmm1
mov    0x20(%rsp),%rcx
movlpd %xmm1,(%rax)
cmp    $0x2,%esi
jl     13d7 <kernel_dtrsm_nn_ll_diag_2x2_vs_lib4+0x2d7>
movhpd %xmm1,0x20(%rax)
cmp    $0x2,%edi
jl     13f3 <kernel_dtrsm_nn_ll_diag_2x2_vs_lib4+0x2f3>
movapd %xmm1,%xmm2
unpckhpd %xmm1,%xmm2
movsd  0x8(%rcx),%xmm3
mulsd  %xmm3,%xmm2
mulsd  %xmm1,%xmm3
movapd %xmm0,%xmm1
subsd  %xmm3,%xmm1
movsd  %xmm1,0x8(%rax)
unpckhpd %xmm0,%xmm0
subsd  %xmm2,%xmm0
mov    $0x5,%ecx
jmp    13ee <kernel_dtrsm_nn_ll_diag_2x2_vs_lib4+0x2ee>
cmp    $0x2,%edi
jl     13f3 <kernel_dtrsm_nn_ll_diag_2x2_vs_lib4+0x2f3>
movsd  0x8(%rcx),%xmm2
mulsd  %xmm1,%xmm2
subsd  %xmm2,%xmm0
mov    $0x1,%ecx
movsd  %xmm0,(%rax,%rcx,8)
ret

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

LLVM IR (-O2):
define void @kernel_dtrsm_nn_ll_diag_2x2_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 <4 x double> @llvm.fmuladd.v4f64(<4 x double> %41, <4 x double> %44, <4 x double> %34)
%20 = call <4 x double> @llvm.fmuladd.v4f64(<4 x double> %54, <4 x double> %57, <4 x double> %19)
%21 = call <4 x double> @llvm.fmuladd.v4f64(<4 x double> %67, <4 x double> %70, <4 x double> %20)
%22 = call <4 x double> @llvm.fmuladd.v4f64(<4 x double> %80, <4 x double> %83, <4 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 <4 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 <4 x double> [ zeroinitializer, %15 ], [ %84, %30 ]
%35 = bitcast double* %31 to <2 x double>*
%36 = load <2 x double>, <2 x double>* %35
%37 = load double, double* %32
%38 = getelementptr inbounds double, double* %32, i64 4
%39 = load double, double* %38
%40 = fneg <2 x double> %36
%41 = shufflevector <2 x double> %40, <2 x double> poison, <4 x i32> <i32 0, i32 0, i32 1, i32 1>
%42 = insertelement <4 x double> poison, double %37, i64 0
%43 = insertelement <4 x double> %42, double %39, i64 1
%44 = shufflevector <4 x double> %43, <4 x double> poison, <4 x i32> <i32 0, i32 1, i32 0, i32 1>
%45 = call <4 x double> @llvm.fmuladd.v4f64(<4 x double> %41, <4 x double> %44, <4 x double> %34)
%46 = getelementptr inbounds double, double* %31, i64 4
%47 = bitcast double* %46 to <2 x double>*
%48 = load <2 x double>, <2 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 <2 x double> %48
%54 = shufflevector <2 x double> %53, <2 x double> poison, <4 x i32> <i32 0, i32 0, i32 1, i32 1>
%55 = insertelement <4 x double> poison, double %50, i64 0
%56 = insertelement <4 x double> %55, double %52, i64 1
%57 = shufflevector <4 x double> %56, <4 x double> poison, <4 x i32> <i32 0, i32 1, i32 0, i32 1>
%58 = call <4 x double> @llvm.fmuladd.v4f64(<4 x double> %54, <4 x double> %57, <4 x double> %45)
%59 = getelementptr inbounds double, double* %31, i64 8
%60 = bitcast double* %59 to <2 x double>*
%61 = load <2 x double>, <2 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 <2 x double> %61
%67 = shufflevector <2 x double> %66, <2 x double> poison, <4 x i32> <i32 0, i32 0, i32 1, i32 1>
%68 = insertelement <4 x double> poison, double %63, i64 0
%69 = insertelement <4 x double> %68, double %65, i64 1
%70 = shufflevector <4 x double> %69, <4 x double> poison, <4 x i32> <i32 0, i32 1, i32 0, i32 1>
%71 = call <4 x double> @llvm.fmuladd.v4f64(<4 x double> %67, <4 x double> %70, <4 x double> %58)
%72 = getelementptr inbounds double, double* %31, i64 12
%73 = bitcast double* %72 to <2 x double>*
%74 = load <2 x double>, <2 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 <2 x double> %74
%80 = shufflevector <2 x double> %79, <2 x double> poison, <4 x i32> <i32 0, i32 0, i32 1, i32 1>
%81 = insertelement <4 x double> poison, double %76, i64 0
%82 = insertelement <4 x double> %81, double %78, i64 1
%83 = shufflevector <4 x double> %82, <4 x double> poison, <4 x i32> <i32 0, i32 1, i32 0, i32 1>
%84 = call <4 x double> @llvm.fmuladd.v4f64(<4 x double> %80, <4 x double> %83, <4 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 <4 x double> [ %104, %89 ], [ %28, %24 ]
%94 = bitcast double* %90 to <2 x double>*
%95 = load <2 x double>, <2 x double>* %94
%96 = load double, double* %91
%97 = getelementptr inbounds double, double* %91, i64 4
%98 = load double, double* %97
%99 = fneg <2 x double> %95
%100 = shufflevector <2 x double> %99, <2 x double> poison, <4 x i32> <i32 0, i32 0, i32 1, i32 1>
%101 = insertelement <4 x double> poison, double %96, i64 0
%102 = insertelement <4 x double> %101, double %98, i64 1
%103 = shufflevector <4 x double> %102, <4 x double> poison, <4 x i32> <i32 0, i32 1, i32 0, i32 1>
%104 = call <4 x double> @llvm.fmuladd.v4f64(<4 x double> %100, <4 x double> %103, <4 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 <4 x double> @llvm.fmuladd.v4f64(<4 x double> %100, <4 x double> %103, <4 x double> %93)
br label %111
111: ; preds = %109, %24, %10
%112 = phi <4 x double> [ zeroinitializer, %10 ], [ %28, %24 ], [ %110, %109 ]
%113 = icmp eq i32 %6, 0
br i1 %113, label %127, label %114
114: ; preds = %111
%115 = load double, double* %7
%116 = getelementptr inbounds double, double* %7, i64 1
%117 = load double, double* %116
%118 = getelementptr inbounds double, double* %7, i64 4
%119 = load double, double* %118
%120 = getelementptr inbounds double, double* %7, i64 5
%121 = load double, double* %120
%122 = insertelement <4 x double> poison, double %115, i64 0
%123 = insertelement <4 x double> %122, double %119, i64 1
%124 = insertelement <4 x double> %123, double %117, i64 2
%125 = insertelement <4 x double> %124, double %121, i64 3
%126 = fadd <4 x double> %112, %125
br label %127
127: ; preds = %114, %111
%128 = phi <4 x double> [ %126, %114 ], [ %112, %111 ]
%129 = extractelement <4 x double> %128, i64 0
store double %129, double* %8
%130 = icmp sgt i32 %1, 1
br i1 %130, label %131, label %135
131: ; preds = %127
%132 = getelementptr inbounds double, double* %8, i64 4
%133 = extractelement <4 x double> %128, i64 1
store double %133, double* %132
%134 = icmp slt i32 %0, 2
br i1 %134, label %156, label %143
135: ; preds = %127
%136 = icmp slt i32 %0, 2
br i1 %136, label %156, label %137
137: ; preds = %135
%138 = getelementptr inbounds double, double* %9, i64 1
%139 = load double, double* %138
%140 = fneg double %139
%141 = extractelement <4 x double> %128, i64 2
%142 = tail call double @llvm.fmuladd.f64(double %140, double %129, double %141)
br label %152
143: ; preds = %131
%144 = getelementptr inbounds double, double* %9, i64 1
%145 = load double, double* %144
%146 = fneg double %145
%147 = extractelement <4 x double> %128, i64 2
%148 = tail call double @llvm.fmuladd.f64(double %146, double %129, double %147)
%149 = getelementptr inbounds double, double* %8, i64 1
store double %148, double* %149
%150 = extractelement <4 x double> %128, i64 3
%151 = tail call double @llvm.fmuladd.f64(double %146, double %133, double %150)
br label %152
152: ; preds = %143, %137
%153 = phi i64 [ 1, %137 ], [ 5, %143 ]
%154 = phi double [ %142, %137 ], [ %151, %143 ]
%155 = getelementptr inbounds double, double* %8, i64 %153
store double %154, double* %155
br label %156
156: ; preds = %152, %135, %131
ret void
}