void kernel_dgemv_n_8_vs_lib4(int km, int kmax, double *A0, int sda, double *x,
                              double *y, double *z, int alg) {
  if (kmax <= 0)
    return;
  double *A1 = A0 + 4 * sda;
  __builtin_prefetch(A0);
  __builtin_prefetch(A1);
  __builtin_prefetch(A0 + 8);
  __builtin_prefetch(A1 + 8);
  const int lda = 4;
  int k;
  double x_0, x_1, x_2, x_3, y_0 = 0, y_1 = 0, y_2 = 0, y_3 = 0, y_4 = 0,
                             y_5 = 0, y_6 = 0, y_7 = 0;
  k = 0;
  for (; k < kmax - 3; k += 4) {
    __builtin_prefetch(A0 + 4 * lda);
    __builtin_prefetch(A1 + 4 * lda);
    __builtin_prefetch(A0 + 4 * lda + 8);
    __builtin_prefetch(A1 + 4 * lda + 8);
    x_0 = x[0];
    x_1 = x[1];
    x_2 = x[2];
    x_3 = x[3];
    y_0 += A0[0 + lda * 0] * x_0;
    y_1 += A0[1 + lda * 0] * x_0;
    y_2 += A0[2 + lda * 0] * x_0;
    y_3 += A0[3 + lda * 0] * x_0;
    y_4 += A1[0 + lda * 0] * x_0;
    y_5 += A1[1 + lda * 0] * x_0;
    y_6 += A1[2 + lda * 0] * x_0;
    y_7 += A1[3 + lda * 0] * x_0;
    y_0 += A0[0 + lda * 1] * x_1;
    y_1 += A0[1 + lda * 1] * x_1;
    y_2 += A0[2 + lda * 1] * x_1;
    y_3 += A0[3 + lda * 1] * x_1;
    y_4 += A1[0 + lda * 1] * x_1;
    y_5 += A1[1 + lda * 1] * x_1;
    y_6 += A1[2 + lda * 1] * x_1;
    y_7 += A1[3 + lda * 1] * x_1;
    y_0 += A0[0 + lda * 2] * x_2;
    y_1 += A0[1 + lda * 2] * x_2;
    y_2 += A0[2 + lda * 2] * x_2;
    y_3 += A0[3 + lda * 2] * x_2;
    y_4 += A1[0 + lda * 2] * x_2;
    y_5 += A1[1 + lda * 2] * x_2;
    y_6 += A1[2 + lda * 2] * x_2;
    y_7 += A1[3 + lda * 2] * x_2;
    y_0 += A0[0 + lda * 3] * x_3;
    y_1 += A0[1 + lda * 3] * x_3;
    y_2 += A0[2 + lda * 3] * x_3;
    y_3 += A0[3 + lda * 3] * x_3;
    y_4 += A1[0 + lda * 3] * x_3;
    y_5 += A1[1 + lda * 3] * x_3;
    y_6 += A1[2 + lda * 3] * x_3;
    y_7 += A1[3 + lda * 3] * x_3;
    A0 += 4 * lda;
    A1 += 4 * lda;
    x += 4;
  }
  for (; k < kmax; k++) {
    x_0 = x[0];
    y_0 += A0[0 + lda * 0] * x_0;
    y_1 += A0[1 + lda * 0] * x_0;
    y_2 += A0[2 + lda * 0] * x_0;
    y_3 += A0[3 + lda * 0] * x_0;
    y_4 += A1[0 + lda * 0] * x_0;
    y_5 += A1[1 + lda * 0] * x_0;
    y_6 += A1[2 + lda * 0] * x_0;
    y_7 += A1[3 + lda * 0] * x_0;
    A0 += 1 * lda;
    A1 += 1 * lda;
    x += 1;
  }
  if (alg == 0) {
    goto store;
  } else if (alg == 1) {
    y_0 += y[0];
    y_1 += y[1];
    y_2 += y[2];
    y_3 += y[3];
    y_4 += y[4];
    y_5 += y[5];
    y_6 += y[6];
    y_7 += y[7];
    goto store;
  } else {
    y_0 = y[0] - y_0;
    y_1 = y[1] - y_1;
    y_2 = y[2] - y_2;
    y_3 = y[3] - y_3;
    y_4 = y[4] - y_4;
    y_5 = y[5] - y_5;
    y_6 = y[6] - y_6;
    y_7 = y[7] - y_7;
    goto store;
  }
store:
  z[0] = y_0;
  z[1] = y_1;
  z[2] = y_2;
  z[3] = y_3;
  if (km >= 8) {
    z[4] = y_4;
    z[5] = y_5;
    z[6] = y_6;
    z[7] = y_7;
  } else {
    z[4] = y_4;
    if (km >= 6) {
      z[5] = y_5;
      if (km > 6) {
        z[6] = y_6;
      }
    }
  }
}


