void dmatvec2(int lda, int m, int n, double *A, double *x0, double *x1,
              double *y0, double *y1) {
  register double v00, v10, v20, v30, v40, v50, v60, v70, v01, v11, v21, v31,
      v41, v51, v61, v71;
  register double t0, t1, t2, t3, t4, t5, t6, t7;
  register double f0, f1;
  double *Mki0, *Mki1, *Mki2, *Mki3, *Mki4, *Mki5, *Mki6, *Mki7;
  register int firstcol = 0;
  double *M0;
  int k;
  M0 = &A[0];
  while (firstcol < n - 7) {
    Mki0 = M0;
    Mki1 = Mki0 + lda;
    Mki2 = Mki1 + lda;
    Mki3 = Mki2 + lda;
    Mki4 = Mki3 + lda;
    Mki5 = Mki4 + lda;
    Mki6 = Mki5 + lda;
    Mki7 = Mki6 + lda;
    v00 = x0[firstcol];
    v01 = x1[firstcol++];
    v10 = x0[firstcol];
    v11 = x1[firstcol++];
    v20 = x0[firstcol];
    v21 = x1[firstcol++];
    v30 = x0[firstcol];
    v31 = x1[firstcol++];
    v40 = x0[firstcol];
    v41 = x1[firstcol++];
    v50 = x0[firstcol];
    v51 = x1[firstcol++];
    v60 = x0[firstcol];
    v61 = x1[firstcol++];
    v70 = x0[firstcol];
    v71 = x1[firstcol++];
    for (k = 0; k < m; k++) {
      f0 = y0[k];
      f1 = y1[k];
      t0 = Mki0[k];
      f0 += v00 * t0;
      f1 += v01 * t0;
      t1 = Mki1[k];
      f0 += v10 * t1;
      f1 += v11 * t1;
      t2 = Mki2[k];
      f0 += v20 * t2;
      f1 += v21 * t2;
      t3 = Mki3[k];
      f0 += v30 * t3;
      f1 += v31 * t3;
      t4 = Mki4[k];
      f0 += v40 * t4;
      f1 += v41 * t4;
      t5 = Mki5[k];
      f0 += v50 * t5;
      f1 += v51 * t5;
      t6 = Mki6[k];
      f0 += v60 * t6;
      f1 += v61 * t6;
      t7 = Mki7[k];
      f0 += v70 * t7;
      f1 += v71 * t7;
      y0[k] = f0;
      y1[k] = f1;
    }
    M0 += 8 * lda;
  }
  while (firstcol < n - 3) {
    Mki0 = M0;
    Mki1 = Mki0 + lda;
    Mki2 = Mki1 + lda;
    Mki3 = Mki2 + lda;
    v00 = x0[firstcol];
    v01 = x1[firstcol++];
    v10 = x0[firstcol];
    v11 = x1[firstcol++];
    v20 = x0[firstcol];
    v21 = x1[firstcol++];
    v30 = x0[firstcol];
    v31 = x1[firstcol++];
    for (k = 0; k < m; k++) {
      f0 = y0[k];
      f1 = y1[k];
      t0 = Mki0[k];
      f0 += v00 * t0;
      f1 += v01 * t0;
      t1 = Mki1[k];
      f0 += v10 * t1;
      f1 += v11 * t1;
      t2 = Mki2[k];
      f0 += v20 * t2;
      f1 += v21 * t2;
      t3 = Mki3[k];
      f0 += v30 * t3;
      f1 += v31 * t3;
      y0[k] = f0;
      y1[k] = f1;
    }
    M0 += 4 * lda;
  }
  while (firstcol < n) {
    Mki0 = M0;
    v00 = x0[firstcol];
    v01 = x1[firstcol++];
    for (k = 0; k < m; k++) {
      f0 = y0[k];
      f1 = y1[k];
      t0 = Mki0[k];
      f0 += v00 * t0;
      f1 += v01 * t0;
      y0[k] = f0;
      y1[k] = f1;
    }
    M0 += lda;
  }
}


