void kernel_dtrmv_u_t_2_lib4(int kmax, double *A, int sda, double *x, double *y,
                             int alg) {
  const int lda = 4;
  const int bs = 4;
  int k;
  double x_0, x_1, x_2, x_3, y_0 = 0, y_1 = 0;
  k = 0;
  for (; k < kmax - 7; k += 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[0 + lda * 1] * x_0;
    y_0 += A[1 + lda * 0] * x_1;
    y_1 += A[1 + lda * 1] * x_1;
    y_0 += A[2 + lda * 0] * x_2;
    y_1 += A[2 + lda * 1] * x_2;
    y_0 += A[3 + lda * 0] * x_3;
    y_1 += A[3 + lda * 1] * x_3;
    A += sda * bs;
    x += 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[0 + lda * 1] * x_0;
    y_0 += A[1 + lda * 0] * x_1;
    y_1 += A[1 + lda * 1] * x_1;
    y_0 += A[2 + lda * 0] * x_2;
    y_1 += A[2 + lda * 1] * x_2;
    y_0 += A[3 + lda * 0] * x_3;
    y_1 += A[3 + lda * 1] * x_3;
    A += sda * bs;
    x += 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[0 + lda * 1] * x_0;
    y_0 += A[1 + lda * 0] * x_1;
    y_1 += A[1 + lda * 1] * x_1;
    y_0 += A[2 + lda * 0] * x_2;
    y_1 += A[2 + lda * 1] * x_2;
    y_0 += A[3 + lda * 0] * x_3;
    y_1 += A[3 + lda * 1] * x_3;
    A += sda * bs;
    x += 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[0 + lda * 1] * x_0;
  y_1 += A[1 + lda * 1] * x_1;
  if (alg == 0) {
    y[0] = y_0;
    y[1] = y_1;
  } else if (alg == 1) {
    y[0] += y_0;
    y[1] += y_1;
  } else {
    y[0] -= y_0;
    y[1] -= y_1;
  }
}


x86 assembly (clang, -O0):
<kernel_dtrmv_u_t_2_lib4>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9d,-0x2c(%rbp)
movl   $0x4,-0x30(%rbp)
movl   $0x4,-0x34(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x60(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x68(%rbp)
movl   $0x0,-0x38(%rbp)
mov    -0x38(%rbp),%eax
mov    -0x4(%rbp),%ecx
sub    $0x7,%ecx
cmp    %ecx,%eax
jge    1412 <kernel_dtrmv_u_t_2_lib4+0x312>
mov    -0x20(%rbp),%rax
movsd  (%rax),%xmm0
movsd  %xmm0,-0x40(%rbp)
mov    -0x20(%rbp),%rax
movsd  0x8(%rax),%xmm0
movsd  %xmm0,-0x48(%rbp)
mov    -0x20(%rbp),%rax
movsd  0x10(%rax),%xmm0
movsd  %xmm0,-0x50(%rbp)
mov    -0x20(%rbp),%rax
movsd  0x18(%rax),%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    -0x10(%rbp),%rax
movsd  (%rax),%xmm0
movsd  -0x40(%rbp),%xmm2
movsd  -0x60(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x60(%rbp)
mov    -0x10(%rbp),%rax
movsd  0x20(%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  0x8(%rax),%xmm0
movsd  -0x48(%rbp),%xmm2
movsd  -0x60(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x60(%rbp)
mov    -0x10(%rbp),%rax
movsd  0x28(%rax),%xmm0
movsd  -0x48(%rbp),%xmm2
movsd  -0x68(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x68(%rbp)
mov    -0x10(%rbp),%rax
movsd  0x10(%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  0x30(%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  0x18(%rax),%xmm0
movsd  -0x58(%rbp),%xmm2
movsd  -0x60(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x60(%rbp)
mov    -0x10(%rbp),%rax
movsd  0x38(%rax),%xmm0
movsd  -0x58(%rbp),%xmm2
movsd  -0x68(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x68(%rbp)
mov    -0x14(%rbp),%ecx
shl    $0x2,%ecx
mov    -0x10(%rbp),%rax
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x10(%rbp)
mov    -0x20(%rbp),%rax
add    $0x20,%rax
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rax
movsd  (%rax),%xmm0
movsd  %xmm0,-0x40(%rbp)
mov    -0x20(%rbp),%rax
movsd  0x8(%rax),%xmm0
movsd  %xmm0,-0x48(%rbp)
mov    -0x20(%rbp),%rax
movsd  0x10(%rax),%xmm0
movsd  %xmm0,-0x50(%rbp)
mov    -0x20(%rbp),%rax
movsd  0x18(%rax),%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    -0x10(%rbp),%rax
movsd  (%rax),%xmm0
movsd  -0x40(%rbp),%xmm2
movsd  -0x60(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x60(%rbp)
mov    -0x10(%rbp),%rax
movsd  0x20(%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  0x8(%rax),%xmm0
movsd  -0x48(%rbp),%xmm2
movsd  -0x60(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x60(%rbp)
mov    -0x10(%rbp),%rax
movsd  0x28(%rax),%xmm0
movsd  -0x48(%rbp),%xmm2
movsd  -0x68(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x68(%rbp)
mov    -0x10(%rbp),%rax
movsd  0x10(%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  0x30(%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  0x18(%rax),%xmm0
movsd  -0x58(%rbp),%xmm2
movsd  -0x60(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x60(%rbp)
mov    -0x10(%rbp),%rax
movsd  0x38(%rax),%xmm0
movsd  -0x58(%rbp),%xmm2
movsd  -0x68(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x68(%rbp)
mov    -0x14(%rbp),%ecx
shl    $0x2,%ecx
mov    -0x10(%rbp),%rax
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x10(%rbp)
mov    -0x20(%rbp),%rax
add    $0x20,%rax
mov    %rax,-0x20(%rbp)
mov    -0x38(%rbp),%eax
add    $0x8,%eax
mov    %eax,-0x38(%rbp)
jmp    113f <kernel_dtrmv_u_t_2_lib4+0x3f>
jmp    1417 <kernel_dtrmv_u_t_2_lib4+0x317>
mov    -0x38(%rbp),%eax
mov    -0x4(%rbp),%ecx
sub    $0x3,%ecx
cmp    %ecx,%eax
jge    1590 <kernel_dtrmv_u_t_2_lib4+0x490>
mov    -0x20(%rbp),%rax
movsd  (%rax),%xmm0
movsd  %xmm0,-0x40(%rbp)
mov    -0x20(%rbp),%rax
movsd  0x8(%rax),%xmm0
movsd  %xmm0,-0x48(%rbp)
mov    -0x20(%rbp),%rax
movsd  0x10(%rax),%xmm0
movsd  %xmm0,-0x50(%rbp)
mov    -0x20(%rbp),%rax
movsd  0x18(%rax),%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    -0x10(%rbp),%rax
movsd  (%rax),%xmm0
movsd  -0x40(%rbp),%xmm2
movsd  -0x60(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x60(%rbp)
mov    -0x10(%rbp),%rax
movsd  0x20(%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  0x8(%rax),%xmm0
movsd  -0x48(%rbp),%xmm2
movsd  -0x60(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x60(%rbp)
mov    -0x10(%rbp),%rax
movsd  0x28(%rax),%xmm0
movsd  -0x48(%rbp),%xmm2
movsd  -0x68(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x68(%rbp)
mov    -0x10(%rbp),%rax
movsd  0x10(%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  0x30(%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  0x18(%rax),%xmm0
movsd  -0x58(%rbp),%xmm2
movsd  -0x60(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x60(%rbp)
mov    -0x10(%rbp),%rax
movsd  0x38(%rax),%xmm0
movsd  -0x58(%rbp),%xmm2
movsd  -0x68(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x68(%rbp)
mov    -0x14(%rbp),%ecx
shl    $0x2,%ecx
mov    -0x10(%rbp),%rax
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x10(%rbp)
mov    -0x20(%rbp),%rax
add    $0x20,%rax
mov    %rax,-0x20(%rbp)
mov    -0x38(%rbp),%eax
add    $0x4,%eax
mov    %eax,-0x38(%rbp)
jmp    1417 <kernel_dtrmv_u_t_2_lib4+0x317>
mov    -0x20(%rbp),%rax
movsd  (%rax),%xmm0
movsd  %xmm0,-0x40(%rbp)
mov    -0x20(%rbp),%rax
movsd  0x8(%rax),%xmm0
movsd  %xmm0,-0x48(%rbp)
mov    -0x20(%rbp),%rax
movsd  0x10(%rax),%xmm0
movsd  %xmm0,-0x50(%rbp)
mov    -0x20(%rbp),%rax
movsd  0x18(%rax),%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    -0x10(%rbp),%rax
movsd  (%rax),%xmm0
movsd  -0x40(%rbp),%xmm2
movsd  -0x60(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x60(%rbp)
mov    -0x10(%rbp),%rax
movsd  0x20(%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  0x28(%rax),%xmm0
movsd  -0x48(%rbp),%xmm2
movsd  -0x68(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x68(%rbp)
cmpl   $0x0,-0x2c(%rbp)
jne    1650 <kernel_dtrmv_u_t_2_lib4+0x550>
movsd  -0x60(%rbp),%xmm0
mov    -0x28(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  -0x68(%rbp),%xmm0
mov    -0x28(%rbp),%rax
movsd  %xmm0,0x8(%rax)
jmp    16b4 <kernel_dtrmv_u_t_2_lib4+0x5b4>
cmpl   $0x1,-0x2c(%rbp)
jne    1683 <kernel_dtrmv_u_t_2_lib4+0x583>
movsd  -0x60(%rbp),%xmm0
mov    -0x28(%rbp),%rax
addsd  (%rax),%xmm0
movsd  %xmm0,(%rax)
movsd  -0x68(%rbp),%xmm0
mov    -0x28(%rbp),%rax
addsd  0x8(%rax),%xmm0
movsd  %xmm0,0x8(%rax)
jmp    16af <kernel_dtrmv_u_t_2_lib4+0x5af>
movsd  -0x60(%rbp),%xmm1
mov    -0x28(%rbp),%rax
movsd  (%rax),%xmm0
subsd  %xmm1,%xmm0
movsd  %xmm0,(%rax)
movsd  -0x68(%rbp),%xmm1
mov    -0x28(%rbp),%rax
movsd  0x8(%rax),%xmm0
subsd  %xmm1,%xmm0
movsd  %xmm0,0x8(%rax)
jmp    16b4 <kernel_dtrmv_u_t_2_lib4+0x5b4>
pop    %rbp
ret

x86 assembly (clang, -O2):
<kernel_dtrmv_u_t_2_lib4>:
push   %rbp
push   %rbx
cmp    $0x8,%edi
jl     123f <kernel_dtrmv_u_t_2_lib4+0x13f>
lea    -0x7(%rdi),%r11d
lea    0x0(,%rdx,4),%eax
cltq
mov    %rax,%r10
shl    $0x4,%r10
shl    $0x3,%rax
xorpd  %xmm1,%xmm1
xor    %ebp,%ebp
nopl   0x0(%rax)
mov    %rsi,%rbx
movsd  (%rsi),%xmm2
movsd  0x8(%rsi),%xmm3
movsd  0x10(%rsi),%xmm4
movhpd 0x20(%rsi),%xmm2
movsd  0x18(%rsi),%xmm8
movsd  (%rcx),%xmm6
movsd  0x8(%rcx),%xmm7
movsd  0x10(%rcx),%xmm5
movsd  0x18(%rcx),%xmm0
unpcklpd %xmm6,%xmm6
mulpd  %xmm2,%xmm6
addpd  %xmm1,%xmm6
movhpd 0x28(%rsi),%xmm3
unpcklpd %xmm7,%xmm7
mulpd  %xmm3,%xmm7
addpd  %xmm6,%xmm7
movhpd 0x30(%rsi),%xmm4
unpcklpd %xmm5,%xmm5
mulpd  %xmm4,%xmm5
addpd  %xmm7,%xmm5
movhpd 0x38(%rsi),%xmm8
unpcklpd %xmm0,%xmm0
mulpd  %xmm8,%xmm0
addpd  %xmm5,%xmm0
lea    (%rsi,%rax,1),%rsi
movsd  (%rbx,%rax,1),%xmm2
movsd  0x8(%rbx,%rax,1),%xmm3
movsd  0x10(%rbx,%rax,1),%xmm4
movsd  0x18(%rbx,%rax,1),%xmm1
movhpd 0x20(%rbx,%rax,1),%xmm2
movsd  0x20(%rcx),%xmm5
unpcklpd %xmm5,%xmm5
mulpd  %xmm2,%xmm5
addpd  %xmm0,%xmm5
movhpd 0x28(%rbx,%rax,1),%xmm3
movsd  0x28(%rcx),%xmm0
unpcklpd %xmm0,%xmm0
mulpd  %xmm3,%xmm0
addpd  %xmm5,%xmm0
movhpd 0x30(%rbx,%rax,1),%xmm4
movsd  0x30(%rcx),%xmm2
unpcklpd %xmm2,%xmm2
mulpd  %xmm4,%xmm2
addpd  %xmm0,%xmm2
movhpd 0x38(%rbx,%rax,1),%xmm1
movsd  0x38(%rcx),%xmm0
unpcklpd %xmm0,%xmm0
mulpd  %xmm1,%xmm0
movapd %xmm0,%xmm1
addpd  %xmm2,%xmm1
add    $0x40,%rcx
add    $0x8,%ebp
add    %rax,%rsi
cmp    %r11d,%ebp
jl     1130 <kernel_dtrmv_u_t_2_lib4+0x30>
add    %r10,%rbx
addpd  %xmm2,%xmm0
mov    %edi,%eax
and    $0xfffffff8,%eax
mov    %rbx,%rsi
jmp    1245 <kernel_dtrmv_u_t_2_lib4+0x145>
xorpd  %xmm0,%xmm0
xor    %eax,%eax
add    $0xfffffffd,%edi
cmp    %edi,%eax
jge    12e7 <kernel_dtrmv_u_t_2_lib4+0x1e7>
shl    $0x2,%edx
movslq %edx,%rdx
shl    $0x3,%rdx
nopw   0x0(%rax,%rax,1)
movsd  (%rsi),%xmm4
movsd  0x8(%rsi),%xmm5
movsd  0x10(%rsi),%xmm6
movsd  0x18(%rsi),%xmm8
movhpd 0x20(%rsi),%xmm4
movsd  (%rcx),%xmm7
movsd  0x8(%rcx),%xmm3
movsd  0x10(%rcx),%xmm2
movsd  0x18(%rcx),%xmm1
unpcklpd %xmm7,%xmm7
mulpd  %xmm4,%xmm7
addpd  %xmm0,%xmm7
movhpd 0x28(%rsi),%xmm5
unpcklpd %xmm3,%xmm3
mulpd  %xmm5,%xmm3
addpd  %xmm7,%xmm3
movhpd 0x30(%rsi),%xmm6
unpcklpd %xmm2,%xmm2
mulpd  %xmm6,%xmm2
movhpd 0x38(%rsi),%xmm8
addpd  %xmm3,%xmm2
unpcklpd %xmm1,%xmm1
mulpd  %xmm8,%xmm1
movapd %xmm1,%xmm0
addpd  %xmm2,%xmm0
add    $0x20,%rcx
add    $0x4,%eax
add    %rdx,%rsi
cmp    %edi,%eax
jl     1260 <kernel_dtrmv_u_t_2_lib4+0x160>
addpd  %xmm2,%xmm1
movapd %xmm1,%xmm0
movupd (%rcx),%xmm2
movapd %xmm0,%xmm1
unpckhpd %xmm0,%xmm1
movsd  0x20(%rsi),%xmm3
mulsd  %xmm2,%xmm3
addsd  %xmm1,%xmm3
movsd  (%rsi),%xmm1
movhpd 0x28(%rsi),%xmm1
unpcklpd %xmm3,%xmm0
mulpd  %xmm2,%xmm1
addpd  %xmm0,%xmm1
cmp    $0x1,%r9d
je     1327 <kernel_dtrmv_u_t_2_lib4+0x227>
test   %r9d,%r9d
jne    1337 <kernel_dtrmv_u_t_2_lib4+0x237>
movupd %xmm1,(%r8)
jmp    1345 <kernel_dtrmv_u_t_2_lib4+0x245>
movupd (%r8),%xmm0
addpd  %xmm0,%xmm1
movupd %xmm1,(%r8)
jmp    1345 <kernel_dtrmv_u_t_2_lib4+0x245>
movupd (%r8),%xmm0
subpd  %xmm1,%xmm0
movupd %xmm0,(%r8)
pop    %rbx
pop    %rbp
ret

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

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