x86 assembly (clang, -O0):
<kernel_dgemv_n_8_vs_lib4>:
push   %rbp
mov    %rsp,%rbp
sub    $0x18,%rsp
mov    0x18(%rbp),%eax
mov    0x10(%rbp),%rax
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %rdx,-0x10(%rbp)
mov    %ecx,-0x14(%rbp)
mov    %r8,-0x20(%rbp)
mov    %r9,-0x28(%rbp)
cmpl   $0x0,-0x8(%rbp)
jg     1133 <kernel_dgemv_n_8_vs_lib4+0x33>
jmp    1a6b <kernel_dgemv_n_8_vs_lib4+0x96b>
mov    -0x10(%rbp),%rax
mov    -0x14(%rbp),%ecx
shl    $0x2,%ecx
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x30(%rbp)
mov    -0x10(%rbp),%rax
prefetcht0 (%rax)
mov    -0x30(%rbp),%rax
prefetcht0 (%rax)
mov    -0x10(%rbp),%rax
add    $0x40,%rax
prefetcht0 (%rax)
mov    -0x30(%rbp),%rax
add    $0x40,%rax
prefetcht0 (%rax)
movl   $0x4,-0x34(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x60(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x68(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x70(%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
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x98(%rbp)
ff
movl   $0x0,-0x38(%rbp)
mov    -0x38(%rbp),%eax
mov    -0x8(%rbp),%ecx
sub    $0x3,%ecx
cmp    %ecx,%eax
jge    16c6 <kernel_dgemv_n_8_vs_lib4+0x5c6>
mov    -0x10(%rbp),%rax
add    $0x80,%rax
prefetcht0 (%rax)
mov    -0x30(%rbp),%rax
add    $0x80,%rax
prefetcht0 (%rax)
mov    -0x10(%rbp),%rax
add    $0x80,%rax
add    $0x40,%rax
prefetcht0 (%rax)
mov    -0x30(%rbp),%rax
add    $0x80,%rax
add    $0x40,%rax
prefetcht0 (%rax)
mov    -0x20(%rbp),%rax
movsd  (%rax),%xmm0
movsd  %xmm0,-0x40(%rbp)
mov    -0x20(%rbp),%rax
movsd  0x8(%rax),%xmm0
movsd  %xmm0,-0x48(%rbp)
mov    -0x20(%rbp),%rax
movsd  0x10(%rax),%xmm0
movsd  %xmm0,-0x50(%rbp)
mov    -0x20(%rbp),%rax
movsd  0x18(%rax),%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    -0x10(%rbp),%rax
movsd  (%rax),%xmm0
movsd  -0x40(%rbp),%xmm2
movsd  -0x60(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x60(%rbp)
mov    -0x10(%rbp),%rax
movsd  0x8(%rax),%xmm0
movsd  -0x40(%rbp),%xmm2
movsd  -0x68(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x68(%rbp)
mov    -0x10(%rbp),%rax
movsd  0x10(%rax),%xmm0
movsd  -0x40(%rbp),%xmm2
movsd  -0x70(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x70(%rbp)
mov    -0x10(%rbp),%rax
movsd  0x18(%rax),%xmm0
movsd  -0x40(%rbp),%xmm2
movsd  -0x78(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x78(%rbp)
mov    -0x30(%rbp),%rax
movsd  (%rax),%xmm0
movsd  -0x40(%rbp),%xmm2
movsd  -0x80(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x80(%rbp)
mov    -0x30(%rbp),%rax
movsd  0x8(%rax),%xmm0
movsd  -0x40(%rbp),%xmm2
movsd  -0x88(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
mov    -0x30(%rbp),%rax
movsd  0x10(%rax),%xmm0
movsd  -0x40(%rbp),%xmm2
movsd  -0x90(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
mov    -0x30(%rbp),%rax
movsd  0x18(%rax),%xmm0
movsd  -0x40(%rbp),%xmm2
movsd  -0x98(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x98(%rbp)
ff
mov    -0x10(%rbp),%rax
movsd  0x20(%rax),%xmm0
movsd  -0x48(%rbp),%xmm2
movsd  -0x60(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x60(%rbp)
mov    -0x10(%rbp),%rax
movsd  0x28(%rax),%xmm0
movsd  -0x48(%rbp),%xmm2
movsd  -0x68(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x68(%rbp)
mov    -0x10(%rbp),%rax
movsd  0x30(%rax),%xmm0
movsd  -0x48(%rbp),%xmm2
movsd  -0x70(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x70(%rbp)
mov    -0x10(%rbp),%rax
movsd  0x38(%rax),%xmm0
movsd  -0x48(%rbp),%xmm2
movsd  -0x78(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x78(%rbp)
mov    -0x30(%rbp),%rax
movsd  0x20(%rax),%xmm0
movsd  -0x48(%rbp),%xmm2
movsd  -0x80(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x80(%rbp)
mov    -0x30(%rbp),%rax
movsd  0x28(%rax),%xmm0
movsd  -0x48(%rbp),%xmm2
movsd  -0x88(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
mov    -0x30(%rbp),%rax
movsd  0x30(%rax),%xmm0
movsd  -0x48(%rbp),%xmm2
movsd  -0x90(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
mov    -0x30(%rbp),%rax
movsd  0x38(%rax),%xmm0
movsd  -0x48(%rbp),%xmm2
movsd  -0x98(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x98(%rbp)
ff
mov    -0x10(%rbp),%rax
movsd  0x40(%rax),%xmm0
movsd  -0x50(%rbp),%xmm2
movsd  -0x60(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x60(%rbp)
mov    -0x10(%rbp),%rax
movsd  0x48(%rax),%xmm0
movsd  -0x50(%rbp),%xmm2
movsd  -0x68(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x68(%rbp)
mov    -0x10(%rbp),%rax
movsd  0x50(%rax),%xmm0
movsd  -0x50(%rbp),%xmm2
movsd  -0x70(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x70(%rbp)
mov    -0x10(%rbp),%rax
movsd  0x58(%rax),%xmm0
movsd  -0x50(%rbp),%xmm2
movsd  -0x78(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x78(%rbp)
mov    -0x30(%rbp),%rax
movsd  0x40(%rax),%xmm0
movsd  -0x50(%rbp),%xmm2
movsd  -0x80(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x80(%rbp)
mov    -0x30(%rbp),%rax
movsd  0x48(%rax),%xmm0
movsd  -0x50(%rbp),%xmm2
movsd  -0x88(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
mov    -0x30(%rbp),%rax
movsd  0x50(%rax),%xmm0
movsd  -0x50(%rbp),%xmm2
movsd  -0x90(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
mov    -0x30(%rbp),%rax
movsd  0x58(%rax),%xmm0
movsd  -0x50(%rbp),%xmm2
movsd  -0x98(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x98(%rbp)
ff
mov    -0x10(%rbp),%rax
movsd  0x60(%rax),%xmm0
movsd  -0x58(%rbp),%xmm2
movsd  -0x60(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x60(%rbp)
mov    -0x10(%rbp),%rax
movsd  0x68(%rax),%xmm0
movsd  -0x58(%rbp),%xmm2
movsd  -0x68(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x68(%rbp)
mov    -0x10(%rbp),%rax
movsd  0x70(%rax),%xmm0
movsd  -0x58(%rbp),%xmm2
movsd  -0x70(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x70(%rbp)
mov    -0x10(%rbp),%rax
movsd  0x78(%rax),%xmm0
movsd  -0x58(%rbp),%xmm2
movsd  -0x78(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x78(%rbp)
mov    -0x30(%rbp),%rax
movsd  0x60(%rax),%xmm0
movsd  -0x58(%rbp),%xmm2
movsd  -0x80(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x80(%rbp)
mov    -0x30(%rbp),%rax
movsd  0x68(%rax),%xmm0
movsd  -0x58(%rbp),%xmm2
movsd  -0x88(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
mov    -0x30(%rbp),%rax
movsd  0x70(%rax),%xmm0
movsd  -0x58(%rbp),%xmm2
movsd  -0x90(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
mov    -0x30(%rbp),%rax
movsd  0x78(%rax),%xmm0
movsd  -0x58(%rbp),%xmm2
movsd  -0x98(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x98(%rbp)
ff
mov    -0x10(%rbp),%rax
add    $0x80,%rax
mov    %rax,-0x10(%rbp)
mov    -0x30(%rbp),%rax
add    $0x80,%rax
mov    %rax,-0x30(%rbp)
mov    -0x20(%rbp),%rax
add    $0x20,%rax
mov    %rax,-0x20(%rbp)
mov    -0x38(%rbp),%eax
add    $0x4,%eax
mov    %eax,-0x38(%rbp)
jmp    11c6 <kernel_dgemv_n_8_vs_lib4+0xc6>
jmp    16cb <kernel_dgemv_n_8_vs_lib4+0x5cb>
mov    -0x38(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    1826 <kernel_dgemv_n_8_vs_lib4+0x726>
mov    -0x20(%rbp),%rax
movsd  (%rax),%xmm0
movsd  %xmm0,-0x40(%rbp)
mov    -0x10(%rbp),%rax
movsd  (%rax),%xmm0
movsd  -0x40(%rbp),%xmm2
movsd  -0x60(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x60(%rbp)
mov    -0x10(%rbp),%rax
movsd  0x8(%rax),%xmm0
movsd  -0x40(%rbp),%xmm2
movsd  -0x68(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x68(%rbp)
mov    -0x10(%rbp),%rax
movsd  0x10(%rax),%xmm0
movsd  -0x40(%rbp),%xmm2
movsd  -0x70(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x70(%rbp)
mov    -0x10(%rbp),%rax
movsd  0x18(%rax),%xmm0
movsd  -0x40(%rbp),%xmm2
movsd  -0x78(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x78(%rbp)
mov    -0x30(%rbp),%rax
movsd  (%rax),%xmm0
movsd  -0x40(%rbp),%xmm2
movsd  -0x80(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x80(%rbp)
mov    -0x30(%rbp),%rax
movsd  0x8(%rax),%xmm0
movsd  -0x40(%rbp),%xmm2
movsd  -0x88(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
mov    -0x30(%rbp),%rax
movsd  0x10(%rax),%xmm0
movsd  -0x40(%rbp),%xmm2
movsd  -0x90(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
mov    -0x30(%rbp),%rax
movsd  0x18(%rax),%xmm0
movsd  -0x40(%rbp),%xmm2
movsd  -0x98(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x98(%rbp)
ff
mov    -0x10(%rbp),%rax
add    $0x20,%rax
mov    %rax,-0x10(%rbp)
mov    -0x30(%rbp),%rax
add    $0x20,%rax
mov    %rax,-0x30(%rbp)
mov    -0x20(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x20(%rbp)
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    16cb <kernel_dgemv_n_8_vs_lib4+0x5cb>
cmpl   $0x0,0x18(%rbp)
jne    1835 <kernel_dgemv_n_8_vs_lib4+0x735>
jmp    1996 <kernel_dgemv_n_8_vs_lib4+0x896>
cmpl   $0x1,0x18(%rbp)
jne    18ed <kernel_dgemv_n_8_vs_lib4+0x7ed>
mov    -0x28(%rbp),%rax
movsd  (%rax),%xmm0
addsd  -0x60(%rbp),%xmm0
movsd  %xmm0,-0x60(%rbp)
mov    -0x28(%rbp),%rax
movsd  0x8(%rax),%xmm0
addsd  -0x68(%rbp),%xmm0
movsd  %xmm0,-0x68(%rbp)
mov    -0x28(%rbp),%rax
movsd  0x10(%rax),%xmm0
addsd  -0x70(%rbp),%xmm0
movsd  %xmm0,-0x70(%rbp)
mov    -0x28(%rbp),%rax
movsd  0x18(%rax),%xmm0
addsd  -0x78(%rbp),%xmm0
movsd  %xmm0,-0x78(%rbp)
mov    -0x28(%rbp),%rax
movsd  0x20(%rax),%xmm0
addsd  -0x80(%rbp),%xmm0
movsd  %xmm0,-0x80(%rbp)
mov    -0x28(%rbp),%rax
movsd  0x28(%rax),%xmm0
addsd  -0x88(%rbp),%xmm0
ff
movsd  %xmm0,-0x88(%rbp)
ff
mov    -0x28(%rbp),%rax
movsd  0x30(%rax),%xmm0
addsd  -0x90(%rbp),%xmm0
ff
movsd  %xmm0,-0x90(%rbp)
ff
mov    -0x28(%rbp),%rax
movsd  0x38(%rax),%xmm0
addsd  -0x98(%rbp),%xmm0
ff
movsd  %xmm0,-0x98(%rbp)
ff
jmp    1996 <kernel_dgemv_n_8_vs_lib4+0x896>
mov    -0x28(%rbp),%rax
movsd  (%rax),%xmm0
subsd  -0x60(%rbp),%xmm0
movsd  %xmm0,-0x60(%rbp)
mov    -0x28(%rbp),%rax
movsd  0x8(%rax),%xmm0
subsd  -0x68(%rbp),%xmm0
movsd  %xmm0,-0x68(%rbp)
mov    -0x28(%rbp),%rax
movsd  0x10(%rax),%xmm0
subsd  -0x70(%rbp),%xmm0
movsd  %xmm0,-0x70(%rbp)
mov    -0x28(%rbp),%rax
movsd  0x18(%rax),%xmm0
subsd  -0x78(%rbp),%xmm0
movsd  %xmm0,-0x78(%rbp)
mov    -0x28(%rbp),%rax
movsd  0x20(%rax),%xmm0
subsd  -0x80(%rbp),%xmm0
movsd  %xmm0,-0x80(%rbp)
mov    -0x28(%rbp),%rax
movsd  0x28(%rax),%xmm0
subsd  -0x88(%rbp),%xmm0
ff
movsd  %xmm0,-0x88(%rbp)
ff
mov    -0x28(%rbp),%rax
movsd  0x30(%rax),%xmm0
subsd  -0x90(%rbp),%xmm0
ff
movsd  %xmm0,-0x90(%rbp)
ff
mov    -0x28(%rbp),%rax
movsd  0x38(%rax),%xmm0
subsd  -0x98(%rbp),%xmm0
ff
movsd  %xmm0,-0x98(%rbp)
ff
movsd  -0x60(%rbp),%xmm0
mov    0x10(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  -0x68(%rbp),%xmm0
mov    0x10(%rbp),%rax
movsd  %xmm0,0x8(%rax)
movsd  -0x70(%rbp),%xmm0
mov    0x10(%rbp),%rax
movsd  %xmm0,0x10(%rax)
movsd  -0x78(%rbp),%xmm0
mov    0x10(%rbp),%rax
movsd  %xmm0,0x18(%rax)
cmpl   $0x8,-0x4(%rbp)
jl     1a1d <kernel_dgemv_n_8_vs_lib4+0x91d>
movsd  -0x80(%rbp),%xmm0
mov    0x10(%rbp),%rax
movsd  %xmm0,0x20(%rax)
movsd  -0x88(%rbp),%xmm0
ff
mov    0x10(%rbp),%rax
movsd  %xmm0,0x28(%rax)
movsd  -0x90(%rbp),%xmm0
ff
mov    0x10(%rbp),%rax
movsd  %xmm0,0x30(%rax)
movsd  -0x98(%rbp),%xmm0
ff
mov    0x10(%rbp),%rax
movsd  %xmm0,0x38(%rax)
jmp    1a6b <kernel_dgemv_n_8_vs_lib4+0x96b>
movsd  -0x80(%rbp),%xmm0
mov    0x10(%rbp),%rax
movsd  %xmm0,0x20(%rax)
cmpl   $0x6,-0x4(%rbp)
jl     1a66 <kernel_dgemv_n_8_vs_lib4+0x966>
movsd  -0x88(%rbp),%xmm0
ff
mov    0x10(%rbp),%rax
movsd  %xmm0,0x28(%rax)
cmpl   $0x6,-0x4(%rbp)
jle    1a61 <kernel_dgemv_n_8_vs_lib4+0x961>
movsd  -0x90(%rbp),%xmm0
ff
mov    0x10(%rbp),%rax
movsd  %xmm0,0x30(%rax)
jmp    1a66 <kernel_dgemv_n_8_vs_lib4+0x966>
jmp    1a6b <kernel_dgemv_n_8_vs_lib4+0x96b>
add    $0x18,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<kernel_dgemv_n_8_vs_lib4>:
test   %esi,%esi
jle    1478 <kernel_dgemv_n_8_vs_lib4+0x378>
shl    $0x2,%ecx
movslq %ecx,%r10
prefetcht0 (%rdx)
prefetcht0 (%rdx,%r10,8)
prefetcht0 0x40(%rdx)
prefetcht0 0x40(%rdx,%r10,8)
cmp    $0x4,%esi
jb     12e4 <kernel_dgemv_n_8_vs_lib4+0x1e4>
lea    -0x3(%rsi),%r11d
lea    0x0(,%r10,8),%rax
xorpd  %xmm10,%xmm10
xor    %ecx,%ecx
xorpd  %xmm4,%xmm4
xorpd  %xmm3,%xmm3
xorpd  %xmm2,%xmm2
nopl   0x0(%rax,%rax,1)
prefetcht0 0x80(%rdx)
prefetcht0 0x80(%rdx,%rax,1)
prefetcht0 0xc0(%rdx)
prefetcht0 0xc0(%rdx,%rax,1)
movupd (%rdx),%xmm6
movupd 0x10(%rdx),%xmm5
movupd 0x20(%rdx),%xmm11
movupd 0x30(%rdx),%xmm8
movsd  (%r8),%xmm7
movsd  0x8(%r8),%xmm0
movsd  0x10(%r8),%xmm9
unpcklpd %xmm7,%xmm7
mulpd  %xmm7,%xmm6
addpd  %xmm4,%xmm6
mulpd  %xmm7,%xmm5
addpd  %xmm3,%xmm5
movupd 0x8(%rdx,%rax,1),%xmm3
mulpd  %xmm7,%xmm3
addpd  %xmm10,%xmm3
movsd  (%rdx,%rax,1),%xmm1
movhpd 0x18(%rdx,%rax,1),%xmm1
mulpd  %xmm7,%xmm1
addpd  %xmm2,%xmm1
unpcklpd %xmm0,%xmm0
mulpd  %xmm0,%xmm11
addpd  %xmm6,%xmm11
mulpd  %xmm0,%xmm8
addpd  %xmm5,%xmm8
movupd 0x28(%rdx,%rax,1),%xmm10
mulpd  %xmm0,%xmm10
addpd  %xmm3,%xmm10
movsd  0x20(%rdx,%rax,1),%xmm4
movhpd 0x38(%rdx,%rax,1),%xmm4
mulpd  %xmm0,%xmm4
addpd  %xmm1,%xmm4
movupd 0x40(%rdx),%xmm6
unpcklpd %xmm9,%xmm9
mulpd  %xmm9,%xmm6
addpd  %xmm11,%xmm6
movupd 0x50(%rdx),%xmm7
movupd 0x48(%rdx,%rax,1),%xmm5
movsd  0x40(%rdx,%rax,1),%xmm1
movhpd 0x58(%rdx,%rax,1),%xmm1
movupd 0x60(%rdx),%xmm12
movupd 0x70(%rdx),%xmm13
movupd 0x68(%rdx,%rax,1),%xmm11
movsd  0x60(%rdx,%rax,1),%xmm0
movhpd 0x78(%rdx,%rax,1),%xmm0
lea    0x80(%rdx),%rdx
mulpd  %xmm9,%xmm7
addpd  %xmm8,%xmm7
movsd  0x18(%r8),%xmm2
mulpd  %xmm9,%xmm5
addpd  %xmm10,%xmm5
mulpd  %xmm9,%xmm1
addpd  %xmm4,%xmm1
unpcklpd %xmm2,%xmm2
mulpd  %xmm2,%xmm12
movapd %xmm12,%xmm4
addpd  %xmm6,%xmm4
mulpd  %xmm2,%xmm13
movapd %xmm13,%xmm3
addpd  %xmm7,%xmm3
mulpd  %xmm2,%xmm11
movapd %xmm11,%xmm10
addpd  %xmm5,%xmm10
mulpd  %xmm2,%xmm0
movapd %xmm0,%xmm2
addpd  %xmm1,%xmm2
add    $0x20,%r8
add    $0x4,%ecx
cmp    %r11d,%ecx
jl     1150 <kernel_dgemv_n_8_vs_lib4+0x50>
addpd  %xmm1,%xmm0
addpd  %xmm5,%xmm11
addpd  %xmm7,%xmm13
addpd  %xmm6,%xmm12
mov    %esi,%ecx
and    $0xfffffffc,%ecx
lea    (%rdx,%r10,8),%rax
jmp    12fd <kernel_dgemv_n_8_vs_lib4+0x1fd>
lea    (%rdx,%r10,8),%rax
xorpd  %xmm11,%xmm11
xor    %ecx,%ecx
xorpd  %xmm12,%xmm12
xorpd  %xmm13,%xmm13
xorpd  %xmm0,%xmm0
mov    0x10(%rsp),%r10d
cmp    %esi,%ecx
jge    13ac <kernel_dgemv_n_8_vs_lib4+0x2ac>
sub    %ecx,%esi
xor    %ecx,%ecx
xchg   %ax,%ax
movapd %xmm0,%xmm3
movapd %xmm13,%xmm4
movapd %xmm12,%xmm8
movapd %xmm11,%xmm6
movupd (%rdx,%rcx,4),%xmm5
movupd 0x10(%rdx,%rcx,4),%xmm1
movsd  (%r8,%rcx,1),%xmm0
unpcklpd %xmm0,%xmm0
mulpd  %xmm0,%xmm5
movapd %xmm5,%xmm12
addpd  %xmm8,%xmm12
mulpd  %xmm0,%xmm1
movapd %xmm1,%xmm13
addpd  %xmm4,%xmm13
movupd 0x8(%rax,%rcx,4),%xmm7
mulpd  %xmm0,%xmm7
movapd %xmm7,%xmm11
addpd  %xmm6,%xmm11
movsd  (%rax,%rcx,4),%xmm2
movhpd 0x18(%rax,%rcx,4),%xmm2
mulpd  %xmm0,%xmm2
movapd %xmm2,%xmm0
addpd  %xmm3,%xmm0
add    $0x8,%rcx
add    $0xffffffff,%esi
jne    1310 <kernel_dgemv_n_8_vs_lib4+0x210>
addpd  %xmm3,%xmm2
addpd  %xmm6,%xmm7
addpd  %xmm4,%xmm1
addpd  %xmm8,%xmm5
movapd %xmm7,%xmm11
movapd %xmm5,%xmm12
movapd %xmm1,%xmm13
movapd %xmm2,%xmm0
mov    0x8(%rsp),%rax
test   %r10d,%r10d
je     1431 <kernel_dgemv_n_8_vs_lib4+0x331>
cmp    $0x1,%r10d
jne    13ee <kernel_dgemv_n_8_vs_lib4+0x2ee>
movupd (%r9),%xmm1
movupd 0x10(%r9),%xmm2
addpd  %xmm1,%xmm12
addpd  %xmm2,%xmm13
movupd 0x28(%r9),%xmm1
addpd  %xmm1,%xmm11
movsd  0x20(%r9),%xmm1
movhpd 0x38(%r9),%xmm1
addpd  %xmm1,%xmm0
jmp    1431 <kernel_dgemv_n_8_vs_lib4+0x331>
movupd (%r9),%xmm1
movupd 0x10(%r9),%xmm2
subpd  %xmm12,%xmm1
subpd  %xmm13,%xmm2
movupd 0x28(%r9),%xmm3
subpd  %xmm11,%xmm3
movsd  0x20(%r9),%xmm4
movhpd 0x38(%r9),%xmm4
subpd  %xmm0,%xmm4
movapd %xmm3,%xmm11
movapd %xmm1,%xmm12
movapd %xmm2,%xmm13
movapd %xmm4,%xmm0
movupd %xmm12,(%rax)
movupd %xmm13,0x10(%rax)
movlpd %xmm0,0x20(%rax)
cmp    $0x8,%edi
jl     1457 <kernel_dgemv_n_8_vs_lib4+0x357>
movupd %xmm11,0x28(%rax)
unpckhpd %xmm0,%xmm0
mov    $0x7,%ecx
jmp    1473 <kernel_dgemv_n_8_vs_lib4+0x373>
cmp    $0x6,%edi
jl     1478 <kernel_dgemv_n_8_vs_lib4+0x378>
movlpd %xmm11,0x28(%rax)
je     1478 <kernel_dgemv_n_8_vs_lib4+0x378>
unpckhpd %xmm11,%xmm11
mov    $0x6,%ecx
movapd %xmm11,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
ret

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

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