void kernel_dtrmv_u_n_4_lib4(int kmax, double *A, double *x, double *y,
                             int alg) {
  if (kmax <= 0)
    return;
  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;
  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) {
    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    1714 <kernel_dtrmv_u_n_4_lib4+0x614>
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    -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    1553 <kernel_dtrmv_u_n_4_lib4+0x453>
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    12e4 <kernel_dtrmv_u_n_4_lib4+0x1e4>
jmp    1558 <kernel_dtrmv_u_n_4_lib4+0x458>
mov    -0x2c(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    1616 <kernel_dtrmv_u_n_4_lib4+0x516>
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    1558 <kernel_dtrmv_u_n_4_lib4+0x458>
cmpl   $0x0,-0x24(%rbp)
jne    165c <kernel_dtrmv_u_n_4_lib4+0x55c>
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    1714 <kernel_dtrmv_u_n_4_lib4+0x614>
cmpl   $0x1,-0x24(%rbp)
jne    16b5 <kernel_dtrmv_u_n_4_lib4+0x5b5>
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    170f <kernel_dtrmv_u_n_4_lib4+0x60f>
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    1714 <kernel_dtrmv_u_n_4_lib4+0x614>
pop    %rbp
ret

x86 assembly (clang, -O2):
<kernel_dtrmv_u_n_4_lib4>:
test   %edi,%edi
jle    137c <kernel_dtrmv_u_n_4_lib4+0x27c>
movsd  0x10(%rdx),%xmm2
movsd  (%rsi),%xmm0
mulsd  (%rdx),%xmm0
xorpd  %xmm1,%xmm1
addsd  %xmm1,%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 %xmm2,%xmm4
unpcklpd %xmm2,%xmm4
mulpd  %xmm3,%xmm4
addpd  %xmm0,%xmm4
mulsd  0x50(%rsi),%xmm2
addsd  %xmm1,%xmm2
movupd 0x60(%rsi),%xmm0
movsd  0x18(%rdx),%xmm3
unpcklpd %xmm3,%xmm3
mulpd  %xmm3,%xmm0
addpd  %xmm4,%xmm0
movupd 0x70(%rsi),%xmm1
movq   %xmm2,%xmm2
mulpd  %xmm3,%xmm1
addpd  %xmm2,%xmm1
sub    $0xffffffffffffff80,%rsi
add    $0x20,%rdx
mov    $0x4,%eax
cmp    $0x8,%edi
jb     1261 <kernel_dtrmv_u_n_4_lib4+0x161>
lea    -0x3(%rdi),%r9d
mov    $0x4,%eax
nopl   0x0(%rax,%rax,1)
movupd (%rsi),%xmm2
movupd 0x10(%rsi),%xmm5
movupd 0x20(%rsi),%xmm6
movupd 0x30(%rsi),%xmm8
movsd  (%rdx),%xmm7
movsd  0x8(%rdx),%xmm4
movsd  0x10(%rdx),%xmm3
movsd  0x18(%rdx),%xmm9
unpcklpd %xmm7,%xmm7
mulpd  %xmm7,%xmm2
addpd  %xmm0,%xmm2
mulpd  %xmm5,%xmm7
addpd  %xmm1,%xmm7
unpcklpd %xmm4,%xmm4
mulpd  %xmm4,%xmm6
addpd  %xmm2,%xmm6
mulpd  %xmm8,%xmm4
addpd  %xmm7,%xmm4
movupd 0x40(%rsi),%xmm2
unpcklpd %xmm3,%xmm3
mulpd  %xmm3,%xmm2
addpd  %xmm6,%xmm2
movupd 0x50(%rsi),%xmm5
mulpd  %xmm3,%xmm5
addpd  %xmm4,%xmm5
movupd 0x60(%rsi),%xmm4
unpcklpd %xmm9,%xmm9
mulpd  %xmm9,%xmm4
movapd %xmm4,%xmm0
addpd  %xmm2,%xmm0
movupd 0x70(%rsi),%xmm6
mulpd  %xmm9,%xmm6
movapd %xmm6,%xmm1
addpd  %xmm5,%xmm1
add    $0x4,%eax
sub    $0xffffffffffffff80,%rsi
add    $0x20,%rdx
cmp    %r9d,%eax
jl     11a0 <kernel_dtrmv_u_n_4_lib4+0xa0>
addpd  %xmm5,%xmm6
addpd  %xmm2,%xmm4
mov    %edi,%eax
and    $0xfffffffc,%eax
movapd %xmm4,%xmm0
movapd %xmm6,%xmm1
cmp    %edi,%eax
jge    127b <kernel_dtrmv_u_n_4_lib4+0x17b>
mov    %eax,%r9d
not    %r9d
test   $0x1,%dil
jne    1288 <kernel_dtrmv_u_n_4_lib4+0x188>
add    %edi,%r9d
jne    12c1 <kernel_dtrmv_u_n_4_lib4+0x1c1>
jmp    1332 <kernel_dtrmv_u_n_4_lib4+0x232>
movapd %xmm0,%xmm3
movapd %xmm1,%xmm2
jmp    1332 <kernel_dtrmv_u_n_4_lib4+0x232>
movsd  (%rdx),%xmm4
unpcklpd %xmm4,%xmm4
movupd (%rsi),%xmm3
movupd 0x10(%rsi),%xmm2
mulpd  %xmm4,%xmm3
addpd  %xmm0,%xmm3
mulpd  %xmm4,%xmm2
addpd  %xmm1,%xmm2
add    $0x20,%rsi
add    $0x8,%rdx
or     $0x1,%eax
movapd %xmm3,%xmm0
movapd %xmm2,%xmm1
add    %edi,%r9d
je     1332 <kernel_dtrmv_u_n_4_lib4+0x232>
sub    %eax,%edi
xor    %eax,%eax
cs nopw 0x0(%rax,%rax,1)
nop
movsd  (%rdx,%rax,8),%xmm6
movsd  0x8(%rdx,%rax,8),%xmm2
unpcklpd %xmm6,%xmm6
movupd (%rsi),%xmm4
movupd 0x10(%rsi),%xmm5
movupd 0x20(%rsi),%xmm3
movupd 0x30(%rsi),%xmm7
mulpd  %xmm6,%xmm4
addpd  %xmm0,%xmm4
mulpd  %xmm6,%xmm5
addpd  %xmm1,%xmm5
unpcklpd %xmm2,%xmm2
mulpd  %xmm2,%xmm3
movapd %xmm3,%xmm0
addpd  %xmm4,%xmm0
mulpd  %xmm7,%xmm2
movapd %xmm2,%xmm1
addpd  %xmm5,%xmm1
add    $0x2,%rax
add    $0x40,%rsi
cmp    %eax,%edi
jne    12d0 <kernel_dtrmv_u_n_4_lib4+0x1d0>
addpd  %xmm5,%xmm2
addpd  %xmm4,%xmm3
cmp    $0x1,%r8d
je     1347 <kernel_dtrmv_u_n_4_lib4+0x247>
test   %r8d,%r8d
jne    1362 <kernel_dtrmv_u_n_4_lib4+0x262>
movupd %xmm3,(%rcx)
movupd %xmm2,0x10(%rcx)
ret
movupd (%rcx),%xmm0
movupd 0x10(%rcx),%xmm1
addpd  %xmm0,%xmm3
movupd %xmm3,(%rcx)
addpd  %xmm1,%xmm2
movupd %xmm2,0x10(%rcx)
ret
movupd (%rcx),%xmm0
movupd 0x10(%rcx),%xmm1
subpd  %xmm3,%xmm0
movupd %xmm0,(%rcx)
subpd  %xmm2,%xmm1
movupd %xmm1,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 %324
24: ; preds = %5
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
%25 = load double*, double** %8
%26 = getelementptr inbounds double, double* %25, i64 0
%27 = load double, double* %26
store double %27, double* %13
%28 = load double*, double** %8
%29 = getelementptr inbounds double, double* %28, i64 1
%30 = load double, double* %29
store double %30, double* %14
%31 = load double*, double** %8
%32 = getelementptr inbounds double, double* %31, i64 2
%33 = load double, double* %32
store double %33, double* %15
%34 = load double*, double** %8
%35 = getelementptr inbounds double, double* %34, i64 3
%36 = load double, double* %35
store double %36, double* %16
%37 = load double*, double** %7
%38 = getelementptr inbounds double, double* %37, i64 0
%39 = load double, double* %38
%40 = load double, double* %13
%41 = load double, double* %17
%42 = call double @llvm.fmuladd.f64(double %39, double %40, double %41)
store double %42, double* %17
%43 = load double*, double** %7
%44 = getelementptr inbounds double, double* %43, i64 4
%45 = load double, double* %44
%46 = load double, double* %14
%47 = load double, double* %17
%48 = call double @llvm.fmuladd.f64(double %45, double %46, double %47)
store double %48, double* %17
%49 = load double*, double** %7
%50 = getelementptr inbounds double, double* %49, i64 5
%51 = load double, double* %50
%52 = load double, double* %14
%53 = load double, double* %18
%54 = call double @llvm.fmuladd.f64(double %51, double %52, double %53)
store double %54, double* %18
%55 = load double*, double** %7
%56 = getelementptr inbounds double, double* %55, i64 8
%57 = load double, double* %56
%58 = load double, double* %15
%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 9
%63 = load double, double* %62
%64 = load double, double* %15
%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 10
%69 = load double, double* %68
%70 = load double, double* %15
%71 = load double, double* %19
%72 = call double @llvm.fmuladd.f64(double %69, double %70, double %71)
store double %72, double* %19
%73 = load double*, double** %7
%74 = getelementptr inbounds double, double* %73, i64 12
%75 = load double, double* %74
%76 = load double, double* %16
%77 = load double, double* %17
%78 = call double @llvm.fmuladd.f64(double %75, double %76, double %77)
store double %78, double* %17
%79 = load double*, double** %7
%80 = getelementptr inbounds double, double* %79, i64 13
%81 = load double, double* %80
%82 = load double, double* %16
%83 = load double, double* %18
%84 = call double @llvm.fmuladd.f64(double %81, double %82, double %83)
store double %84, double* %18
%85 = load double*, double** %7
%86 = getelementptr inbounds double, double* %85, i64 14
%87 = load double, double* %86
%88 = load double, double* %16
%89 = load double, double* %19
%90 = call double @llvm.fmuladd.f64(double %87, double %88, double %89)
store double %90, double* %19
%91 = load double*, double** %7
%92 = getelementptr inbounds double, double* %91, i64 15
%93 = load double, double* %92
%94 = load double, double* %16
%95 = load double, double* %20
%96 = call double @llvm.fmuladd.f64(double %93, double %94, double %95)
store double %96, double* %20
%97 = load double*, double** %7
%98 = getelementptr inbounds double, double* %97, i64 16
store double* %98, double** %7
%99 = load double*, double** %8
%100 = getelementptr inbounds double, double* %99, i64 4
store double* %100, double** %8
store i32 4, i32* %12
br label %101
101: ; preds = %219, %24
%102 = load i32, i32* %12
%103 = load i32, i32* %6
%104 = sub nsw i32 %103, 3
%105 = icmp slt i32 %102, %104
br i1 %105, label %106, label %222
106: ; preds = %101
%107 = load double*, double** %8
%108 = getelementptr inbounds double, double* %107, i64 0
%109 = load double, double* %108
store double %109, double* %13
%110 = load double*, double** %8
%111 = getelementptr inbounds double, double* %110, i64 1
%112 = load double, double* %111
store double %112, double* %14
%113 = load double*, double** %8
%114 = getelementptr inbounds double, double* %113, i64 2
%115 = load double, double* %114
store double %115, double* %15
%116 = load double*, double** %8
%117 = getelementptr inbounds double, double* %116, i64 3
%118 = load double, double* %117
store double %118, double* %16
%119 = load double*, double** %7
%120 = getelementptr inbounds double, double* %119, i64 0
%121 = load double, double* %120
%122 = load double, double* %13
%123 = load double, double* %17
%124 = call double @llvm.fmuladd.f64(double %121, double %122, double %123)
store double %124, double* %17
%125 = load double*, double** %7
%126 = getelementptr inbounds double, double* %125, i64 1
%127 = load double, double* %126
%128 = load double, double* %13
%129 = load double, double* %18
%130 = call double @llvm.fmuladd.f64(double %127, double %128, double %129)
store double %130, double* %18
%131 = load double*, double** %7
%132 = getelementptr inbounds double, double* %131, i64 2
%133 = load double, double* %132
%134 = load double, double* %13
%135 = load double, double* %19
%136 = call double @llvm.fmuladd.f64(double %133, double %134, double %135)
store double %136, double* %19
%137 = load double*, double** %7
%138 = getelementptr inbounds double, double* %137, i64 3
%139 = load double, double* %138
%140 = load double, double* %13
%141 = load double, double* %20
%142 = call double @llvm.fmuladd.f64(double %139, double %140, double %141)
store double %142, double* %20
%143 = load double*, double** %7
%144 = getelementptr inbounds double, double* %143, i64 4
%145 = load double, double* %144
%146 = load double, double* %14
%147 = load double, double* %17
%148 = call double @llvm.fmuladd.f64(double %145, double %146, double %147)
store double %148, double* %17
%149 = load double*, double** %7
%150 = getelementptr inbounds double, double* %149, i64 5
%151 = load double, double* %150
%152 = load double, double* %14
%153 = load double, double* %18
%154 = call double @llvm.fmuladd.f64(double %151, double %152, double %153)
store double %154, double* %18
%155 = load double*, double** %7
%156 = getelementptr inbounds double, double* %155, i64 6
%157 = load double, double* %156
%158 = load double, double* %14
%159 = load double, double* %19
%160 = call double @llvm.fmuladd.f64(double %157, double %158, double %159)
store double %160, double* %19
%161 = load double*, double** %7
%162 = getelementptr inbounds double, double* %161, i64 7
%163 = load double, double* %162
%164 = load double, double* %14
%165 = load double, double* %20
%166 = call double @llvm.fmuladd.f64(double %163, double %164, double %165)
store double %166, double* %20
%167 = load double*, double** %7
%168 = getelementptr inbounds double, double* %167, i64 8
%169 = load double, double* %168
%170 = load double, double* %15
%171 = load double, double* %17
%172 = call double @llvm.fmuladd.f64(double %169, double %170, double %171)
store double %172, double* %17
%173 = load double*, double** %7
%174 = getelementptr inbounds double, double* %173, i64 9
%175 = load double, double* %174
%176 = load double, double* %15
%177 = load double, double* %18
%178 = call double @llvm.fmuladd.f64(double %175, double %176, double %177)
store double %178, double* %18
%179 = load double*, double** %7
%180 = getelementptr inbounds double, double* %179, i64 10
%181 = load double, double* %180
%182 = load double, double* %15
%183 = load double, double* %19
%184 = call double @llvm.fmuladd.f64(double %181, double %182, double %183)
store double %184, double* %19
%185 = load double*, double** %7
%186 = getelementptr inbounds double, double* %185, i64 11
%187 = load double, double* %186
%188 = load double, double* %15
%189 = load double, double* %20
%190 = call double @llvm.fmuladd.f64(double %187, double %188, double %189)
store double %190, double* %20
%191 = load double*, double** %7
%192 = getelementptr inbounds double, double* %191, i64 12
%193 = load double, double* %192
%194 = load double, double* %16
%195 = load double, double* %17
%196 = call double @llvm.fmuladd.f64(double %193, double %194, double %195)
store double %196, double* %17
%197 = load double*, double** %7
%198 = getelementptr inbounds double, double* %197, i64 13
%199 = load double, double* %198
%200 = load double, double* %16
%201 = load double, double* %18
%202 = call double @llvm.fmuladd.f64(double %199, double %200, double %201)
store double %202, double* %18
%203 = load double*, double** %7
%204 = getelementptr inbounds double, double* %203, i64 14
%205 = load double, double* %204
%206 = load double, double* %16
%207 = load double, double* %19
%208 = call double @llvm.fmuladd.f64(double %205, double %206, double %207)
store double %208, double* %19
%209 = load double*, double** %7
%210 = getelementptr inbounds double, double* %209, i64 15
%211 = load double, double* %210
%212 = load double, double* %16
%213 = load double, double* %20
%214 = call double @llvm.fmuladd.f64(double %211, double %212, double %213)
store double %214, double* %20
%215 = load double*, double** %7
%216 = getelementptr inbounds double, double* %215, i64 16
store double* %216, double** %7
%217 = load double*, double** %8
%218 = getelementptr inbounds double, double* %217, i64 4
store double* %218, double** %8
br label %219
219: ; preds = %106
%220 = load i32, i32* %12
%221 = add nsw i32 %220, 4
store i32 %221, i32* %12
br label %101
222: ; preds = %101
br label %223
223: ; preds = %259, %222
%224 = load i32, i32* %12
%225 = load i32, i32* %6
%226 = icmp slt i32 %224, %225
br i1 %226, label %227, label %262
227: ; preds = %223
%228 = load double*, double** %8
%229 = getelementptr inbounds double, double* %228, i64 0
%230 = load double, double* %229
store double %230, double* %13
%231 = load double*, double** %7
%232 = getelementptr inbounds double, double* %231, i64 0
%233 = load double, double* %232
%234 = load double, double* %13
%235 = load double, double* %17
%236 = call double @llvm.fmuladd.f64(double %233, double %234, double %235)
store double %236, double* %17
%237 = load double*, double** %7
%238 = getelementptr inbounds double, double* %237, i64 1
%239 = load double, double* %238
%240 = load double, double* %13
%241 = load double, double* %18
%242 = call double @llvm.fmuladd.f64(double %239, double %240, double %241)
store double %242, double* %18
%243 = load double*, double** %7
%244 = getelementptr inbounds double, double* %243, i64 2
%245 = load double, double* %244
%246 = load double, double* %13
%247 = load double, double* %19
%248 = call double @llvm.fmuladd.f64(double %245, double %246, double %247)
store double %248, double* %19
%249 = load double*, double** %7
%250 = getelementptr inbounds double, double* %249, i64 3
%251 = load double, double* %250
%252 = load double, double* %13
%253 = load double, double* %20
%254 = call double @llvm.fmuladd.f64(double %251, double %252, double %253)
store double %254, double* %20
%255 = load double*, double** %7
%256 = getelementptr inbounds double, double* %255, i64 4
store double* %256, double** %7
%257 = load double*, double** %8
%258 = getelementptr inbounds double, double* %257, i64 1
store double* %258, double** %8
br label %259
259: ; preds = %227
%260 = load i32, i32* %12
%261 = add nsw i32 %260, 1
store i32 %261, i32* %12
br label %223
262: ; preds = %223
%263 = load i32, i32* %10
%264 = icmp eq i32 %263, 0
br i1 %264, label %265, label %278
265: ; preds = %262
%266 = load double, double* %17
%267 = load double*, double** %9
%268 = getelementptr inbounds double, double* %267, i64 0
store double %266, double* %268
%269 = load double, double* %18
%270 = load double*, double** %9
%271 = getelementptr inbounds double, double* %270, i64 1
store double %269, double* %271
%272 = load double, double* %19
%273 = load double*, double** %9
%274 = getelementptr inbounds double, double* %273, i64 2
store double %272, double* %274
%275 = load double, double* %20
%276 = load double*, double** %9
%277 = getelementptr inbounds double, double* %276, i64 3
store double %275, double* %277
br label %324
278: ; preds = %262
%279 = load i32, i32* %10
%280 = icmp eq i32 %279, 1
br i1 %280, label %281, label %302
281: ; preds = %278
%282 = load double, double* %17
%283 = load double*, double** %9
%284 = getelementptr inbounds double, double* %283, i64 0
%285 = load double, double* %284
%286 = fadd double %285, %282
store double %286, double* %284
%287 = load double, double* %18
%288 = load double*, double** %9
%289 = getelementptr inbounds double, double* %288, i64 1
%290 = load double, double* %289
%291 = fadd double %290, %287
store double %291, double* %289
%292 = load double, double* %19
%293 = load double*, double** %9
%294 = getelementptr inbounds double, double* %293, i64 2
%295 = load double, double* %294
%296 = fadd double %295, %292
store double %296, double* %294
%297 = load double, double* %20
%298 = load double*, double** %9
%299 = getelementptr inbounds double, double* %298, i64 3
%300 = load double, double* %299
%301 = fadd double %300, %297
store double %301, double* %299
br label %323
302: ; preds = %278
%303 = load double, double* %17
%304 = load double*, double** %9
%305 = getelementptr inbounds double, double* %304, i64 0
%306 = load double, double* %305
%307 = fsub double %306, %303
store double %307, double* %305
%308 = load double, double* %18
%309 = load double*, double** %9
%310 = getelementptr inbounds double, double* %309, i64 1
%311 = load double, double* %310
%312 = fsub double %311, %308
store double %312, double* %310
%313 = load double, double* %19
%314 = load double*, double** %9
%315 = getelementptr inbounds double, double* %314, i64 2
%316 = load double, double* %315
%317 = fsub double %316, %313
store double %317, double* %315
%318 = load double, double* %20
%319 = load double*, double** %9
%320 = getelementptr inbounds double, double* %319, i64 3
%321 = load double, double* %320
%322 = fsub double %321, %318
store double %322, double* %320
br label %323
323: ; preds = %302, %281
br label %324
324: ; preds = %23, %323, %265
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 %215, label %7
7: ; preds = %5
%8 = load double, double* %2
%9 = getelementptr inbounds double, double* %2, i64 1
%10 = load double, double* %9
%11 = getelementptr inbounds double, double* %2, i64 2
%12 = load double, double* %11
%13 = getelementptr inbounds double, double* %2, i64 3
%14 = load double, double* %13
%15 = load double, double* %1
%16 = tail call double @llvm.fmuladd.f64(double %15, double %8, double 0.000000e+00)
%17 = getelementptr inbounds double, double* %1, i64 4
%18 = bitcast double* %17 to <2 x double>*
%19 = load <2 x double>, <2 x double>* %18
%20 = insertelement <2 x double> poison, double %10, i64 0
%21 = shufflevector <2 x double> %20, <2 x double> poison, <2 x i32> zeroinitializer
%22 = insertelement <2 x double> <double poison, double 0.000000e+00>, double %16, i64 0
%23 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %19, <2 x double> %21, <2 x double> %22)
%24 = getelementptr inbounds double, double* %1, i64 8
%25 = bitcast double* %24 to <2 x double>*
%26 = load <2 x double>, <2 x double>* %25
%27 = insertelement <2 x double> poison, double %12, i64 0
%28 = shufflevector <2 x double> %27, <2 x double> poison, <2 x i32> zeroinitializer
%29 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %26, <2 x double> %28, <2 x double> %23)
%30 = getelementptr inbounds double, double* %1, i64 10
%31 = load double, double* %30
%32 = tail call double @llvm.fmuladd.f64(double %31, double %12, double 0.000000e+00)
%33 = getelementptr inbounds double, double* %1, i64 12
%34 = bitcast double* %33 to <2 x double>*
%35 = load <2 x double>, <2 x double>* %34
%36 = insertelement <2 x double> poison, double %14, i64 0
%37 = shufflevector <2 x double> %36, <2 x double> poison, <2 x i32> zeroinitializer
%38 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %35, <2 x double> %37, <2 x double> %29)
%39 = getelementptr inbounds double, double* %1, i64 14
%40 = bitcast double* %39 to <2 x double>*
%41 = load <2 x double>, <2 x double>* %40
%42 = insertelement <2 x double> <double poison, double 0.000000e+00>, double %32, i64 0
%43 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %41, <2 x double> %37, <2 x double> %42)
%44 = add nsw i32 %0, -3
%45 = getelementptr inbounds double, double* %1, i64 16
%46 = getelementptr inbounds double, double* %2, i64 4
%47 = icmp ugt i32 %0, 7
br i1 %47, label %95, label %58
48: ; preds = %95
%49 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %117, <2 x double> %113, <2 x double> %102)
%50 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %127, <2 x double> %123, <2 x double> %49)
%51 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %137, <2 x double> %133, <2 x double> %50)
%52 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %147, <2 x double> %143, <2 x double> %51)
%53 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %111, <2 x double> %113, <2 x double> %101)
%54 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %121, <2 x double> %123, <2 x double> %53)
%55 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %131, <2 x double> %133, <2 x double> %54)
%56 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %141, <2 x double> %143, <2 x double> %55)
%57 = and i32 %0, -4
br label %58
58: ; preds = %48, %7
%59 = phi i32 [ 4, %7 ], [ %57, %48 ]
%60 = phi double* [ %45, %7 ], [ %150, %48 ]
%61 = phi double* [ %46, %7 ], [ %151, %48 ]
%62 = phi <2 x double> [ %38, %7 ], [ %56, %48 ]
%63 = phi <2 x double> [ %43, %7 ], [ %52, %48 ]
%64 = icmp slt i32 %59, %0
br i1 %64, label %65, label %188
65: ; preds = %58
%66 = xor i32 %59, -1
%67 = and i32 %0, 1
%68 = icmp eq i32 %67, 0
br i1 %68, label %85, label %69
69: ; preds = %65
%70 = load double, double* %61
%71 = bitcast double* %60 to <2 x double>*
%72 = load <2 x double>, <2 x double>* %71
%73 = insertelement <2 x double> poison, double %70, i64 0
%74 = shufflevector <2 x double> %73, <2 x double> poison, <2 x i32> zeroinitializer
%75 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %72, <2 x double> %74, <2 x double> %62)
%76 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %72, <2 x double> %74, <2 x double> %62)
%77 = getelementptr inbounds double, double* %60, i64 2
%78 = bitcast double* %77 to <2 x double>*
%79 = load <2 x double>, <2 x double>* %78
%80 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %79, <2 x double> %74, <2 x double> %63)
%81 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %79, <2 x double> %74, <2 x double> %63)
%82 = getelementptr inbounds double, double* %60, i64 4
%83 = getelementptr inbounds double, double* %61, i64 1
%84 = or i32 %59, 1
br label %85
85: ; preds = %69, %65
%86 = phi <2 x double> [ undef, %65 ], [ %76, %69 ]
%87 = phi <2 x double> [ undef, %65 ], [ %81, %69 ]
%88 = phi i32 [ %59, %65 ], [ %84, %69 ]
%89 = phi double* [ %60, %65 ], [ %82, %69 ]
%90 = phi double* [ %61, %65 ], [ %83, %69 ]
%91 = phi <2 x double> [ %62, %65 ], [ %75, %69 ]
%92 = phi <2 x double> [ %63, %65 ], [ %80, %69 ]
%93 = sub i32 0, %0
%94 = icmp eq i32 %66, %93
br i1 %94, label %188, label %153
95: ; preds = %7, %95
%96 = phi double* [ %151, %95 ], [ %46, %7 ]
%97 = phi double* [ %150, %95 ], [ %45, %7 ]
%98 = phi i32 [ %149, %95 ], [ 4, %7 ]
%99 = phi double* [ %97, %95 ], [ %1, %7 ]
%100 = phi double* [ %96, %95 ], [ %2, %7 ]
%101 = phi <2 x double> [ %144, %95 ], [ %38, %7 ]
%102 = phi <2 x double> [ %148, %95 ], [ %43, %7 ]
%103 = load double, double* %96
%104 = getelementptr inbounds double, double* %100, i64 5
%105 = load double, double* %104
%106 = getelementptr inbounds double, double* %100, i64 6
%107 = load double, double* %106
%108 = getelementptr inbounds double, double* %100, i64 7
%109 = load double, double* %108
%110 = bitcast double* %97 to <2 x double>*
%111 = load <2 x double>, <2 x double>* %110
%112 = insertelement <2 x double> poison, double %103, i64 0
%113 = shufflevector <2 x double> %112, <2 x double> poison, <2 x i32> zeroinitializer
%114 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %111, <2 x double> %113, <2 x double> %101)
%115 = getelementptr inbounds double, double* %99, i64 18
%116 = bitcast double* %115 to <2 x double>*
%117 = load <2 x double>, <2 x double>* %116
%118 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %117, <2 x double> %113, <2 x double> %102)
%119 = getelementptr inbounds double, double* %99, i64 20
%120 = bitcast double* %119 to <2 x double>*
%121 = load <2 x double>, <2 x double>* %120
%122 = insertelement <2 x double> poison, double %105, i64 0
%123 = shufflevector <2 x double> %122, <2 x double> poison, <2 x i32> zeroinitializer
%124 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %121, <2 x double> %123, <2 x double> %114)
%125 = getelementptr inbounds double, double* %99, i64 22
%126 = bitcast double* %125 to <2 x double>*
%127 = load <2 x double>, <2 x double>* %126
%128 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %127, <2 x double> %123, <2 x double> %118)
%129 = getelementptr inbounds double, double* %99, i64 24
%130 = bitcast double* %129 to <2 x double>*
%131 = load <2 x double>, <2 x double>* %130
%132 = insertelement <2 x double> poison, double %107, i64 0
%133 = shufflevector <2 x double> %132, <2 x double> poison, <2 x i32> zeroinitializer
%134 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %131, <2 x double> %133, <2 x double> %124)
%135 = getelementptr inbounds double, double* %99, i64 26
%136 = bitcast double* %135 to <2 x double>*
%137 = load <2 x double>, <2 x double>* %136
%138 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %137, <2 x double> %133, <2 x double> %128)
%139 = getelementptr inbounds double, double* %99, i64 28
%140 = bitcast double* %139 to <2 x double>*
%141 = load <2 x double>, <2 x double>* %140
%142 = insertelement <2 x double> poison, double %109, i64 0
%143 = shufflevector <2 x double> %142, <2 x double> poison, <2 x i32> zeroinitializer
%144 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %141, <2 x double> %143, <2 x double> %134)
%145 = getelementptr inbounds double, double* %99, i64 30
%146 = bitcast double* %145 to <2 x double>*
%147 = load <2 x double>, <2 x double>* %146
%148 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %147, <2 x double> %143, <2 x double> %138)
%149 = add nuw nsw i32 %98, 4
%150 = getelementptr inbounds double, double* %97, i64 16
%151 = getelementptr inbounds double, double* %96, i64 4
%152 = icmp slt i32 %149, %44
br i1 %152, label %95, label %48
153: ; preds = %85, %153
%154 = phi i32 [ %183, %153 ], [ %88, %85 ]
%155 = phi double* [ %181, %153 ], [ %89, %85 ]
%156 = phi double* [ %182, %153 ], [ %90, %85 ]
%157 = phi <2 x double> [ %176, %153 ], [ %91, %85 ]
%158 = phi <2 x double> [ %180, %153 ], [ %92, %85 ]
%159 = load double, double* %156
%160 = bitcast double* %155 to <2 x double>*
%161 = load <2 x double>, <2 x double>* %160
%162 = insertelement <2 x double> poison, double %159, i64 0
%163 = shufflevector <2 x double> %162, <2 x double> poison, <2 x i32> zeroinitializer
%164 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %161, <2 x double> %163, <2 x double> %157)
%165 = getelementptr inbounds double, double* %155, i64 2
%166 = bitcast double* %165 to <2 x double>*
%167 = load <2 x double>, <2 x double>* %166
%168 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %167, <2 x double> %163, <2 x double> %158)
%169 = getelementptr inbounds double, double* %155, i64 4
%170 = getelementptr inbounds double, double* %156, i64 1
%171 = load double, double* %170
%172 = bitcast double* %169 to <2 x double>*
%173 = load <2 x double>, <2 x double>* %172
%174 = insertelement <2 x double> poison, double %171, i64 0
%175 = shufflevector <2 x double> %174, <2 x double> poison, <2 x i32> zeroinitializer
%176 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %173, <2 x double> %175, <2 x double> %164)
%177 = getelementptr inbounds double, double* %155, i64 6
%178 = bitcast double* %177 to <2 x double>*
%179 = load <2 x double>, <2 x double>* %178
%180 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %179, <2 x double> %175, <2 x double> %168)
%181 = getelementptr inbounds double, double* %155, i64 8
%182 = getelementptr inbounds double, double* %156, i64 2
%183 = add nuw nsw i32 %154, 2
%184 = icmp eq i32 %183, %0
br i1 %184, label %185, label %153
185: ; preds = %153
%186 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %179, <2 x double> %175, <2 x double> %168)
%187 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %173, <2 x double> %175, <2 x double> %164)
br label %188
188: ; preds = %185, %85, %58
%189 = phi <2 x double> [ %62, %58 ], [ %86, %85 ], [ %187, %185 ]
%190 = phi <2 x double> [ %63, %58 ], [ %87, %85 ], [ %186, %185 ]
switch i32 %4, label %205 [
i32 0, label %191
i32 1, label %195
]
191: ; preds = %188
%192 = bitcast double* %3 to <2 x double>*
store <2 x double> %189, <2 x double>* %192
%193 = getelementptr inbounds double, double* %3, i64 2
%194 = bitcast double* %193 to <2 x double>*
store <2 x double> %190, <2 x double>* %194
br label %215
195: ; preds = %188
%196 = bitcast double* %3 to <2 x double>*
%197 = load <2 x double>, <2 x double>* %196
%198 = fadd <2 x double> %189, %197
%199 = bitcast double* %3 to <2 x double>*
store <2 x double> %198, <2 x double>* %199
%200 = getelementptr inbounds double, double* %3, i64 2
%201 = bitcast double* %200 to <2 x double>*
%202 = load <2 x double>, <2 x double>* %201
%203 = fadd <2 x double> %190, %202
%204 = bitcast double* %200 to <2 x double>*
store <2 x double> %203, <2 x double>* %204
br label %215
205: ; preds = %188
%206 = bitcast double* %3 to <2 x double>*
%207 = load <2 x double>, <2 x double>* %206
%208 = fsub <2 x double> %207, %189
%209 = bitcast double* %3 to <2 x double>*
store <2 x double> %208, <2 x double>* %209
%210 = getelementptr inbounds double, double* %3, i64 2
%211 = bitcast double* %210 to <2 x double>*
%212 = load <2 x double>, <2 x double>* %211
%213 = fsub <2 x double> %212, %190
%214 = bitcast double* %210 to <2 x double>*
store <2 x double> %213, <2 x double>* %214
br label %215
215: ; preds = %191, %205, %195, %5
ret void
}