void kernel_sgemv_t_4_lib8(int kmax, int kna, float *A, int sda, float *x,
                           float *y, int alg) {
  if (kmax <= 0)
    return;
  const int lda = 8;
  const int bs = 8;
  int k, ka = kmax - kna;
  float x_0, x_1, x_2, x_3, y_0 = 0, y_1 = 0, y_2 = 0, y_3 = 0;
  if (kna > 0) {
    k = 0;
    for (; k < kna; k++) {
      x_0 = x[0];
      y_0 += A[0 + lda * 0] * x_0;
      y_1 += A[0 + lda * 1] * x_0;
      y_2 += A[0 + lda * 2] * x_0;
      y_3 += A[0 + lda * 3] * x_0;
      A += 1;
      x += 1;
    }
    A += (sda - 1) * lda;
  }
  k = 0;
  for (; k < ka - bs + 1; k += bs) {
    x_0 = x[0];
    x_1 = x[1];
    x_2 = x[2];
    x_3 = x[3];
    y_0 += A[0 + lda * 0] * x_0;
    y_1 += A[0 + lda * 1] * x_0;
    y_2 += A[0 + lda * 2] * x_0;
    y_3 += A[0 + lda * 3] * x_0;
    y_0 += A[1 + lda * 0] * x_1;
    y_1 += A[1 + lda * 1] * x_1;
    y_2 += A[1 + lda * 2] * x_1;
    y_3 += A[1 + lda * 3] * x_1;
    y_0 += A[2 + lda * 0] * x_2;
    y_1 += A[2 + lda * 1] * x_2;
    y_2 += A[2 + lda * 2] * x_2;
    y_3 += A[2 + lda * 3] * x_2;
    y_0 += A[3 + lda * 0] * x_3;
    y_1 += A[3 + lda * 1] * x_3;
    y_2 += A[3 + lda * 2] * x_3;
    y_3 += A[3 + lda * 3] * x_3;
    x_0 = x[4];
    x_1 = x[5];
    x_2 = x[6];
    x_3 = x[7];
    y_0 += A[4 + lda * 0] * x_0;
    y_1 += A[4 + lda * 1] * x_0;
    y_2 += A[4 + lda * 2] * x_0;
    y_3 += A[4 + lda * 3] * x_0;
    y_0 += A[5 + lda * 0] * x_1;
    y_1 += A[5 + lda * 1] * x_1;
    y_2 += A[5 + lda * 2] * x_1;
    y_3 += A[5 + lda * 3] * x_1;
    y_0 += A[6 + lda * 0] * x_2;
    y_1 += A[6 + lda * 1] * x_2;
    y_2 += A[6 + lda * 2] * x_2;
    y_3 += A[6 + lda * 3] * x_2;
    y_0 += A[7 + lda * 0] * x_3;
    y_1 += A[7 + lda * 1] * x_3;
    y_2 += A[7 + lda * 2] * x_3;
    y_3 += A[7 + lda * 3] * x_3;
    A += sda * bs;
    x += 8;
  }
  for (; k < ka; k++) {
    x_0 = x[0];
    y_0 += A[0 + lda * 0] * x_0;
    y_1 += A[0 + lda * 1] * x_0;
    y_2 += A[0 + lda * 2] * x_0;
    y_3 += A[0 + lda * 3] * x_0;
    A += 1;
    x += 1;
  }
  if (alg == 0) {
    y[0] = y_0;
    y[1] = y_1;
    y[2] = y_2;
    y[3] = y_3;
  } else if (alg == 1) {
    y[0] += y_0;
    y[1] += y_1;
    y[2] += y_2;
    y[3] += y_3;
  } else {
    y[0] -= y_0;
    y[1] -= y_1;
    y[2] -= y_2;
    y[3] -= y_3;
  }
}