x86 assembly (clang, -O0):
<dmatvec2>:
push   %rbp
mov    %rsp,%rbp
sub    $0xd0,%rsp
mov    0x18(%rbp),%rax
mov    0x10(%rbp),%rax
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    %rcx,-0x18(%rbp)
mov    %r8,-0x20(%rbp)
mov    %r9,-0x28(%rbp)
movl   $0x0,-0x13c(%rbp)
mov    -0x18(%rbp),%rax
mov    %rax,-0x148(%rbp)
mov    -0x13c(%rbp),%eax
mov    -0xc(%rbp),%ecx
sub    $0x7,%ecx
cmp    %ecx,%eax
jge    17bc <dmatvec2+0x6bc>
mov    -0x148(%rbp),%rax
mov    %rax,-0x100(%rbp)
mov    -0x100(%rbp),%rax
movslq -0x4(%rbp),%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x108(%rbp)
mov    -0x108(%rbp),%rax
movslq -0x4(%rbp),%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x110(%rbp)
mov    -0x110(%rbp),%rax
movslq -0x4(%rbp),%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x118(%rbp)
mov    -0x118(%rbp),%rax
movslq -0x4(%rbp),%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x120(%rbp)
mov    -0x120(%rbp),%rax
movslq -0x4(%rbp),%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x128(%rbp)
mov    -0x128(%rbp),%rax
movslq -0x4(%rbp),%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x130(%rbp)
mov    -0x130(%rbp),%rax
movslq -0x4(%rbp),%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x138(%rbp)
mov    -0x20(%rbp),%rax
movslq -0x13c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x30(%rbp)
mov    -0x28(%rbp),%rax
mov    -0x13c(%rbp),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,-0x13c(%rbp)
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x70(%rbp)
mov    -0x20(%rbp),%rax
movslq -0x13c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x38(%rbp)
mov    -0x28(%rbp),%rax
mov    -0x13c(%rbp),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,-0x13c(%rbp)
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x78(%rbp)
mov    -0x20(%rbp),%rax
movslq -0x13c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x40(%rbp)
mov    -0x28(%rbp),%rax
mov    -0x13c(%rbp),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,-0x13c(%rbp)
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x80(%rbp)
mov    -0x20(%rbp),%rax
movslq -0x13c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x48(%rbp)
mov    -0x28(%rbp),%rax
mov    -0x13c(%rbp),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,-0x13c(%rbp)
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
mov    -0x20(%rbp),%rax
movslq -0x13c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x50(%rbp)
mov    -0x28(%rbp),%rax
mov    -0x13c(%rbp),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,-0x13c(%rbp)
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
mov    -0x20(%rbp),%rax
movslq -0x13c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    -0x28(%rbp),%rax
mov    -0x13c(%rbp),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,-0x13c(%rbp)
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x98(%rbp)
ff
mov    -0x20(%rbp),%rax
movslq -0x13c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x60(%rbp)
mov    -0x28(%rbp),%rax
mov    -0x13c(%rbp),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,-0x13c(%rbp)
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0xa0(%rbp)
ff
mov    -0x20(%rbp),%rax
movslq -0x13c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x68(%rbp)
mov    -0x28(%rbp),%rax
mov    -0x13c(%rbp),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,-0x13c(%rbp)
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0xa8(%rbp)
ff
movl   $0x0,-0x14c(%rbp)
mov    -0x14c(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    1799 <dmatvec2+0x699>
mov    0x10(%rbp),%rax
movslq -0x14c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0xf0(%rbp)
ff
mov    0x18(%rbp),%rax
movslq -0x14c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0xf8(%rbp)
ff
mov    -0x100(%rbp),%rax
movslq -0x14c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0xb0(%rbp)
ff
movsd  -0x30(%rbp),%xmm0
movsd  -0xb0(%rbp),%xmm2
ff
movsd  -0xf0(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xf0(%rbp)
ff
movsd  -0x70(%rbp),%xmm0
movsd  -0xb0(%rbp),%xmm2
ff
movsd  -0xf8(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xf8(%rbp)
ff
mov    -0x108(%rbp),%rax
movslq -0x14c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0xb8(%rbp)
ff
movsd  -0x38(%rbp),%xmm0
movsd  -0xb8(%rbp),%xmm2
ff
movsd  -0xf0(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xf0(%rbp)
ff
movsd  -0x78(%rbp),%xmm0
movsd  -0xb8(%rbp),%xmm2
ff
movsd  -0xf8(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xf8(%rbp)
ff
mov    -0x110(%rbp),%rax
movslq -0x14c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0xc0(%rbp)
ff
movsd  -0x40(%rbp),%xmm0
movsd  -0xc0(%rbp),%xmm2
ff
movsd  -0xf0(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xf0(%rbp)
ff
movsd  -0x80(%rbp),%xmm0
movsd  -0xc0(%rbp),%xmm2
ff
movsd  -0xf8(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xf8(%rbp)
ff
mov    -0x118(%rbp),%rax
movslq -0x14c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0xc8(%rbp)
ff
movsd  -0x48(%rbp),%xmm0
movsd  -0xc8(%rbp),%xmm2
ff
movsd  -0xf0(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xf0(%rbp)
ff
movsd  -0x88(%rbp),%xmm0
ff
movsd  -0xc8(%rbp),%xmm2
ff
movsd  -0xf8(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xf8(%rbp)
ff
mov    -0x120(%rbp),%rax
movslq -0x14c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0xd0(%rbp)
ff
movsd  -0x50(%rbp),%xmm0
movsd  -0xd0(%rbp),%xmm2
ff
movsd  -0xf0(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xf0(%rbp)
ff
movsd  -0x90(%rbp),%xmm0
ff
movsd  -0xd0(%rbp),%xmm2
ff
movsd  -0xf8(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xf8(%rbp)
ff
mov    -0x128(%rbp),%rax
movslq -0x14c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0xd8(%rbp)
ff
movsd  -0x58(%rbp),%xmm0
movsd  -0xd8(%rbp),%xmm2
ff
movsd  -0xf0(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xf0(%rbp)
ff
movsd  -0x98(%rbp),%xmm0
ff
movsd  -0xd8(%rbp),%xmm2
ff
movsd  -0xf8(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xf8(%rbp)
ff
mov    -0x130(%rbp),%rax
movslq -0x14c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0xe0(%rbp)
ff
movsd  -0x60(%rbp),%xmm0
movsd  -0xe0(%rbp),%xmm2
ff
movsd  -0xf0(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xf0(%rbp)
ff
movsd  -0xa0(%rbp),%xmm0
ff
movsd  -0xe0(%rbp),%xmm2
ff
movsd  -0xf8(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xf8(%rbp)
ff
mov    -0x138(%rbp),%rax
movslq -0x14c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0xe8(%rbp)
ff
movsd  -0x68(%rbp),%xmm0
movsd  -0xe8(%rbp),%xmm2
ff
movsd  -0xf0(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xf0(%rbp)
ff
movsd  -0xa8(%rbp),%xmm0
ff
movsd  -0xe8(%rbp),%xmm2
ff
movsd  -0xf8(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xf8(%rbp)
ff
movsd  -0xf0(%rbp),%xmm0
ff
mov    0x10(%rbp),%rax
movslq -0x14c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0xf8(%rbp),%xmm0
ff
mov    0x18(%rbp),%rax
movslq -0x14c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x14c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14c(%rbp)
jmp    13df <dmatvec2+0x2df>
mov    -0x4(%rbp),%ecx
shl    $0x3,%ecx
mov    -0x148(%rbp),%rax
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x148(%rbp)
jmp    113d <dmatvec2+0x3d>
jmp    17c1 <dmatvec2+0x6c1>
mov    -0x13c(%rbp),%eax
mov    -0xc(%rbp),%ecx
sub    $0x3,%ecx
cmp    %ecx,%eax
jge    1b54 <dmatvec2+0xa54>
mov    -0x148(%rbp),%rax
mov    %rax,-0x100(%rbp)
mov    -0x100(%rbp),%rax
movslq -0x4(%rbp),%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x108(%rbp)
mov    -0x108(%rbp),%rax
movslq -0x4(%rbp),%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x110(%rbp)
mov    -0x110(%rbp),%rax
movslq -0x4(%rbp),%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x118(%rbp)
mov    -0x20(%rbp),%rax
movslq -0x13c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x30(%rbp)
mov    -0x28(%rbp),%rax
mov    -0x13c(%rbp),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,-0x13c(%rbp)
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x70(%rbp)
mov    -0x20(%rbp),%rax
movslq -0x13c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x38(%rbp)
mov    -0x28(%rbp),%rax
mov    -0x13c(%rbp),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,-0x13c(%rbp)
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x78(%rbp)
mov    -0x20(%rbp),%rax
movslq -0x13c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x40(%rbp)
mov    -0x28(%rbp),%rax
mov    -0x13c(%rbp),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,-0x13c(%rbp)
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x80(%rbp)
mov    -0x20(%rbp),%rax
movslq -0x13c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x48(%rbp)
mov    -0x28(%rbp),%rax
mov    -0x13c(%rbp),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,-0x13c(%rbp)
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
movl   $0x0,-0x14c(%rbp)
mov    -0x14c(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    1b31 <dmatvec2+0xa31>
mov    0x10(%rbp),%rax
movslq -0x14c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0xf0(%rbp)
ff
mov    0x18(%rbp),%rax
movslq -0x14c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0xf8(%rbp)
ff
mov    -0x100(%rbp),%rax
movslq -0x14c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0xb0(%rbp)
ff
movsd  -0x30(%rbp),%xmm0
movsd  -0xb0(%rbp),%xmm2
ff
movsd  -0xf0(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xf0(%rbp)
ff
movsd  -0x70(%rbp),%xmm0
movsd  -0xb0(%rbp),%xmm2
ff
movsd  -0xf8(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xf8(%rbp)
ff
mov    -0x108(%rbp),%rax
movslq -0x14c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0xb8(%rbp)
ff
movsd  -0x38(%rbp),%xmm0
movsd  -0xb8(%rbp),%xmm2
ff
movsd  -0xf0(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xf0(%rbp)
ff
movsd  -0x78(%rbp),%xmm0
movsd  -0xb8(%rbp),%xmm2
ff
movsd  -0xf8(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xf8(%rbp)
ff
mov    -0x110(%rbp),%rax
movslq -0x14c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0xc0(%rbp)
ff
movsd  -0x40(%rbp),%xmm0
movsd  -0xc0(%rbp),%xmm2
ff
movsd  -0xf0(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xf0(%rbp)
ff
movsd  -0x80(%rbp),%xmm0
movsd  -0xc0(%rbp),%xmm2
ff
movsd  -0xf8(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xf8(%rbp)
ff
mov    -0x118(%rbp),%rax
movslq -0x14c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0xc8(%rbp)
ff
movsd  -0x48(%rbp),%xmm0
movsd  -0xc8(%rbp),%xmm2
ff
movsd  -0xf0(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xf0(%rbp)
ff
movsd  -0x88(%rbp),%xmm0
ff
movsd  -0xc8(%rbp),%xmm2
ff
movsd  -0xf8(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xf8(%rbp)
ff
movsd  -0xf0(%rbp),%xmm0
ff
mov    0x10(%rbp),%rax
movslq -0x14c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0xf8(%rbp),%xmm0
ff
mov    0x18(%rbp),%rax
movslq -0x14c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x14c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14c(%rbp)
jmp    1917 <dmatvec2+0x817>
mov    -0x4(%rbp),%ecx
shl    $0x2,%ecx
mov    -0x148(%rbp),%rax
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x148(%rbp)
jmp    17c1 <dmatvec2+0x6c1>
jmp    1b59 <dmatvec2+0xa59>
mov    -0x13c(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    1cbf <dmatvec2+0xbbf>
mov    -0x148(%rbp),%rax
mov    %rax,-0x100(%rbp)
mov    -0x20(%rbp),%rax
movslq -0x13c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x30(%rbp)
mov    -0x28(%rbp),%rax
mov    -0x13c(%rbp),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,-0x13c(%rbp)
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x70(%rbp)
movl   $0x0,-0x14c(%rbp)
mov    -0x14c(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    1c9f <dmatvec2+0xb9f>
mov    0x10(%rbp),%rax
movslq -0x14c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0xf0(%rbp)
ff
mov    0x18(%rbp),%rax
movslq -0x14c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0xf8(%rbp)
ff
mov    -0x100(%rbp),%rax
movslq -0x14c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0xb0(%rbp)
ff
movsd  -0x30(%rbp),%xmm0
movsd  -0xb0(%rbp),%xmm2
ff
movsd  -0xf0(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xf0(%rbp)
ff
movsd  -0x70(%rbp),%xmm0
movsd  -0xb0(%rbp),%xmm2
ff
movsd  -0xf8(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xf8(%rbp)
ff
movsd  -0xf0(%rbp),%xmm0
ff
mov    0x10(%rbp),%rax
movslq -0x14c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0xf8(%rbp),%xmm0
ff
mov    0x18(%rbp),%rax
movslq -0x14c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x14c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14c(%rbp)
jmp    1bb7 <dmatvec2+0xab7>
mov    -0x4(%rbp),%ecx
mov    -0x148(%rbp),%rax
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x148(%rbp)
jmp    1b59 <dmatvec2+0xa59>
add    $0xd0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<dmatvec2>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
mov    %r9,-0x50(%rsp)
mov    %r8,-0x58(%rsp)
mov    %rcx,%r13
mov    %esi,%r11d
mov    0x40(%rsp),%r10
mov    0x38(%rsp),%rax
xor    %r8d,%r8d
movslq %edi,%rdi
mov    %esi,%ecx
mov    %rcx,-0x80(%rsp)
cmp    $0x8,%edx
mov    %rdx,-0x60(%rsp)
mov    %esi,-0x64(%rsp)
jl     13ac <dmatvec2+0x2ac>
lea    -0x7(%rdx),%ecx
mov    %rcx,-0x18(%rsp)
lea    0x0(,%rdi,8),%ecx
movslq %ecx,%rcx
shl    $0x3,%rcx
mov    %rcx,-0x20(%rsp)
lea    0x0(,%rdi,8),%rcx
xor    %edx,%edx
jmp    1183 <dmatvec2+0x83>
nopw   0x0(%rax,%rax,1)
add    -0x20(%rsp),%r13
mov    %r8,%rdx
cmp    -0x18(%rsp),%r8
jae    13a7 <dmatvec2+0x2a7>
lea    0x8(%rdx),%r8
test   %r11d,%r11d
jle    1170 <dmatvec2+0x70>
lea    0x0(,%rdx,8),%rbx
mov    %rbx,%rbp
or     $0x8,%rbp
mov    %rbx,%rsi
or     $0x10,%rsi
mov    %rbx,%r12
or     $0x18,%r12
mov    %rbx,%r14
or     $0x20,%r14
mov    %rbx,%r15
or     $0x28,%r15
mov    %rbx,%r9
or     $0x30,%r9
or     $0x38,%rbx
mov    -0x58(%rsp),%r11
movsd  (%r11,%rdx,8),%xmm0
movsd  %xmm0,-0x70(%rsp)
mov    %r8,-0x10(%rsp)
mov    -0x50(%rsp),%r8
movsd  (%r8,%rdx,8),%xmm0
movsd  %xmm0,-0x78(%rsp)
movsd  (%r11,%rbp,1),%xmm0
movsd  %xmm0,-0x28(%rsp)
movsd  (%r8,%rbp,1),%xmm0
movsd  %xmm0,-0x30(%rsp)
movsd  (%r11,%rsi,1),%xmm0
movsd  %xmm0,-0x38(%rsp)
movsd  (%r8,%rsi,1),%xmm0
movsd  %xmm0,-0x40(%rsp)
movsd  (%r11,%r12,1),%xmm0
movsd  %xmm0,-0x48(%rsp)
movsd  (%r8,%r12,1),%xmm0
movsd  %xmm0,-0x8(%rsp)
mov    -0x80(%rsp),%rsi
movsd  (%r11,%r14,1),%xmm13
movsd  (%r8,%r14,1),%xmm12
movsd  (%r11,%r15,1),%xmm15
movsd  (%r8,%r15,1),%xmm14
movsd  (%r11,%r9,1),%xmm5
movsd  (%r8,%r9,1),%xmm4
movsd  (%r11,%rbx,1),%xmm7
mov    -0x64(%rsp),%r11d
movsd  (%r8,%rbx,1),%xmm6
mov    -0x10(%rsp),%r8
xor    %edx,%edx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
lea    0x0(,%rdx,8),%rbx
add    %r13,%rbx
movsd  0x0(%r13,%rdx,8),%xmm8
movsd  -0x70(%rsp),%xmm9
mulsd  %xmm8,%xmm9
addsd  (%rax,%rdx,8),%xmm9
mulsd  -0x78(%rsp),%xmm8
addsd  (%r10,%rdx,8),%xmm8
movsd  (%rbx,%rdi,8),%xmm10
add    %rcx,%rbx
movsd  -0x28(%rsp),%xmm11
mulsd  %xmm10,%xmm11
addsd  %xmm9,%xmm11
mulsd  -0x30(%rsp),%xmm10
addsd  %xmm8,%xmm10
movsd  (%rbx,%rdi,8),%xmm0
add    %rcx,%rbx
movsd  -0x38(%rsp),%xmm1
mulsd  %xmm0,%xmm1
addsd  %xmm11,%xmm1
mulsd  -0x40(%rsp),%xmm0
addsd  %xmm10,%xmm0
movsd  (%rbx,%rdi,8),%xmm2
add    %rcx,%rbx
movsd  -0x48(%rsp),%xmm3
mulsd  %xmm2,%xmm3
addsd  %xmm1,%xmm3
mulsd  -0x8(%rsp),%xmm2
addsd  %xmm0,%xmm2
movsd  (%rbx,%rdi,8),%xmm0
add    %rcx,%rbx
movapd %xmm13,%xmm1
mulsd  %xmm0,%xmm1
addsd  %xmm3,%xmm1
mulsd  %xmm12,%xmm0
addsd  %xmm2,%xmm0
movsd  (%rbx,%rdi,8),%xmm2
add    %rcx,%rbx
movapd %xmm15,%xmm3
mulsd  %xmm2,%xmm3
addsd  %xmm1,%xmm3
mulsd  %xmm14,%xmm2
addsd  %xmm0,%xmm2
movsd  (%rbx,%rdi,8),%xmm0
add    %rcx,%rbx
movapd %xmm5,%xmm1
mulsd  %xmm0,%xmm1
addsd  %xmm3,%xmm1
mulsd  %xmm4,%xmm0
addsd  %xmm2,%xmm0
movsd  (%rbx,%rdi,8),%xmm2
movapd %xmm7,%xmm3
mulsd  %xmm2,%xmm3
addsd  %xmm1,%xmm3
mulsd  %xmm6,%xmm2
addsd  %xmm0,%xmm2
movsd  %xmm3,(%rax,%rdx,8)
movsd  %xmm2,(%r10,%rdx,8)
add    $0x1,%rdx
cmp    %rdx,%rsi
jne    1280 <dmatvec2+0x180>
jmp    1170 <dmatvec2+0x70>
mov    -0x60(%rsp),%rdx
lea    -0x3(%rdx),%ecx
cmp    %ecx,%r8d
jge    1530 <dmatvec2+0x430>
lea    0x0(,%rdi,4),%edx
movslq %edx,%rdx
mov    %r8d,%r15d
movslq %ecx,%rcx
mov    %rcx,-0x78(%rsp)
lea    (%rdi,%rdi,2),%rcx
lea    0x0(,%rcx,8),%rbp
add    %r13,%rbp
shl    $0x3,%rdx
mov    %rdx,-0x70(%rsp)
mov    %rdi,%rbx
shl    $0x4,%rbx
add    %r13,%rbx
lea    0x0(,%rdi,8),%rcx
add    %r13,%rcx
mov    -0x80(%rsp),%rdx
lea    0x0(,%rdx,8),%r14
mov    -0x50(%rsp),%rsi
jmp    142f <dmatvec2+0x32f>
xchg   %ax,%ax
mov    -0x70(%rsp),%rdx
add    %rdx,%r13
add    %rdx,%rbp
add    %rdx,%rbx
add    %rdx,%rcx
mov    %r8,%r15
cmp    -0x78(%rsp),%r8
jge    152b <dmatvec2+0x42b>
lea    0x4(%r15),%r8
test   %r11d,%r11d
jle    1410 <dmatvec2+0x310>
mov    %r15d,%edx
shl    $0x3,%rdx
mov    %r8,%r12
mov    %rdx,%r8
or     $0x8,%r8
mov    %rdx,%r9
or     $0x10,%r9
or     $0x18,%rdx
mov    -0x58(%rsp),%r11
movsd  (%r11,%r15,8),%xmm8
movsd  (%rsi,%r15,8),%xmm9
movsd  (%r11,%r8,1),%xmm10
movsd  (%rsi,%r8,1),%xmm11
mov    %r12,%r8
movsd  (%r11,%r9,1),%xmm4
movsd  (%rsi,%r9,1),%xmm5
movsd  (%r11,%rdx,1),%xmm6
mov    -0x64(%rsp),%r11d
movsd  (%rsi,%rdx,1),%xmm7
xor    %edx,%edx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movsd  0x0(%r13,%rdx,1),%xmm0
movapd %xmm8,%xmm1
mulsd  %xmm0,%xmm1
addsd  (%rax,%rdx,1),%xmm1
mulsd  %xmm9,%xmm0
addsd  (%r10,%rdx,1),%xmm0
movsd  (%rcx,%rdx,1),%xmm2
movapd %xmm10,%xmm3
mulsd  %xmm2,%xmm3
addsd  %xmm1,%xmm3
mulsd  %xmm11,%xmm2
addsd  %xmm0,%xmm2
movsd  (%rbx,%rdx,1),%xmm0
movapd %xmm4,%xmm1
mulsd  %xmm0,%xmm1
addsd  %xmm3,%xmm1
mulsd  %xmm5,%xmm0
addsd  %xmm2,%xmm0
movsd  0x0(%rbp,%rdx,1),%xmm2
movapd %xmm6,%xmm3
mulsd  %xmm2,%xmm3
addsd  %xmm1,%xmm3
mulsd  %xmm7,%xmm2
addsd  %xmm0,%xmm2
movsd  %xmm3,(%rax,%rdx,1)
movsd  %xmm2,(%r10,%rdx,1)
add    $0x8,%rdx
cmp    %rdx,%r14
jne    14a0 <dmatvec2+0x3a0>
jmp    1410 <dmatvec2+0x310>
mov    -0x60(%rsp),%rdx
mov    -0x80(%rsp),%r12
cmp    %edx,%r8d
jge    17f3 <dmatvec2+0x6f3>
mov    %r8d,%r9d
lea    (%rax,%r12,8),%rsi
lea    (%r10,%r12,8),%rcx
mov    %r12d,%ebp
and    $0xfffffffe,%ebp
mov    %rbp,-0x30(%rsp)
add    $0xfffffffffffffffe,%rbp
mov    %rbp,-0x38(%rsp)
shr    %rbp
add    $0x1,%rbp
mov    %rcx,-0x78(%rsp)
cmp    %rax,%rcx
seta   %cl
mov    %rsi,-0x70(%rsp)
cmp    %r10,%rsi
seta   %bl
and    %cl,%bl
mov    %bl,-0x28(%rsp)
mov    %rbp,%rcx
mov    %rbp,-0x40(%rsp)
and    $0xfffffffffffffffe,%rbp
mov    %rbp,-0x48(%rsp)
mov    %r12,%r8
neg    %r8
lea    0x0(,%rdi,8),%r14
xor    %r15d,%r15d
mov    %r13,%rcx
jmp    15c0 <dmatvec2+0x4c0>
nopw   0x0(%rax,%rax,1)
add    %r14,%rcx
add    $0x1,%r15
cmp    %edx,%r9d
jge    17f3 <dmatvec2+0x6f3>
mov    %r9,%rbp
add    $0x1,%r9
test   %r11d,%r11d
jle    15b0 <dmatvec2+0x4b0>
mov    -0x58(%rsp),%rsi
movsd  (%rsi,%rbp,8),%xmm0
mov    -0x50(%rsp),%rsi
movsd  (%rsi,%rbp,8),%xmm1
cmp    $0x1,%r11d
jne    15f0 <dmatvec2+0x4f0>
xor    %ebx,%ebx
jmp    1730 <dmatvec2+0x630>
nopl   (%rax)
mov    %r15,%rdx
imul   %rdi,%rdx
add    %r12,%rdx
lea    0x0(,%rdx,8),%rdx
add    %r13,%rdx
cmp    %rax,%rdx
seta   %sil
cmp    -0x70(%rsp),%rcx
setb   %bl
and    %sil,%bl
or     -0x28(%rsp),%bl
cmp    %r10,%rdx
seta   %dl
cmp    -0x78(%rsp),%rcx
setb   %r12b
test   %bl,%bl
jne    1722 <dmatvec2+0x622>
mov    $0x0,%ebx
and    %r12b,%dl
mov    -0x60(%rsp),%rdx
mov    -0x80(%rsp),%r12
jne    1730 <dmatvec2+0x630>
movapd %xmm0,%xmm2
unpcklpd %xmm0,%xmm2
movapd %xmm1,%xmm3
unpcklpd %xmm1,%xmm3
cmpq   $0x0,-0x38(%rsp)
je     17e1 <dmatvec2+0x6e1>
mov    -0x48(%rsp),%rsi
xor    %ebp,%ebp
nopl   (%rax)
movupd (%rax,%rbp,8),%xmm4
movupd (%r10,%rbp,8),%xmm5
movupd (%rcx,%rbp,8),%xmm6
movapd %xmm2,%xmm7
mulpd  %xmm6,%xmm7
addpd  %xmm4,%xmm7
mulpd  %xmm3,%xmm6
addpd  %xmm5,%xmm6
movupd %xmm7,(%rax,%rbp,8)
movupd %xmm6,(%r10,%rbp,8)
movupd 0x10(%rax,%rbp,8),%xmm4
movupd 0x10(%r10,%rbp,8),%xmm5
movupd 0x10(%rcx,%rbp,8),%xmm6
movapd %xmm2,%xmm7
mulpd  %xmm6,%xmm7
addpd  %xmm4,%xmm7
mulpd  %xmm3,%xmm6
addpd  %xmm5,%xmm6
movupd %xmm7,0x10(%rax,%rbp,8)
movupd %xmm6,0x10(%r10,%rbp,8)
add    $0x4,%rbp
add    $0xfffffffffffffffe,%rsi
jne    1670 <dmatvec2+0x570>
testb  $0x1,-0x40(%rsp)
je     170f <dmatvec2+0x60f>
movupd (%rax,%rbp,8),%xmm4
movupd (%r10,%rbp,8),%xmm5
movupd (%rcx,%rbp,8),%xmm6
mulpd  %xmm6,%xmm2
addpd  %xmm4,%xmm2
mulpd  %xmm6,%xmm3
addpd  %xmm5,%xmm3
movupd %xmm2,(%rax,%rbp,8)
movupd %xmm3,(%r10,%rbp,8)
mov    -0x30(%rsp),%rsi
mov    %rsi,%rbx
cmp    %r12,%rsi
je     15b0 <dmatvec2+0x4b0>
jmp    1730 <dmatvec2+0x630>
xor    %ebx,%ebx
mov    -0x60(%rsp),%rdx
mov    -0x80(%rsp),%r12
xchg   %ax,%ax
mov    %rbx,%rsi
test   $0x1,%r12b
je     1767 <dmatvec2+0x667>
movsd  (%rcx,%rbx,8),%xmm2
movapd %xmm0,%xmm3
mulsd  %xmm2,%xmm3
addsd  (%rax,%rbx,8),%xmm3
mulsd  %xmm1,%xmm2
addsd  (%r10,%rbx,8),%xmm2
movsd  %xmm3,(%rax,%rbx,8)
movsd  %xmm2,(%r10,%rbx,8)
mov    %rbx,%rsi
or     $0x1,%rsi
not    %rbx
cmp    %r8,%rbx
je     15b0 <dmatvec2+0x4b0>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movsd  (%rcx,%rsi,8),%xmm2
movapd %xmm0,%xmm3
mulsd  %xmm2,%xmm3
addsd  (%rax,%rsi,8),%xmm3
mulsd  %xmm1,%xmm2
addsd  (%r10,%rsi,8),%xmm2
movsd  %xmm3,(%rax,%rsi,8)
movsd  %xmm2,(%r10,%rsi,8)
movsd  0x8(%rcx,%rsi,8),%xmm2
movapd %xmm0,%xmm3
mulsd  %xmm2,%xmm3
addsd  0x8(%rax,%rsi,8),%xmm3
mulsd  %xmm1,%xmm2
addsd  0x8(%r10,%rsi,8),%xmm2
movsd  %xmm3,0x8(%rax,%rsi,8)
movsd  %xmm2,0x8(%r10,%rsi,8)
add    $0x2,%rsi
cmp    %rsi,%r12
jne    1780 <dmatvec2+0x680>
jmp    15b0 <dmatvec2+0x4b0>
xor    %ebp,%ebp
testb  $0x1,-0x40(%rsp)
jne    16e4 <dmatvec2+0x5e4>
jmp    170f <dmatvec2+0x60f>
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

LLVM IR (-O2):
define void @dmatvec2(i32 %0, i32 %1, i32 %2, double* nocapture %3, double* nocapture %4, double* nocapture %5, double* nocapture %6, double* nocapture %7) {
%9 = icmp sgt i32 %2, 7
br i1 %9, label %10, label %20
10: ; preds = %8
%11 = add nsw i32 %2, -7
%12 = sext i32 %0 to i64
%13 = icmp sgt i32 %1, 0
%14 = shl nsw i32 %0, 3
%15 = sext i32 %14 to i64
%16 = zext i32 %11 to i64
%17 = zext i32 %1 to i64
br label %33
18: ; preds = %123
%19 = trunc i64 %80 to i32
br label %20
20: ; preds = %18, %8
%21 = phi i32 [ 0, %8 ], [ %19, %18 ]
%22 = phi double* [ %3, %8 ], [ %124, %18 ]
%23 = add nsw i32 %2, -3
%24 = icmp slt i32 %21, %23
br i1 %24, label %25, label %128
25: ; preds = %20
%26 = sext i32 %0 to i64
%27 = icmp sgt i32 %1, 0
%28 = shl nsw i32 %0, 2
%29 = sext i32 %28 to i64
%30 = zext i32 %21 to i64
%31 = sext i32 %23 to i64
%32 = zext i32 %1 to i64
br label %156
33: ; preds = %10, %123
%34 = phi i64 [ 0, %10 ], [ %80, %123 ]
%35 = phi double* [ %3, %10 ], [ %124, %123 ]
%36 = getelementptr inbounds double, double* %35, i64 %12
%37 = getelementptr inbounds double, double* %36, i64 %12
%38 = getelementptr inbounds double, double* %37, i64 %12
%39 = getelementptr inbounds double, double* %38, i64 %12
%40 = getelementptr inbounds double, double* %39, i64 %12
%41 = getelementptr inbounds double, double* %40, i64 %12
%42 = getelementptr inbounds double, double* %41, i64 %12
%43 = getelementptr inbounds double, double* %4, i64 %34
%44 = load double, double* %43
%45 = or i64 %34, 1
%46 = getelementptr inbounds double, double* %5, i64 %34
%47 = load double, double* %46
%48 = getelementptr inbounds double, double* %4, i64 %45
%49 = load double, double* %48
%50 = or i64 %34, 2
%51 = getelementptr inbounds double, double* %5, i64 %45
%52 = load double, double* %51
%53 = getelementptr inbounds double, double* %4, i64 %50
%54 = load double, double* %53
%55 = or i64 %34, 3
%56 = getelementptr inbounds double, double* %5, i64 %50
%57 = load double, double* %56
%58 = getelementptr inbounds double, double* %4, i64 %55
%59 = load double, double* %58
%60 = or i64 %34, 4
%61 = getelementptr inbounds double, double* %5, i64 %55
%62 = load double, double* %61
%63 = getelementptr inbounds double, double* %4, i64 %60
%64 = load double, double* %63
%65 = or i64 %34, 5
%66 = getelementptr inbounds double, double* %5, i64 %60
%67 = load double, double* %66
%68 = getelementptr inbounds double, double* %4, i64 %65
%69 = load double, double* %68
%70 = or i64 %34, 6
%71 = getelementptr inbounds double, double* %5, i64 %65
%72 = load double, double* %71
%73 = getelementptr inbounds double, double* %4, i64 %70
%74 = load double, double* %73
%75 = or i64 %34, 7
%76 = getelementptr inbounds double, double* %5, i64 %70
%77 = load double, double* %76
%78 = getelementptr inbounds double, double* %4, i64 %75
%79 = load double, double* %78
%80 = add nuw nsw i64 %34, 8
%81 = getelementptr inbounds double, double* %5, i64 %75
%82 = load double, double* %81
br i1 %13, label %83, label %123
83: ; preds = %33, %83
%84 = phi i64 [ %121, %83 ], [ 0, %33 ]
%85 = getelementptr inbounds double, double* %6, i64 %84
%86 = load double, double* %85
%87 = getelementptr inbounds double, double* %7, i64 %84
%88 = load double, double* %87
%89 = getelementptr inbounds double, double* %35, i64 %84
%90 = load double, double* %89
%91 = tail call double @llvm.fmuladd.f64(double %44, double %90, double %86)
%92 = tail call double @llvm.fmuladd.f64(double %47, double %90, double %88)
%93 = getelementptr inbounds double, double* %36, i64 %84
%94 = load double, double* %93
%95 = tail call double @llvm.fmuladd.f64(double %49, double %94, double %91)
%96 = tail call double @llvm.fmuladd.f64(double %52, double %94, double %92)
%97 = getelementptr inbounds double, double* %37, i64 %84
%98 = load double, double* %97
%99 = tail call double @llvm.fmuladd.f64(double %54, double %98, double %95)
%100 = tail call double @llvm.fmuladd.f64(double %57, double %98, double %96)
%101 = getelementptr inbounds double, double* %38, i64 %84
%102 = load double, double* %101
%103 = tail call double @llvm.fmuladd.f64(double %59, double %102, double %99)
%104 = tail call double @llvm.fmuladd.f64(double %62, double %102, double %100)
%105 = getelementptr inbounds double, double* %39, i64 %84
%106 = load double, double* %105
%107 = tail call double @llvm.fmuladd.f64(double %64, double %106, double %103)
%108 = tail call double @llvm.fmuladd.f64(double %67, double %106, double %104)
%109 = getelementptr inbounds double, double* %40, i64 %84
%110 = load double, double* %109
%111 = tail call double @llvm.fmuladd.f64(double %69, double %110, double %107)
%112 = tail call double @llvm.fmuladd.f64(double %72, double %110, double %108)
%113 = getelementptr inbounds double, double* %41, i64 %84
%114 = load double, double* %113
%115 = tail call double @llvm.fmuladd.f64(double %74, double %114, double %111)
%116 = tail call double @llvm.fmuladd.f64(double %77, double %114, double %112)
%117 = getelementptr inbounds double, double* %42, i64 %84
%118 = load double, double* %117
%119 = tail call double @llvm.fmuladd.f64(double %79, double %118, double %115)
%120 = tail call double @llvm.fmuladd.f64(double %82, double %118, double %116)
store double %119, double* %85
store double %120, double* %87
%121 = add nuw nsw i64 %84, 1
%122 = icmp eq i64 %121, %17
br i1 %122, label %123, label %83
123: ; preds = %83, %33
%124 = getelementptr inbounds double, double* %35, i64 %15
%125 = icmp ult i64 %80, %16
br i1 %125, label %33, label %18
126: ; preds = %209
%127 = trunc i64 %182 to i32
br label %128
128: ; preds = %126, %20
%129 = phi i32 [ %21, %20 ], [ %127, %126 ]
%130 = phi double* [ %22, %20 ], [ %210, %126 ]
%131 = icmp slt i32 %129, %2
br i1 %131, label %132, label %331
132: ; preds = %128
%133 = icmp sgt i32 %1, 0
%134 = sext i32 %0 to i64
%135 = zext i32 %129 to i64
%136 = zext i32 %1 to i64
%137 = getelementptr double, double* %6, i64 %136
%138 = getelementptr double, double* %7, i64 %136
%139 = and i64 %136, 4294967294
%140 = add nsw i64 %139, -2
%141 = lshr exact i64 %140, 1
%142 = add nuw i64 %141, 1
%143 = icmp eq i32 %1, 1
%144 = icmp ugt double* %138, %6
%145 = icmp ugt double* %137, %7
%146 = and i1 %144, %145
%147 = and i64 %136, 4294967294
%148 = and i64 %142, 1
%149 = icmp eq i64 %140, 0
%150 = and i64 %142, -2
%151 = icmp eq i64 %148, 0
%152 = icmp eq i64 %147, %136
%153 = and i64 %136, 1
%154 = icmp eq i64 %153, 0
%155 = sub nsw i64 0, %136
br label %212
156: ; preds = %25, %209
%157 = phi i64 [ %30, %25 ], [ %182, %209 ]
%158 = phi double* [ %22, %25 ], [ %210, %209 ]
%159 = getelementptr inbounds double, double* %158, i64 %26
%160 = getelementptr inbounds double, double* %159, i64 %26
%161 = getelementptr inbounds double, double* %160, i64 %26
%162 = getelementptr inbounds double, double* %4, i64 %157
%163 = load double, double* %162
%164 = getelementptr inbounds double, double* %5, i64 %157
%165 = load double, double* %164
%166 = and i64 %157, 4294967294
%167 = or i64 %166, 1
%168 = getelementptr inbounds double, double* %4, i64 %167
%169 = load double, double* %168
%170 = getelementptr inbounds double, double* %5, i64 %167
%171 = load double, double* %170
%172 = and i64 %157, 4294967293
%173 = or i64 %172, 2
%174 = getelementptr inbounds double, double* %4, i64 %173
%175 = load double, double* %174
%176 = getelementptr inbounds double, double* %5, i64 %173
%177 = load double, double* %176
%178 = and i64 %157, 4294967292
%179 = or i64 %178, 3
%180 = getelementptr inbounds double, double* %4, i64 %179
%181 = load double, double* %180
%182 = add nuw nsw i64 %157, 4
%183 = getelementptr inbounds double, double* %5, i64 %179
%184 = load double, double* %183
br i1 %27, label %185, label %209
185: ; preds = %156, %185
%186 = phi i64 [ %207, %185 ], [ 0, %156 ]
%187 = getelementptr inbounds double, double* %6, i64 %186
%188 = load double, double* %187
%189 = getelementptr inbounds double, double* %7, i64 %186
%190 = load double, double* %189
%191 = getelementptr inbounds double, double* %158, i64 %186
%192 = load double, double* %191
%193 = tail call double @llvm.fmuladd.f64(double %163, double %192, double %188)
%194 = tail call double @llvm.fmuladd.f64(double %165, double %192, double %190)
%195 = getelementptr inbounds double, double* %159, i64 %186
%196 = load double, double* %195
%197 = tail call double @llvm.fmuladd.f64(double %169, double %196, double %193)
%198 = tail call double @llvm.fmuladd.f64(double %171, double %196, double %194)
%199 = getelementptr inbounds double, double* %160, i64 %186
%200 = load double, double* %199
%201 = tail call double @llvm.fmuladd.f64(double %175, double %200, double %197)
%202 = tail call double @llvm.fmuladd.f64(double %177, double %200, double %198)
%203 = getelementptr inbounds double, double* %161, i64 %186
%204 = load double, double* %203
%205 = tail call double @llvm.fmuladd.f64(double %181, double %204, double %201)
%206 = tail call double @llvm.fmuladd.f64(double %184, double %204, double %202)
store double %205, double* %187
store double %206, double* %189
%207 = add nuw nsw i64 %186, 1
%208 = icmp eq i64 %207, %32
br i1 %208, label %209, label %185
209: ; preds = %185, %156
%210 = getelementptr inbounds double, double* %158, i64 %29
%211 = icmp slt i64 %182, %31
br i1 %211, label %156, label %126
212: ; preds = %132, %326
%213 = phi i64 [ 0, %132 ], [ %330, %326 ]
%214 = phi i64 [ %135, %132 ], [ %221, %326 ]
%215 = phi double* [ %130, %132 ], [ %327, %326 ]
%216 = mul i64 %213, %134
%217 = add i64 %216, %136
%218 = getelementptr double, double* %130, i64 %217
%219 = getelementptr inbounds double, double* %4, i64 %214
%220 = load double, double* %219
%221 = add nuw nsw i64 %214, 1
%222 = getelementptr inbounds double, double* %5, i64 %214
%223 = load double, double* %222
br i1 %133, label %224, label %326
224: ; preds = %212
br i1 %143, label %289, label %225
225: ; preds = %224
%226 = icmp ugt double* %218, %6
%227 = icmp ult double* %215, %137
%228 = and i1 %226, %227
%229 = or i1 %146, %228
%230 = icmp ugt double* %218, %7
%231 = icmp ult double* %215, %138
%232 = and i1 %230, %231
%233 = or i1 %229, %232
br i1 %233, label %289, label %234
234: ; preds = %225
%235 = insertelement <2 x double> poison, double %220, i64 0
%236 = shufflevector <2 x double> %235, <2 x double> poison, <2 x i32> zeroinitializer
%237 = insertelement <2 x double> poison, double %223, i64 0
%238 = shufflevector <2 x double> %237, <2 x double> poison, <2 x i32> zeroinitializer
br i1 %149, label %272, label %239
239: ; preds = %234, %239
%240 = phi i64 [ %269, %239 ], [ 0, %234 ]
%241 = phi i64 [ %270, %239 ], [ 0, %234 ]
%242 = getelementptr inbounds double, double* %6, i64 %240
%243 = bitcast double* %242 to <2 x double>*
%244 = load <2 x double>, <2 x double>* %243
%245 = getelementptr inbounds double, double* %7, i64 %240
%246 = bitcast double* %245 to <2 x double>*
%247 = load <2 x double>, <2 x double>* %246
%248 = getelementptr inbounds double, double* %215, i64 %240
%249 = bitcast double* %248 to <2 x double>*
%250 = load <2 x double>, <2 x double>* %249
%251 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %236, <2 x double> %250, <2 x double> %244)
%252 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %238, <2 x double> %250, <2 x double> %247)
%253 = bitcast double* %242 to <2 x double>*
store <2 x double> %251, <2 x double>* %253
%254 = bitcast double* %245 to <2 x double>*
store <2 x double> %252, <2 x double>* %254
%255 = or i64 %240, 2
%256 = getelementptr inbounds double, double* %6, i64 %255
%257 = bitcast double* %256 to <2 x double>*
%258 = load <2 x double>, <2 x double>* %257
%259 = getelementptr inbounds double, double* %7, i64 %255
%260 = bitcast double* %259 to <2 x double>*
%261 = load <2 x double>, <2 x double>* %260
%262 = getelementptr inbounds double, double* %215, i64 %255
%263 = bitcast double* %262 to <2 x double>*
%264 = load <2 x double>, <2 x double>* %263
%265 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %236, <2 x double> %264, <2 x double> %258)
%266 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %238, <2 x double> %264, <2 x double> %261)
%267 = bitcast double* %256 to <2 x double>*
store <2 x double> %265, <2 x double>* %267
%268 = bitcast double* %259 to <2 x double>*
store <2 x double> %266, <2 x double>* %268
%269 = add nuw i64 %240, 4
%270 = add nuw i64 %241, 2
%271 = icmp eq i64 %270, %150
br i1 %271, label %272, label %239
272: ; preds = %239, %234
%273 = phi i64 [ 0, %234 ], [ %269, %239 ]
br i1 %151, label %288, label %274
274: ; preds = %272
%275 = getelementptr inbounds double, double* %6, i64 %273
%276 = bitcast double* %275 to <2 x double>*
%277 = load <2 x double>, <2 x double>* %276
%278 = getelementptr inbounds double, double* %7, i64 %273
%279 = bitcast double* %278 to <2 x double>*
%280 = load <2 x double>, <2 x double>* %279
%281 = getelementptr inbounds double, double* %215, i64 %273
%282 = bitcast double* %281 to <2 x double>*
%283 = load <2 x double>, <2 x double>* %282
%284 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %236, <2 x double> %283, <2 x double> %277)
%285 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %238, <2 x double> %283, <2 x double> %280)
%286 = bitcast double* %275 to <2 x double>*
store <2 x double> %284, <2 x double>* %286
%287 = bitcast double* %278 to <2 x double>*
store <2 x double> %285, <2 x double>* %287
br label %288
288: ; preds = %272, %274
br i1 %152, label %326, label %289
289: ; preds = %225, %224, %288
%290 = phi i64 [ 0, %225 ], [ 0, %224 ], [ %147, %288 ]
%291 = xor i64 %290, -1
br i1 %154, label %302, label %292
292: ; preds = %289
%293 = getelementptr inbounds double, double* %6, i64 %290
%294 = load double, double* %293
%295 = getelementptr inbounds double, double* %7, i64 %290
%296 = load double, double* %295
%297 = getelementptr inbounds double, double* %215, i64 %290
%298 = load double, double* %297
%299 = tail call double @llvm.fmuladd.f64(double %220, double %298, double %294)
%300 = tail call double @llvm.fmuladd.f64(double %223, double %298, double %296)
store double %299, double* %293
store double %300, double* %295
%301 = or i64 %290, 1
br label %302
302: ; preds = %292, %289
%303 = phi i64 [ %290, %289 ], [ %301, %292 ]
%304 = icmp eq i64 %291, %155
br i1 %304, label %326, label %305
305: ; preds = %302, %305
%306 = phi i64 [ %324, %305 ], [ %303, %302 ]
%307 = getelementptr inbounds double, double* %6, i64 %306
%308 = load double, double* %307
%309 = getelementptr inbounds double, double* %7, i64 %306
%310 = load double, double* %309
%311 = getelementptr inbounds double, double* %215, i64 %306
%312 = load double, double* %311
%313 = tail call double @llvm.fmuladd.f64(double %220, double %312, double %308)
%314 = tail call double @llvm.fmuladd.f64(double %223, double %312, double %310)
store double %313, double* %307
store double %314, double* %309
%315 = add nuw nsw i64 %306, 1
%316 = getelementptr inbounds double, double* %6, i64 %315
%317 = load double, double* %316
%318 = getelementptr inbounds double, double* %7, i64 %315
%319 = load double, double* %318
%320 = getelementptr inbounds double, double* %215, i64 %315
%321 = load double, double* %320
%322 = tail call double @llvm.fmuladd.f64(double %220, double %321, double %317)
%323 = tail call double @llvm.fmuladd.f64(double %223, double %321, double %319)
store double %322, double* %316
store double %323, double* %318
%324 = add nuw nsw i64 %306, 2
%325 = icmp eq i64 %324, %136
br i1 %325, label %326, label %305
326: ; preds = %302, %305, %288, %212
%327 = getelementptr inbounds double, double* %215, i64 %134
%328 = trunc i64 %221 to i32
%329 = icmp slt i32 %328, %2
%330 = add i64 %213, 1
br i1 %329, label %212, label %331
331: ; preds = %326, %128
ret void
}