void kernel_dtrmv_u_n_4_lib4(int kmax, double *A, double *x, double *y,
                             int alg) {
  if (kmax <= 0)
    return;
  __builtin_prefetch(A);
  __builtin_prefetch(A + 8);
  const int lda = 4;
  int k;
  double x_0, x_1, x_2, x_3, y_0 = 0, y_1 = 0, y_2 = 0, y_3 = 0;
  __builtin_prefetch(A + 4 * lda);
  __builtin_prefetch(A + 4 * lda + 8);
  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_0 += A[0 + lda * 1] * x_1;
  y_1 += A[1 + lda * 1] * x_1;
  y_0 += A[0 + lda * 2] * x_2;
  y_1 += A[1 + lda * 2] * x_2;
  y_2 += A[2 + lda * 2] * x_2;
  y_0 += A[0 + lda * 3] * x_3;
  y_1 += A[1 + lda * 3] * x_3;
  y_2 += A[2 + lda * 3] * x_3;
  y_3 += A[3 + lda * 3] * x_3;
  A += 4 * lda;
  x += 4;
  k = 4;
  for (; k < kmax - 3; k += 4) {
    __builtin_prefetch(A + 4 * lda);
    __builtin_prefetch(A + 4 * lda + 8);
    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[1 + lda * 0] * x_0;
    y_2 += A[2 + lda * 0] * x_0;
    y_3 += A[3 + lda * 0] * x_0;
    y_0 += A[0 + lda * 1] * x_1;
    y_1 += A[1 + lda * 1] * x_1;
    y_2 += A[2 + lda * 1] * x_1;
    y_3 += A[3 + lda * 1] * x_1;
    y_0 += A[0 + lda * 2] * x_2;
    y_1 += A[1 + lda * 2] * x_2;
    y_2 += A[2 + lda * 2] * x_2;
    y_3 += A[3 + lda * 2] * x_2;
    y_0 += A[0 + lda * 3] * x_3;
    y_1 += A[1 + lda * 3] * x_3;
    y_2 += A[2 + lda * 3] * x_3;
    y_3 += A[3 + lda * 3] * x_3;
    A += 4 * lda;
    x += 4;
  }
  for (; k < kmax; k++) {
    x_0 = x[0];
    y_0 += A[0 + lda * 0] * x_0;
    y_1 += A[1 + lda * 0] * x_0;
    y_2 += A[2 + lda * 0] * x_0;
    y_3 += A[3 + lda * 0] * x_0;
    A += 1 * lda;
    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_dtrmv_u_n_4_lib4>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8d,-0x24(%rbp)
cmpl   $0x0,-0x4(%rbp)
jg     1126 <kernel_dtrmv_u_n_4_lib4+0x26>
jmp    1762 <kernel_dtrmv_u_n_4_lib4+0x662>
mov    -0x10(%rbp),%rax
prefetcht0 (%rax)
mov    -0x10(%rbp),%rax
add    $0x40,%rax
prefetcht0 (%rax)
movl   $0x4,-0x28(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x58(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x60(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x68(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x70(%rbp)
mov    -0x10(%rbp),%rax
add    $0x80,%rax
prefetcht0 (%rax)
mov    -0x10(%rbp),%rax
add    $0x80,%rax
add    $0x40,%rax
prefetcht0 (%rax)
mov    -0x18(%rbp),%rax
movsd  (%rax),%xmm0
movsd  %xmm0,-0x38(%rbp)
mov    -0x18(%rbp),%rax
movsd  0x8(%rax),%xmm0
movsd  %xmm0,-0x40(%rbp)
mov    -0x18(%rbp),%rax
movsd  0x10(%rax),%xmm0
movsd  %xmm0,-0x48(%rbp)
mov    -0x18(%rbp),%rax
movsd  0x18(%rax),%xmm0
movsd  %xmm0,-0x50(%rbp)
mov    -0x10(%rbp),%rax
movsd  (%rax),%xmm0
movsd  -0x38(%rbp),%xmm2
movsd  -0x58(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    -0x10(%rbp),%rax
movsd  0x20(%rax),%xmm0
movsd  -0x40(%rbp),%xmm2
movsd  -0x58(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    -0x10(%rbp),%rax
movsd  0x28(%rax),%xmm0
movsd  -0x40(%rbp),%xmm2
movsd  -0x60(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x60(%rbp)
mov    -0x10(%rbp),%rax
movsd  0x40(%rax),%xmm0
movsd  -0x48(%rbp),%xmm2
movsd  -0x58(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    -0x10(%rbp),%rax
movsd  0x48(%rax),%xmm0
movsd  -0x48(%rbp),%xmm2
movsd  -0x60(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x60(%rbp)
mov    -0x10(%rbp),%rax
movsd  0x50(%rax),%xmm0
movsd  -0x48(%rbp),%xmm2
movsd  -0x68(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x68(%rbp)
mov    -0x10(%rbp),%rax
movsd  0x60(%rax),%xmm0
movsd  -0x50(%rbp),%xmm2
movsd  -0x58(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    -0x10(%rbp),%rax
movsd  0x68(%rax),%xmm0
movsd  -0x50(%rbp),%xmm2
movsd  -0x60(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x60(%rbp)
mov    -0x10(%rbp),%rax
movsd  0x70(%rax),%xmm0
movsd  -0x50(%rbp),%xmm2
movsd  -0x68(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x68(%rbp)
mov    -0x10(%rbp),%rax
movsd  0x78(%rax),%xmm0
movsd  -0x50(%rbp),%xmm2
movsd  -0x70(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x70(%rbp)
mov    -0x10(%rbp),%rax
add    $0x80,%rax
mov    %rax,-0x10(%rbp)
mov    -0x18(%rbp),%rax
add    $0x20,%rax
mov    %rax,-0x18(%rbp)
movl   $0x4,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
mov    -0x4(%rbp),%ecx
sub    $0x3,%ecx
cmp    %ecx,%eax
jge    15a1 <kernel_dtrmv_u_n_4_lib4+0x4a1>
mov    -0x10(%rbp),%rax
add    $0x80,%rax
prefetcht0 (%rax)
mov    -0x10(%rbp),%rax
add    $0x80,%rax
add    $0x40,%rax
prefetcht0 (%rax)
mov    -0x18(%rbp),%rax
movsd  (%rax),%xmm0
movsd  %xmm0,-0x38(%rbp)
mov    -0x18(%rbp),%rax
movsd  0x8(%rax),%xmm0
movsd  %xmm0,-0x40(%rbp)
mov    -0x18(%rbp),%rax
movsd  0x10(%rax),%xmm0
movsd  %xmm0,-0x48(%rbp)
mov    -0x18(%rbp),%rax
movsd  0x18(%rax),%xmm0
movsd  %xmm0,-0x50(%rbp)
mov    -0x10(%rbp),%rax
movsd  (%rax),%xmm0
movsd  -0x38(%rbp),%xmm2
movsd  -0x58(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    -0x10(%rbp),%rax
movsd  0x8(%rax),%xmm0
movsd  -0x38(%rbp),%xmm2
movsd  -0x60(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x60(%rbp)
mov    -0x10(%rbp),%rax
movsd  0x10(%rax),%xmm0
movsd  -0x38(%rbp),%xmm2
movsd  -0x68(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x68(%rbp)
mov    -0x10(%rbp),%rax
movsd  0x18(%rax),%xmm0
movsd  -0x38(%rbp),%xmm2
movsd  -0x70(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x70(%rbp)
mov    -0x10(%rbp),%rax
movsd  0x20(%rax),%xmm0
movsd  -0x40(%rbp),%xmm2
movsd  -0x58(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    -0x10(%rbp),%rax
movsd  0x28(%rax),%xmm0
movsd  -0x40(%rbp),%xmm2
movsd  -0x60(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x60(%rbp)
mov    -0x10(%rbp),%rax
movsd  0x30(%rax),%xmm0
movsd  -0x40(%rbp),%xmm2
movsd  -0x68(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x68(%rbp)
mov    -0x10(%rbp),%rax
movsd  0x38(%rax),%xmm0
movsd  -0x40(%rbp),%xmm2
movsd  -0x70(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x70(%rbp)
mov    -0x10(%rbp),%rax
movsd  0x40(%rax),%xmm0
movsd  -0x48(%rbp),%xmm2
movsd  -0x58(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    -0x10(%rbp),%rax
movsd  0x48(%rax),%xmm0
movsd  -0x48(%rbp),%xmm2
movsd  -0x60(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x60(%rbp)
mov    -0x10(%rbp),%rax
movsd  0x50(%rax),%xmm0
movsd  -0x48(%rbp),%xmm2
movsd  -0x68(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x68(%rbp)
mov    -0x10(%rbp),%rax
movsd  0x58(%rax),%xmm0
movsd  -0x48(%rbp),%xmm2
movsd  -0x70(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x70(%rbp)
mov    -0x10(%rbp),%rax
movsd  0x60(%rax),%xmm0
movsd  -0x50(%rbp),%xmm2
movsd  -0x58(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    -0x10(%rbp),%rax
movsd  0x68(%rax),%xmm0
movsd  -0x50(%rbp),%xmm2
movsd  -0x60(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x60(%rbp)
mov    -0x10(%rbp),%rax
movsd  0x70(%rax),%xmm0
movsd  -0x50(%rbp),%xmm2
movsd  -0x68(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x68(%rbp)
mov    -0x10(%rbp),%rax
movsd  0x78(%rax),%xmm0
movsd  -0x50(%rbp),%xmm2
movsd  -0x70(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x70(%rbp)
mov    -0x10(%rbp),%rax
add    $0x80,%rax
mov    %rax,-0x10(%rbp)
mov    -0x18(%rbp),%rax
add    $0x20,%rax
mov    %rax,-0x18(%rbp)
mov    -0x2c(%rbp),%eax
add    $0x4,%eax
mov    %eax,-0x2c(%rbp)
jmp    1314 <kernel_dtrmv_u_n_4_lib4+0x214>
jmp    15a6 <kernel_dtrmv_u_n_4_lib4+0x4a6>
mov    -0x2c(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    1664 <kernel_dtrmv_u_n_4_lib4+0x564>
mov    -0x18(%rbp),%rax
movsd  (%rax),%xmm0
movsd  %xmm0,-0x38(%rbp)
mov    -0x10(%rbp),%rax
movsd  (%rax),%xmm0
movsd  -0x38(%rbp),%xmm2
movsd  -0x58(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    -0x10(%rbp),%rax
movsd  0x8(%rax),%xmm0
movsd  -0x38(%rbp),%xmm2
movsd  -0x60(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x60(%rbp)
mov    -0x10(%rbp),%rax
movsd  0x10(%rax),%xmm0
movsd  -0x38(%rbp),%xmm2
movsd  -0x68(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x68(%rbp)
mov    -0x10(%rbp),%rax
movsd  0x18(%rax),%xmm0
movsd  -0x38(%rbp),%xmm2
movsd  -0x70(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x70(%rbp)
mov    -0x10(%rbp),%rax
add    $0x20,%rax
mov    %rax,-0x10(%rbp)
mov    -0x18(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x18(%rbp)
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    15a6 <kernel_dtrmv_u_n_4_lib4+0x4a6>
cmpl   $0x0,-0x24(%rbp)
jne    16aa <kernel_dtrmv_u_n_4_lib4+0x5aa>
movsd  -0x58(%rbp),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  -0x60(%rbp),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x8(%rax)
movsd  -0x68(%rbp),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x10(%rax)
movsd  -0x70(%rbp),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x18(%rax)
jmp    1762 <kernel_dtrmv_u_n_4_lib4+0x662>
cmpl   $0x1,-0x24(%rbp)
jne    1703 <kernel_dtrmv_u_n_4_lib4+0x603>
movsd  -0x58(%rbp),%xmm0
mov    -0x20(%rbp),%rax
addsd  (%rax),%xmm0
movsd  %xmm0,(%rax)
movsd  -0x60(%rbp),%xmm0
mov    -0x20(%rbp),%rax
addsd  0x8(%rax),%xmm0
movsd  %xmm0,0x8(%rax)
movsd  -0x68(%rbp),%xmm0
mov    -0x20(%rbp),%rax
addsd  0x10(%rax),%xmm0
movsd  %xmm0,0x10(%rax)
movsd  -0x70(%rbp),%xmm0
mov    -0x20(%rbp),%rax
addsd  0x18(%rax),%xmm0
movsd  %xmm0,0x18(%rax)
jmp    175d <kernel_dtrmv_u_n_4_lib4+0x65d>
movsd  -0x58(%rbp),%xmm1
mov    -0x20(%rbp),%rax
movsd  (%rax),%xmm0
subsd  %xmm1,%xmm0
movsd  %xmm0,(%rax)
movsd  -0x60(%rbp),%xmm1
mov    -0x20(%rbp),%rax
movsd  0x8(%rax),%xmm0
subsd  %xmm1,%xmm0
movsd  %xmm0,0x8(%rax)
movsd  -0x68(%rbp),%xmm1
mov    -0x20(%rbp),%rax
movsd  0x10(%rax),%xmm0
subsd  %xmm1,%xmm0
movsd  %xmm0,0x10(%rax)
movsd  -0x70(%rbp),%xmm1
mov    -0x20(%rbp),%rax
movsd  0x18(%rax),%xmm0
subsd  %xmm1,%xmm0
movsd  %xmm0,0x18(%rax)
jmp    1762 <kernel_dtrmv_u_n_4_lib4+0x662>
pop    %rbp
ret

x86 assembly (clang, -O2):
<kernel_dtrmv_u_n_4_lib4>:
test   %edi,%edi
jle    13af <kernel_dtrmv_u_n_4_lib4+0x2af>
prefetcht0 (%rsi)
prefetcht0 0x40(%rsi)
lea    0x80(%rsi),%rax
prefetcht0 0x80(%rsi)
prefetcht0 0xc0(%rsi)
movsd  (%rsi),%xmm0
mulsd  (%rdx),%xmm0
movsd  0x10(%rdx),%xmm1
xorpd  %xmm2,%xmm2
addsd  %xmm2,%xmm0
movupd 0x20(%rsi),%xmm3
movsd  0x8(%rdx),%xmm4
unpcklpd %xmm4,%xmm4
mulpd  %xmm3,%xmm4
movq   %xmm0,%xmm0
addpd  %xmm4,%xmm0
movupd 0x40(%rsi),%xmm3
movapd %xmm1,%xmm4
unpcklpd %xmm1,%xmm4
mulpd  %xmm3,%xmm4
addpd  %xmm0,%xmm4
mulsd  0x50(%rsi),%xmm1
addsd  %xmm2,%xmm1
movupd 0x60(%rsi),%xmm3
movsd  0x18(%rdx),%xmm0
unpcklpd %xmm0,%xmm0
mulpd  %xmm0,%xmm3
addpd  %xmm4,%xmm3
movupd 0x70(%rsi),%xmm10
movq   %xmm1,%xmm1
mulpd  %xmm0,%xmm10
addpd  %xmm1,%xmm10
add    $0x20,%rdx
mov    $0x4,%esi
cmp    $0x8,%edi
jb     1298 <kernel_dtrmv_u_n_4_lib4+0x198>
lea    -0x3(%rdi),%r9d
mov    $0x4,%esi
cs nopw 0x0(%rax,%rax,1)
prefetcht0 0x80(%rax)
prefetcht0 0xc0(%rax)
movupd (%rax),%xmm4
movupd 0x10(%rax),%xmm9
movupd 0x20(%rax),%xmm11
movupd 0x30(%rax),%xmm8
movsd  (%rdx),%xmm5
unpcklpd %xmm5,%xmm5
mulpd  %xmm5,%xmm4
addpd  %xmm3,%xmm4
movupd 0x40(%rax),%xmm7
movupd 0x50(%rax),%xmm6
movupd 0x60(%rax),%xmm1
movupd 0x70(%rax),%xmm0
lea    0x80(%rax),%rax
mulpd  %xmm9,%xmm5
movsd  0x8(%rdx),%xmm3
addpd  %xmm10,%xmm5
movsd  0x10(%rdx),%xmm2
unpcklpd %xmm3,%xmm3
mulpd  %xmm3,%xmm11
addpd  %xmm4,%xmm11
movsd  0x18(%rdx),%xmm4
mulpd  %xmm8,%xmm3
addpd  %xmm5,%xmm3
unpcklpd %xmm2,%xmm2
mulpd  %xmm2,%xmm7
addpd  %xmm11,%xmm7
mulpd  %xmm2,%xmm6
addpd  %xmm3,%xmm6
unpcklpd %xmm4,%xmm4
mulpd  %xmm4,%xmm1
movapd %xmm1,%xmm3
addpd  %xmm7,%xmm3
mulpd  %xmm4,%xmm0
movapd %xmm0,%xmm10
addpd  %xmm6,%xmm10
add    $0x4,%esi
add    $0x20,%rdx
cmp    %r9d,%esi
jl     11c0 <kernel_dtrmv_u_n_4_lib4+0xc0>
addpd  %xmm6,%xmm0
addpd  %xmm7,%xmm1
mov    %edi,%esi
and    $0xfffffffc,%esi
movapd %xmm1,%xmm3
movapd %xmm0,%xmm10
cmp    %edi,%esi
jge    12b2 <kernel_dtrmv_u_n_4_lib4+0x1b2>
mov    %esi,%r9d
not    %r9d
test   $0x1,%dil
jne    12c0 <kernel_dtrmv_u_n_4_lib4+0x1c0>
add    %edi,%r9d
jne    12fb <kernel_dtrmv_u_n_4_lib4+0x1fb>
jmp    1365 <kernel_dtrmv_u_n_4_lib4+0x265>
movapd %xmm3,%xmm1
movapd %xmm10,%xmm2
jmp    1365 <kernel_dtrmv_u_n_4_lib4+0x265>
movsd  (%rdx),%xmm0
unpcklpd %xmm0,%xmm0
movupd (%rax),%xmm1
movupd 0x10(%rax),%xmm2
mulpd  %xmm0,%xmm1
addpd  %xmm3,%xmm1
mulpd  %xmm0,%xmm2
addpd  %xmm10,%xmm2
add    $0x20,%rax
add    $0x8,%rdx
or     $0x1,%esi
movapd %xmm1,%xmm3
movapd %xmm2,%xmm10
add    %edi,%r9d
je     1365 <kernel_dtrmv_u_n_4_lib4+0x265>
sub    %esi,%edi
xor    %esi,%esi
nop
movsd  (%rdx,%rsi,8),%xmm0
movsd  0x8(%rdx,%rsi,8),%xmm2
unpcklpd %xmm0,%xmm0
movupd (%rax),%xmm4
movupd 0x10(%rax),%xmm5
movupd 0x20(%rax),%xmm1
movupd 0x30(%rax),%xmm6
mulpd  %xmm0,%xmm4
addpd  %xmm3,%xmm4
mulpd  %xmm0,%xmm5
addpd  %xmm10,%xmm5
unpcklpd %xmm2,%xmm2
mulpd  %xmm2,%xmm1
movapd %xmm1,%xmm3
addpd  %xmm4,%xmm3
mulpd  %xmm6,%xmm2
movapd %xmm2,%xmm10
addpd  %xmm5,%xmm10
add    $0x2,%rsi
add    $0x40,%rax
cmp    %esi,%edi
jne    1300 <kernel_dtrmv_u_n_4_lib4+0x200>
addpd  %xmm5,%xmm2
addpd  %xmm4,%xmm1
cmp    $0x1,%r8d
je     137a <kernel_dtrmv_u_n_4_lib4+0x27a>
test   %r8d,%r8d
jne    1395 <kernel_dtrmv_u_n_4_lib4+0x295>
movupd %xmm1,(%rcx)
movupd %xmm2,0x10(%rcx)
ret
movupd (%rcx),%xmm0
movupd 0x10(%rcx),%xmm3
addpd  %xmm0,%xmm1
movupd %xmm1,(%rcx)
addpd  %xmm3,%xmm2
movupd %xmm2,0x10(%rcx)
ret
movupd (%rcx),%xmm0
movupd 0x10(%rcx),%xmm3
subpd  %xmm1,%xmm0
movupd %xmm0,(%rcx)
subpd  %xmm2,%xmm3
movupd %xmm3,0x10(%rcx)
ret

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

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