x86 assembly (clang, -O0):
<kernel_sgemv_t_4_lib8>:
push   %rbp
mov    %rsp,%rbp
mov    0x10(%rbp),%eax
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,-0x4(%rbp)
jg     112b <kernel_sgemv_t_4_lib8+0x2b>
jmp    18c8 <kernel_sgemv_t_4_lib8+0x7c8>
movl   $0x8,-0x2c(%rbp)
movl   $0x8,-0x30(%rbp)
mov    -0x4(%rbp),%eax
sub    -0x8(%rbp),%eax
mov    %eax,-0x38(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x4c(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x50(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x54(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x58(%rbp)
cmpl   $0x0,-0x8(%rbp)
jle    124c <kernel_sgemv_t_4_lib8+0x14c>
movl   $0x0,-0x34(%rbp)
mov    -0x34(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    1231 <kernel_sgemv_t_4_lib8+0x131>
mov    -0x20(%rbp),%rax
movss  (%rax),%xmm0
movss  %xmm0,-0x3c(%rbp)
mov    -0x10(%rbp),%rax
movss  (%rax),%xmm0
movss  -0x3c(%rbp),%xmm2
movss  -0x4c(%rbp),%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x4c(%rbp)
mov    -0x10(%rbp),%rax
movss  0x20(%rax),%xmm0
movss  -0x3c(%rbp),%xmm2
movss  -0x50(%rbp),%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x50(%rbp)
mov    -0x10(%rbp),%rax
movss  0x40(%rax),%xmm0
movss  -0x3c(%rbp),%xmm2
movss  -0x54(%rbp),%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x54(%rbp)
mov    -0x10(%rbp),%rax
movss  0x60(%rax),%xmm0
movss  -0x3c(%rbp),%xmm2
movss  -0x58(%rbp),%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x58(%rbp)
mov    -0x10(%rbp),%rax
add    $0x4,%rax
mov    %rax,-0x10(%rbp)
mov    -0x20(%rbp),%rax
add    $0x4,%rax
mov    %rax,-0x20(%rbp)
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    1173 <kernel_sgemv_t_4_lib8+0x73>
mov    -0x14(%rbp),%ecx
sub    $0x1,%ecx
shl    $0x3,%ecx
mov    -0x10(%rbp),%rax
movslq %ecx,%rcx
shl    $0x2,%rcx
add    %rcx,%rax
mov    %rax,-0x10(%rbp)
movl   $0x0,-0x34(%rbp)
mov    -0x34(%rbp),%eax
mov    -0x38(%rbp),%ecx
sub    $0x8,%ecx
add    $0x1,%ecx
cmp    %ecx,%eax
jge    1707 <kernel_sgemv_t_4_lib8+0x607>
mov    -0x20(%rbp),%rax
movss  (%rax),%xmm0
movss  %xmm0,-0x3c(%rbp)
mov    -0x20(%rbp),%rax
movss  0x4(%rax),%xmm0
movss  %xmm0,-0x40(%rbp)
mov    -0x20(%rbp),%rax
movss  0x8(%rax),%xmm0
movss  %xmm0,-0x44(%rbp)
mov    -0x20(%rbp),%rax
movss  0xc(%rax),%xmm0
movss  %xmm0,-0x48(%rbp)
mov    -0x10(%rbp),%rax
movss  (%rax),%xmm0
movss  -0x3c(%rbp),%xmm2
movss  -0x4c(%rbp),%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x4c(%rbp)
mov    -0x10(%rbp),%rax
movss  0x20(%rax),%xmm0
movss  -0x3c(%rbp),%xmm2
movss  -0x50(%rbp),%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x50(%rbp)
mov    -0x10(%rbp),%rax
movss  0x40(%rax),%xmm0
movss  -0x3c(%rbp),%xmm2
movss  -0x54(%rbp),%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x54(%rbp)
mov    -0x10(%rbp),%rax
movss  0x60(%rax),%xmm0
movss  -0x3c(%rbp),%xmm2
movss  -0x58(%rbp),%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x58(%rbp)
mov    -0x10(%rbp),%rax
movss  0x4(%rax),%xmm0
movss  -0x40(%rbp),%xmm2
movss  -0x4c(%rbp),%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x4c(%rbp)
mov    -0x10(%rbp),%rax
movss  0x24(%rax),%xmm0
movss  -0x40(%rbp),%xmm2
movss  -0x50(%rbp),%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x50(%rbp)
mov    -0x10(%rbp),%rax
movss  0x44(%rax),%xmm0
movss  -0x40(%rbp),%xmm2
movss  -0x54(%rbp),%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x54(%rbp)
mov    -0x10(%rbp),%rax
movss  0x64(%rax),%xmm0
movss  -0x40(%rbp),%xmm2
movss  -0x58(%rbp),%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x58(%rbp)
mov    -0x10(%rbp),%rax
movss  0x8(%rax),%xmm0
movss  -0x44(%rbp),%xmm2
movss  -0x4c(%rbp),%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x4c(%rbp)
mov    -0x10(%rbp),%rax
movss  0x28(%rax),%xmm0
movss  -0x44(%rbp),%xmm2
movss  -0x50(%rbp),%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x50(%rbp)
mov    -0x10(%rbp),%rax
movss  0x48(%rax),%xmm0
movss  -0x44(%rbp),%xmm2
movss  -0x54(%rbp),%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x54(%rbp)
mov    -0x10(%rbp),%rax
movss  0x68(%rax),%xmm0
movss  -0x44(%rbp),%xmm2
movss  -0x58(%rbp),%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x58(%rbp)
mov    -0x10(%rbp),%rax
movss  0xc(%rax),%xmm0
movss  -0x48(%rbp),%xmm2
movss  -0x4c(%rbp),%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x4c(%rbp)
mov    -0x10(%rbp),%rax
movss  0x2c(%rax),%xmm0
movss  -0x48(%rbp),%xmm2
movss  -0x50(%rbp),%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x50(%rbp)
mov    -0x10(%rbp),%rax
movss  0x4c(%rax),%xmm0
movss  -0x48(%rbp),%xmm2
movss  -0x54(%rbp),%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x54(%rbp)
mov    -0x10(%rbp),%rax
movss  0x6c(%rax),%xmm0
movss  -0x48(%rbp),%xmm2
movss  -0x58(%rbp),%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x58(%rbp)
mov    -0x20(%rbp),%rax
movss  0x10(%rax),%xmm0
movss  %xmm0,-0x3c(%rbp)
mov    -0x20(%rbp),%rax
movss  0x14(%rax),%xmm0
movss  %xmm0,-0x40(%rbp)
mov    -0x20(%rbp),%rax
movss  0x18(%rax),%xmm0
movss  %xmm0,-0x44(%rbp)
mov    -0x20(%rbp),%rax
movss  0x1c(%rax),%xmm0
movss  %xmm0,-0x48(%rbp)
mov    -0x10(%rbp),%rax
movss  0x10(%rax),%xmm0
movss  -0x3c(%rbp),%xmm2
movss  -0x4c(%rbp),%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x4c(%rbp)
mov    -0x10(%rbp),%rax
movss  0x30(%rax),%xmm0
movss  -0x3c(%rbp),%xmm2
movss  -0x50(%rbp),%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x50(%rbp)
mov    -0x10(%rbp),%rax
movss  0x50(%rax),%xmm0
movss  -0x3c(%rbp),%xmm2
movss  -0x54(%rbp),%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x54(%rbp)
mov    -0x10(%rbp),%rax
movss  0x70(%rax),%xmm0
movss  -0x3c(%rbp),%xmm2
movss  -0x58(%rbp),%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x58(%rbp)
mov    -0x10(%rbp),%rax
movss  0x14(%rax),%xmm0
movss  -0x40(%rbp),%xmm2
movss  -0x4c(%rbp),%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x4c(%rbp)
mov    -0x10(%rbp),%rax
movss  0x34(%rax),%xmm0
movss  -0x40(%rbp),%xmm2
movss  -0x50(%rbp),%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x50(%rbp)
mov    -0x10(%rbp),%rax
movss  0x54(%rax),%xmm0
movss  -0x40(%rbp),%xmm2
movss  -0x54(%rbp),%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x54(%rbp)
mov    -0x10(%rbp),%rax
movss  0x74(%rax),%xmm0
movss  -0x40(%rbp),%xmm2
movss  -0x58(%rbp),%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x58(%rbp)
mov    -0x10(%rbp),%rax
movss  0x18(%rax),%xmm0
movss  -0x44(%rbp),%xmm2
movss  -0x4c(%rbp),%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x4c(%rbp)
mov    -0x10(%rbp),%rax
movss  0x38(%rax),%xmm0
movss  -0x44(%rbp),%xmm2
movss  -0x50(%rbp),%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x50(%rbp)
mov    -0x10(%rbp),%rax
movss  0x58(%rax),%xmm0
movss  -0x44(%rbp),%xmm2
movss  -0x54(%rbp),%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x54(%rbp)
mov    -0x10(%rbp),%rax
movss  0x78(%rax),%xmm0
movss  -0x44(%rbp),%xmm2
movss  -0x58(%rbp),%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x58(%rbp)
mov    -0x10(%rbp),%rax
movss  0x1c(%rax),%xmm0
movss  -0x48(%rbp),%xmm2
movss  -0x4c(%rbp),%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x4c(%rbp)
mov    -0x10(%rbp),%rax
movss  0x3c(%rax),%xmm0
movss  -0x48(%rbp),%xmm2
movss  -0x50(%rbp),%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x50(%rbp)
mov    -0x10(%rbp),%rax
movss  0x5c(%rax),%xmm0
movss  -0x48(%rbp),%xmm2
movss  -0x54(%rbp),%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x54(%rbp)
mov    -0x10(%rbp),%rax
movss  0x7c(%rax),%xmm0
movss  -0x48(%rbp),%xmm2
movss  -0x58(%rbp),%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x58(%rbp)
mov    -0x14(%rbp),%ecx
shl    $0x3,%ecx
mov    -0x10(%rbp),%rax
movslq %ecx,%rcx
shl    $0x2,%rcx
add    %rcx,%rax
mov    %rax,-0x10(%rbp)
mov    -0x20(%rbp),%rax
add    $0x20,%rax
mov    %rax,-0x20(%rbp)
mov    -0x34(%rbp),%eax
add    $0x8,%eax
mov    %eax,-0x34(%rbp)
jmp    1253 <kernel_sgemv_t_4_lib8+0x153>
jmp    170c <kernel_sgemv_t_4_lib8+0x60c>
mov    -0x34(%rbp),%eax
cmp    -0x38(%rbp),%eax
jge    17ca <kernel_sgemv_t_4_lib8+0x6ca>
mov    -0x20(%rbp),%rax
movss  (%rax),%xmm0
movss  %xmm0,-0x3c(%rbp)
mov    -0x10(%rbp),%rax
movss  (%rax),%xmm0
movss  -0x3c(%rbp),%xmm2
movss  -0x4c(%rbp),%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x4c(%rbp)
mov    -0x10(%rbp),%rax
movss  0x20(%rax),%xmm0
movss  -0x3c(%rbp),%xmm2
movss  -0x50(%rbp),%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x50(%rbp)
mov    -0x10(%rbp),%rax
movss  0x40(%rax),%xmm0
movss  -0x3c(%rbp),%xmm2
movss  -0x54(%rbp),%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x54(%rbp)
mov    -0x10(%rbp),%rax
movss  0x60(%rax),%xmm0
movss  -0x3c(%rbp),%xmm2
movss  -0x58(%rbp),%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x58(%rbp)
mov    -0x10(%rbp),%rax
add    $0x4,%rax
mov    %rax,-0x10(%rbp)
mov    -0x20(%rbp),%rax
add    $0x4,%rax
mov    %rax,-0x20(%rbp)
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    170c <kernel_sgemv_t_4_lib8+0x60c>
cmpl   $0x0,0x10(%rbp)
jne    1810 <kernel_sgemv_t_4_lib8+0x710>
movss  -0x4c(%rbp),%xmm0
mov    -0x28(%rbp),%rax
movss  %xmm0,(%rax)
movss  -0x50(%rbp),%xmm0
mov    -0x28(%rbp),%rax
movss  %xmm0,0x4(%rax)
movss  -0x54(%rbp),%xmm0
mov    -0x28(%rbp),%rax
movss  %xmm0,0x8(%rax)
movss  -0x58(%rbp),%xmm0
mov    -0x28(%rbp),%rax
movss  %xmm0,0xc(%rax)
jmp    18c8 <kernel_sgemv_t_4_lib8+0x7c8>
cmpl   $0x1,0x10(%rbp)
jne    1869 <kernel_sgemv_t_4_lib8+0x769>
movss  -0x4c(%rbp),%xmm0
mov    -0x28(%rbp),%rax
addss  (%rax),%xmm0
movss  %xmm0,(%rax)
movss  -0x50(%rbp),%xmm0
mov    -0x28(%rbp),%rax
addss  0x4(%rax),%xmm0
movss  %xmm0,0x4(%rax)
movss  -0x54(%rbp),%xmm0
mov    -0x28(%rbp),%rax
addss  0x8(%rax),%xmm0
movss  %xmm0,0x8(%rax)
movss  -0x58(%rbp),%xmm0
mov    -0x28(%rbp),%rax
addss  0xc(%rax),%xmm0
movss  %xmm0,0xc(%rax)
jmp    18c3 <kernel_sgemv_t_4_lib8+0x7c3>
movss  -0x4c(%rbp),%xmm1
mov    -0x28(%rbp),%rax
movss  (%rax),%xmm0
subss  %xmm1,%xmm0
movss  %xmm0,(%rax)
movss  -0x50(%rbp),%xmm1
mov    -0x28(%rbp),%rax
movss  0x4(%rax),%xmm0
subss  %xmm1,%xmm0
movss  %xmm0,0x4(%rax)
movss  -0x54(%rbp),%xmm1
mov    -0x28(%rbp),%rax
movss  0x8(%rax),%xmm0
subss  %xmm1,%xmm0
movss  %xmm0,0x8(%rax)
movss  -0x58(%rbp),%xmm1
mov    -0x28(%rbp),%rax
movss  0xc(%rax),%xmm0
subss  %xmm1,%xmm0
movss  %xmm0,0xc(%rax)
jmp    18c8 <kernel_sgemv_t_4_lib8+0x7c8>
pop    %rbp
ret

x86 assembly (clang, -O2):
<kernel_sgemv_t_4_lib8>:
test   %edi,%edi
jle    139e <kernel_sgemv_t_4_lib8+0x29e>
sub    %esi,%edi
test   %esi,%esi
jle    117c <kernel_sgemv_t_4_lib8+0x7c>
mov    %esi,%r10d
xorps  %xmm2,%xmm2
xor    %esi,%esi
xor    %eax,%eax
nopl   0x0(%rax,%rax,1)
movaps %xmm2,%xmm1
movss  (%rdx,%rsi,4),%xmm2
movss  0x20(%rdx,%rsi,4),%xmm0
unpcklps %xmm0,%xmm2
movss  0x40(%rdx,%rsi,4),%xmm0
movss  0x60(%rdx,%rsi,4),%xmm3
unpcklps %xmm3,%xmm0
movlhps %xmm0,%xmm2
movss  (%r8,%rsi,4),%xmm0
shufps $0x0,%xmm0,%xmm0
mulps  %xmm2,%xmm0
movaps %xmm0,%xmm2
addps  %xmm1,%xmm2
add    $0xfffffffffffffffc,%rax
add    $0x1,%rsi
cmp    %esi,%r10d
jne    1120 <kernel_sgemv_t_4_lib8+0x20>
addps  %xmm1,%xmm0
lea    -0x8(,%rcx,8),%esi
movslq %esi,%rsi
lea    (%rdx,%rsi,4),%rdx
sub    %rax,%rdx
sub    %rax,%r8
jmp    117f <kernel_sgemv_t_4_lib8+0x7f>
xorps  %xmm0,%xmm0
xor    %eax,%eax
cmp    $0x8,%edi
jl     131c <kernel_sgemv_t_4_lib8+0x21c>
lea    -0x7(%rdi),%esi
shl    $0x3,%ecx
movslq %ecx,%rcx
shl    $0x2,%rcx
xor    %eax,%eax
nopl   0x0(%rax)
movss  0x60(%rdx),%xmm1
movss  0x40(%rdx),%xmm2
unpcklps %xmm1,%xmm2
movss  0x20(%rdx),%xmm1
movss  (%rdx),%xmm6
unpcklps %xmm1,%xmm6
movlhps %xmm2,%xmm6
movss  0x4(%rdx),%xmm7
movss  0x8(%rdx),%xmm4
movss  0xc(%rdx),%xmm8
movss  (%r8),%xmm2
movss  0x4(%r8),%xmm5
movss  0x8(%r8),%xmm3
movss  0xc(%r8),%xmm1
shufps $0x0,%xmm2,%xmm2
mulps  %xmm6,%xmm2
addps  %xmm0,%xmm2
movss  0x64(%rdx),%xmm0
movss  0x44(%rdx),%xmm6
unpcklps %xmm0,%xmm6
movss  0x24(%rdx),%xmm0
unpcklps %xmm0,%xmm7
movlhps %xmm6,%xmm7
shufps $0x0,%xmm5,%xmm5
mulps  %xmm7,%xmm5
addps  %xmm2,%xmm5
movss  0x68(%rdx),%xmm0
movss  0x48(%rdx),%xmm2
unpcklps %xmm0,%xmm2
movss  0x28(%rdx),%xmm0
unpcklps %xmm0,%xmm4
movlhps %xmm2,%xmm4
shufps $0x0,%xmm3,%xmm3
mulps  %xmm4,%xmm3
addps  %xmm5,%xmm3
movss  0x6c(%rdx),%xmm0
movss  0x4c(%rdx),%xmm2
unpcklps %xmm0,%xmm2
movss  0x2c(%rdx),%xmm0
unpcklps %xmm0,%xmm8
movlhps %xmm2,%xmm8
shufps $0x0,%xmm1,%xmm1
mulps  %xmm8,%xmm1
addps  %xmm3,%xmm1
movss  0x70(%rdx),%xmm0
movss  0x50(%rdx),%xmm2
unpcklps %xmm0,%xmm2
movss  0x30(%rdx),%xmm0
movss  0x10(%rdx),%xmm3
unpcklps %xmm0,%xmm3
movlhps %xmm2,%xmm3
movss  0x10(%r8),%xmm0
shufps $0x0,%xmm0,%xmm0
mulps  %xmm3,%xmm0
addps  %xmm1,%xmm0
movss  0x74(%rdx),%xmm1
movss  0x54(%rdx),%xmm2
unpcklps %xmm1,%xmm2
movss  0x34(%rdx),%xmm1
movss  0x14(%rdx),%xmm3
unpcklps %xmm1,%xmm3
movlhps %xmm2,%xmm3
movss  0x14(%r8),%xmm1
shufps $0x0,%xmm1,%xmm1
mulps  %xmm3,%xmm1
addps  %xmm0,%xmm1
movss  0x78(%rdx),%xmm0
movss  0x58(%rdx),%xmm2
unpcklps %xmm0,%xmm2
movss  0x38(%rdx),%xmm0
movss  0x18(%rdx),%xmm3
unpcklps %xmm0,%xmm3
movlhps %xmm2,%xmm3
movss  0x18(%r8),%xmm2
shufps $0x0,%xmm2,%xmm2
mulps  %xmm3,%xmm2
addps  %xmm1,%xmm2
movss  0x7c(%rdx),%xmm0
movss  0x5c(%rdx),%xmm1
unpcklps %xmm0,%xmm1
movss  0x3c(%rdx),%xmm0
movss  0x1c(%rdx),%xmm3
unpcklps %xmm0,%xmm3
movlhps %xmm1,%xmm3
movss  0x1c(%r8),%xmm0
shufps $0x0,%xmm0,%xmm0
mulps  %xmm3,%xmm0
addps  %xmm2,%xmm0
add    $0x20,%r8
add    $0x8,%eax
add    %rcx,%rdx
cmp    %esi,%eax
jl     11a0 <kernel_sgemv_t_4_lib8+0xa0>
mov    0x8(%rsp),%r10d
cmp    %edi,%eax
jge    1377 <kernel_sgemv_t_4_lib8+0x277>
mov    %eax,%eax
xor    %esi,%esi
nopl   0x0(%rax)
movaps %xmm0,%xmm1
movss  (%rdx,%rsi,4),%xmm0
movss  0x20(%rdx,%rsi,4),%xmm2
unpcklps %xmm2,%xmm0
movss  0x40(%rdx,%rsi,4),%xmm2
movss  0x60(%rdx,%rsi,4),%xmm3
unpcklps %xmm3,%xmm2
movlhps %xmm2,%xmm0
movss  (%r8,%rsi,4),%xmm2
shufps $0x0,%xmm2,%xmm2
mulps  %xmm0,%xmm2
movaps %xmm2,%xmm0
addps  %xmm1,%xmm0
add    $0x1,%rsi
lea    (%rax,%rsi,1),%ecx
cmp    %edi,%ecx
jl     1330 <kernel_sgemv_t_4_lib8+0x230>
addps  %xmm1,%xmm2
movaps %xmm2,%xmm0
cmp    $0x1,%r10d
je     1387 <kernel_sgemv_t_4_lib8+0x287>
test   %r10d,%r10d
jne    1393 <kernel_sgemv_t_4_lib8+0x293>
movups %xmm0,(%r9)
ret
movups (%r9),%xmm1
addps  %xmm1,%xmm0
movups %xmm0,(%r9)
ret
movups (%r9),%xmm1
subps  %xmm0,%xmm1
movups %xmm1,(%r9)
ret

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

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