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


x86 assembly (clang, -O0):
<kernel_dgemv_t_2_lib4>:
push   %rbp
mov    %rsp,%rbp
mov    0x10(%rbp),%eax
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9,-0x30(%rbp)
cmpl   $0x0,-0x4(%rbp)
jg     112c <kernel_dgemv_t_2_lib4+0x2c>
jmp    140a <kernel_dgemv_t_2_lib4+0x30a>
movl   $0x4,-0x34(%rbp)
movl   $0x4,-0x38(%rbp)
mov    -0x4(%rbp),%eax
mov    %eax,-0x40(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x68(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x70(%rbp)
mov    -0x10(%rbp),%rax
prefetcht0 (%rax)
movl   $0x0,-0x3c(%rbp)
mov    -0x3c(%rbp),%eax
mov    -0x40(%rbp),%ecx
sub    $0x4,%ecx
add    $0x1,%ecx
cmp    %ecx,%eax
jge    12f1 <kernel_dgemv_t_2_lib4+0x1f1>
mov    -0x10(%rbp),%rax
mov    -0x14(%rbp),%ecx
shl    $0x2,%ecx
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
prefetcht0 (%rax)
mov    -0x20(%rbp),%rax
movsd  (%rax),%xmm0
movsd  %xmm0,-0x48(%rbp)
mov    -0x20(%rbp),%rax
movsd  0x8(%rax),%xmm0
movsd  %xmm0,-0x50(%rbp)
mov    -0x20(%rbp),%rax
movsd  0x10(%rax),%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    -0x20(%rbp),%rax
movsd  0x18(%rax),%xmm0
movsd  %xmm0,-0x60(%rbp)
mov    -0x10(%rbp),%rax
movsd  (%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  0x20(%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  0x8(%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  0x28(%rax),%xmm0
movsd  -0x50(%rbp),%xmm2
movsd  -0x70(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x70(%rbp)
mov    -0x10(%rbp),%rax
movsd  0x10(%rax),%xmm0
movsd  -0x58(%rbp),%xmm2
movsd  -0x68(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x68(%rbp)
mov    -0x10(%rbp),%rax
movsd  0x30(%rax),%xmm0
movsd  -0x58(%rbp),%xmm2
movsd  -0x70(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x70(%rbp)
mov    -0x10(%rbp),%rax
movsd  0x18(%rax),%xmm0
movsd  -0x60(%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  -0x60(%rbp),%xmm2
movsd  -0x70(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x70(%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    -0x3c(%rbp),%eax
add    $0x4,%eax
mov    %eax,-0x3c(%rbp)
jmp    115e <kernel_dgemv_t_2_lib4+0x5e>
jmp    12f6 <kernel_dgemv_t_2_lib4+0x1f6>
mov    -0x3c(%rbp),%eax
cmp    -0x40(%rbp),%eax
jge    1374 <kernel_dgemv_t_2_lib4+0x274>
mov    -0x20(%rbp),%rax
movsd  (%rax),%xmm0
movsd  %xmm0,-0x48(%rbp)
mov    -0x10(%rbp),%rax
movsd  (%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  0x20(%rax),%xmm0
movsd  -0x48(%rbp),%xmm2
movsd  -0x70(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x70(%rbp)
mov    -0x10(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x10(%rbp)
mov    -0x20(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x20(%rbp)
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    12f6 <kernel_dgemv_t_2_lib4+0x1f6>
cmpl   $0x0,0x10(%rbp)
jne    139e <kernel_dgemv_t_2_lib4+0x29e>
movsd  -0x68(%rbp),%xmm0
mov    -0x28(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  -0x70(%rbp),%xmm0
mov    -0x28(%rbp),%rax
movsd  %xmm0,0x8(%rax)
jmp    140a <kernel_dgemv_t_2_lib4+0x30a>
cmpl   $0x1,0x10(%rbp)
jne    13d9 <kernel_dgemv_t_2_lib4+0x2d9>
mov    -0x28(%rbp),%rax
movsd  (%rax),%xmm0
addsd  -0x68(%rbp),%xmm0
mov    -0x30(%rbp),%rax
movsd  %xmm0,(%rax)
mov    -0x28(%rbp),%rax
movsd  0x8(%rax),%xmm0
addsd  -0x70(%rbp),%xmm0
mov    -0x30(%rbp),%rax
movsd  %xmm0,0x8(%rax)
jmp    1405 <kernel_dgemv_t_2_lib4+0x305>
mov    -0x28(%rbp),%rax
movsd  (%rax),%xmm0
subsd  -0x68(%rbp),%xmm0
mov    -0x30(%rbp),%rax
movsd  %xmm0,(%rax)
mov    -0x28(%rbp),%rax
movsd  0x8(%rax),%xmm0
subsd  -0x70(%rbp),%xmm0
mov    -0x30(%rbp),%rax
movsd  %xmm0,0x8(%rax)
jmp    140a <kernel_dgemv_t_2_lib4+0x30a>
pop    %rbp
ret

x86 assembly (clang, -O2):
<kernel_dgemv_t_2_lib4>:
test   %edi,%edi
jle    12c6 <kernel_dgemv_t_2_lib4+0x1c6>
prefetcht0 (%rsi)
cmp    $0x4,%edi
jb     11c3 <kernel_dgemv_t_2_lib4+0xc3>
lea    -0x3(%rdi),%r10d
shl    $0x2,%edx
movslq %edx,%rdx
shl    $0x3,%rdx
xorpd  %xmm1,%xmm1
xor    %eax,%eax
nopl   0x0(%rax,%rax,1)
prefetcht0 (%rsi,%rdx,1)
movsd  (%rsi),%xmm5
movsd  0x8(%rsi),%xmm4
movsd  0x10(%rsi),%xmm3
movsd  0x18(%rsi),%xmm8
movhpd 0x20(%rsi),%xmm5
movhpd 0x28(%rsi),%xmm4
movhpd 0x30(%rsi),%xmm3
movhpd 0x38(%rsi),%xmm8
add    %rdx,%rsi
movsd  (%rcx),%xmm7
movsd  0x8(%rcx),%xmm2
movsd  0x10(%rcx),%xmm6
movsd  0x18(%rcx),%xmm0
unpcklpd %xmm7,%xmm7
mulpd  %xmm5,%xmm7
addpd  %xmm1,%xmm7
unpcklpd %xmm2,%xmm2
mulpd  %xmm4,%xmm2
addpd  %xmm7,%xmm2
unpcklpd %xmm6,%xmm6
mulpd  %xmm3,%xmm6
addpd  %xmm2,%xmm6
unpcklpd %xmm0,%xmm0
mulpd  %xmm8,%xmm0
movapd %xmm0,%xmm1
addpd  %xmm6,%xmm1
add    $0x20,%rcx
add    $0x4,%eax
cmp    %r10d,%eax
jl     1130 <kernel_dgemv_t_2_lib4+0x30>
addpd  %xmm6,%xmm0
mov    %edi,%edx
and    $0xfffffffc,%edx
jmp    11c9 <kernel_dgemv_t_2_lib4+0xc9>
xorpd  %xmm0,%xmm0
xor    %edx,%edx
mov    0x8(%rsp),%r10d
cmp    %edi,%edx
jge    11e5 <kernel_dgemv_t_2_lib4+0xe5>
mov    %edx,%eax
not    %eax
test   $0x1,%dil
jne    11ee <kernel_dgemv_t_2_lib4+0xee>
add    %edi,%eax
jne    121a <kernel_dgemv_t_2_lib4+0x11a>
jmp    126a <kernel_dgemv_t_2_lib4+0x16a>
movapd %xmm0,%xmm1
jmp    126a <kernel_dgemv_t_2_lib4+0x16a>
movsd  (%rsi),%xmm2
movhpd 0x20(%rsi),%xmm2
movsd  (%rcx),%xmm1
unpcklpd %xmm1,%xmm1
mulpd  %xmm2,%xmm1
addpd  %xmm0,%xmm1
add    $0x8,%rsi
add    $0x8,%rcx
or     $0x1,%edx
movapd %xmm1,%xmm0
add    %edi,%eax
je     126a <kernel_dgemv_t_2_lib4+0x16a>
sub    %edx,%edi
xor    %eax,%eax
xchg   %ax,%ax
movsd  (%rsi,%rax,8),%xmm3
movsd  0x8(%rsi,%rax,8),%xmm4
movhpd 0x20(%rsi,%rax,8),%xmm3
movsd  (%rcx,%rax,8),%xmm2
movsd  0x8(%rcx,%rax,8),%xmm1
unpcklpd %xmm2,%xmm2
mulpd  %xmm3,%xmm2
addpd  %xmm0,%xmm2
movhpd 0x28(%rsi,%rax,8),%xmm4
unpcklpd %xmm1,%xmm1
mulpd  %xmm4,%xmm1
movapd %xmm1,%xmm0
addpd  %xmm2,%xmm0
add    $0x2,%rax
cmp    %eax,%edi
jne    1220 <kernel_dgemv_t_2_lib4+0x120>
addpd  %xmm2,%xmm1
cmp    $0x1,%r10d
je     1280 <kernel_dgemv_t_2_lib4+0x180>
test   %r10d,%r10d
jne    129d <kernel_dgemv_t_2_lib4+0x19d>
movlpd %xmm1,(%r8)
unpckhpd %xmm1,%xmm1
jmp    12c0 <kernel_dgemv_t_2_lib4+0x1c0>
movsd  (%r8),%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,(%r9)
unpckhpd %xmm1,%xmm1
addsd  0x8(%r8),%xmm1
mov    %r9,%r8
jmp    12c0 <kernel_dgemv_t_2_lib4+0x1c0>
movsd  (%r8),%xmm0
subsd  %xmm1,%xmm0
movsd  %xmm0,(%r9)
movsd  0x8(%r8),%xmm0
unpckhpd %xmm1,%xmm1
subsd  %xmm1,%xmm0
mov    %r9,%r8
movapd %xmm0,%xmm1
movsd  %xmm1,0x8(%r8)
ret

LLVM IR (-O0):
define void @kernel_dgemv_t_2_lib4(i32 %0, double* %1, i32 %2, double* %3, double* %4, double* %5, i32 %6) {
%8 = alloca i32
%9 = alloca double*
%10 = alloca i32
%11 = alloca double*
%12 = alloca double*
%13 = alloca double*
%14 = alloca i32
%15 = alloca i32
%16 = alloca i32
%17 = alloca i32
%18 = alloca i32
%19 = alloca double
%20 = alloca double
%21 = alloca double
%22 = alloca double
%23 = alloca double
%24 = alloca double
store i32 %0, i32* %8
store double* %1, double** %9
store i32 %2, i32* %10
store double* %3, double** %11
store double* %4, double** %12
store double* %5, double** %13
store i32 %6, i32* %14
%25 = load i32, i32* %8
%26 = icmp sle i32 %25, 0
br i1 %26, label %27, label %28
27: ; preds = %7
br label %187
28: ; preds = %7
store i32 4, i32* %15
store i32 4, i32* %16
%29 = load i32, i32* %8
store i32 %29, i32* %18
store double 0.000000e+00, double* %23
store double 0.000000e+00, double* %24
%30 = load double*, double** %9
%31 = bitcast double* %30 to i8*
store i32 0, i32* %17
br label %32
32: ; preds = %112, %28
%33 = load i32, i32* %17
%34 = load i32, i32* %18
%35 = sub nsw i32 %34, 4
%36 = add nsw i32 %35, 1
%37 = icmp slt i32 %33, %36
br i1 %37, label %38, label %115
38: ; preds = %32
%39 = load double*, double** %9
%40 = load i32, i32* %10
%41 = mul nsw i32 %40, 4
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds double, double* %39, i64 %42
%44 = bitcast double* %43 to i8*
%45 = load double*, double** %11
%46 = getelementptr inbounds double, double* %45, i64 0
%47 = load double, double* %46
store double %47, double* %19
%48 = load double*, double** %11
%49 = getelementptr inbounds double, double* %48, i64 1
%50 = load double, double* %49
store double %50, double* %20
%51 = load double*, double** %11
%52 = getelementptr inbounds double, double* %51, i64 2
%53 = load double, double* %52
store double %53, double* %21
%54 = load double*, double** %11
%55 = getelementptr inbounds double, double* %54, i64 3
%56 = load double, double* %55
store double %56, double* %22
%57 = load double*, double** %9
%58 = getelementptr inbounds double, double* %57, i64 0
%59 = load double, double* %58
%60 = load double, double* %19
%61 = load double, double* %23
%62 = call double @llvm.fmuladd.f64(double %59, double %60, double %61)
store double %62, double* %23
%63 = load double*, double** %9
%64 = getelementptr inbounds double, double* %63, i64 4
%65 = load double, double* %64
%66 = load double, double* %19
%67 = load double, double* %24
%68 = call double @llvm.fmuladd.f64(double %65, double %66, double %67)
store double %68, double* %24
%69 = load double*, double** %9
%70 = getelementptr inbounds double, double* %69, i64 1
%71 = load double, double* %70
%72 = load double, double* %20
%73 = load double, double* %23
%74 = call double @llvm.fmuladd.f64(double %71, double %72, double %73)
store double %74, double* %23
%75 = load double*, double** %9
%76 = getelementptr inbounds double, double* %75, i64 5
%77 = load double, double* %76
%78 = load double, double* %20
%79 = load double, double* %24
%80 = call double @llvm.fmuladd.f64(double %77, double %78, double %79)
store double %80, double* %24
%81 = load double*, double** %9
%82 = getelementptr inbounds double, double* %81, i64 2
%83 = load double, double* %82
%84 = load double, double* %21
%85 = load double, double* %23
%86 = call double @llvm.fmuladd.f64(double %83, double %84, double %85)
store double %86, double* %23
%87 = load double*, double** %9
%88 = getelementptr inbounds double, double* %87, i64 6
%89 = load double, double* %88
%90 = load double, double* %21
%91 = load double, double* %24
%92 = call double @llvm.fmuladd.f64(double %89, double %90, double %91)
store double %92, double* %24
%93 = load double*, double** %9
%94 = getelementptr inbounds double, double* %93, i64 3
%95 = load double, double* %94
%96 = load double, double* %22
%97 = load double, double* %23
%98 = call double @llvm.fmuladd.f64(double %95, double %96, double %97)
store double %98, double* %23
%99 = load double*, double** %9
%100 = getelementptr inbounds double, double* %99, i64 7
%101 = load double, double* %100
%102 = load double, double* %22
%103 = load double, double* %24
%104 = call double @llvm.fmuladd.f64(double %101, double %102, double %103)
store double %104, double* %24
%105 = load i32, i32* %10
%106 = mul nsw i32 %105, 4
%107 = load double*, double** %9
%108 = sext i32 %106 to i64
%109 = getelementptr inbounds double, double* %107, i64 %108
store double* %109, double** %9
%110 = load double*, double** %11
%111 = getelementptr inbounds double, double* %110, i64 4
store double* %111, double** %11
br label %112
112: ; preds = %38
%113 = load i32, i32* %17
%114 = add nsw i32 %113, 4
store i32 %114, i32* %17
br label %32
115: ; preds = %32
br label %116
116: ; preds = %140, %115
%117 = load i32, i32* %17
%118 = load i32, i32* %18
%119 = icmp slt i32 %117, %118
br i1 %119, label %120, label %143
120: ; preds = %116
%121 = load double*, double** %11
%122 = getelementptr inbounds double, double* %121, i64 0
%123 = load double, double* %122
store double %123, double* %19
%124 = load double*, double** %9
%125 = getelementptr inbounds double, double* %124, i64 0
%126 = load double, double* %125
%127 = load double, double* %19
%128 = load double, double* %23
%129 = call double @llvm.fmuladd.f64(double %126, double %127, double %128)
store double %129, double* %23
%130 = load double*, double** %9
%131 = getelementptr inbounds double, double* %130, i64 4
%132 = load double, double* %131
%133 = load double, double* %19
%134 = load double, double* %24
%135 = call double @llvm.fmuladd.f64(double %132, double %133, double %134)
store double %135, double* %24
%136 = load double*, double** %9
%137 = getelementptr inbounds double, double* %136, i64 1
store double* %137, double** %9
%138 = load double*, double** %11
%139 = getelementptr inbounds double, double* %138, i64 1
store double* %139, double** %11
br label %140
140: ; preds = %120
%141 = load i32, i32* %17
%142 = add nsw i32 %141, 1
store i32 %142, i32* %17
br label %116
143: ; preds = %116
%144 = load i32, i32* %14
%145 = icmp eq i32 %144, 0
br i1 %145, label %146, label %153
146: ; preds = %143
%147 = load double, double* %23
%148 = load double*, double** %12
%149 = getelementptr inbounds double, double* %148, i64 0
store double %147, double* %149
%150 = load double, double* %24
%151 = load double*, double** %12
%152 = getelementptr inbounds double, double* %151, i64 1
store double %150, double* %152
br label %187
153: ; preds = %143
%154 = load i32, i32* %14
%155 = icmp eq i32 %154, 1
br i1 %155, label %156, label %171
156: ; preds = %153
%157 = load double*, double** %12
%158 = getelementptr inbounds double, double* %157, i64 0
%159 = load double, double* %158
%160 = load double, double* %23
%161 = fadd double %159, %160
%162 = load double*, double** %13
%163 = getelementptr inbounds double, double* %162, i64 0
store double %161, double* %163
%164 = load double*, double** %12
%165 = getelementptr inbounds double, double* %164, i64 1
%166 = load double, double* %165
%167 = load double, double* %24
%168 = fadd double %166, %167
%169 = load double*, double** %13
%170 = getelementptr inbounds double, double* %169, i64 1
store double %168, double* %170
br label %186
171: ; preds = %153
%172 = load double*, double** %12
%173 = getelementptr inbounds double, double* %172, i64 0
%174 = load double, double* %173
%175 = load double, double* %23
%176 = fsub double %174, %175
%177 = load double*, double** %13
%178 = getelementptr inbounds double, double* %177, i64 0
store double %176, double* %178
%179 = load double*, double** %12
%180 = getelementptr inbounds double, double* %179, i64 1
%181 = load double, double* %180
%182 = load double, double* %24
%183 = fsub double %181, %182
%184 = load double*, double** %13
%185 = getelementptr inbounds double, double* %184, i64 1
store double %183, double* %185
br label %186
186: ; preds = %171, %156
br label %187
187: ; preds = %27, %186, %146
ret void
}

LLVM IR (-O2):
define void @kernel_dgemv_t_2_lib4(i32 %0, double* nocapture %1, i32 %2, double* nocapture %3, double* nocapture %4, double* nocapture writeonly %5, i32 %6) {
%8 = icmp slt i32 %0, 1
br i1 %8, label %162, label %9
9: ; preds = %7
%10 = bitcast double* %1 to i8*
tail call void @llvm.prefetch.p0i8(i8* %10, i32 0, i32 3, i32 1)
%11 = add nsw i32 %0, -3
%12 = icmp ugt i32 %0, 3
br i1 %12, label %13, label %22
13: ; preds = %9
%14 = shl nsw i32 %2, 2
%15 = sext i32 %14 to i64
br label %54
16: ; preds = %54
%17 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %72, <2 x double> %74, <2 x double> %58)
%18 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %81, <2 x double> %83, <2 x double> %17)
%19 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %90, <2 x double> %92, <2 x double> %18)
%20 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %99, <2 x double> %101, <2 x double> %19)
%21 = and i32 %0, -4
br label %22
22: ; preds = %16, %9
%23 = phi i32 [ 0, %9 ], [ %21, %16 ]
%24 = phi double* [ %3, %9 ], [ %103, %16 ]
%25 = phi double* [ %1, %9 ], [ %59, %16 ]
%26 = phi <2 x double> [ zeroinitializer, %9 ], [ %20, %16 ]
%27 = icmp slt i32 %23, %0
br i1 %27, label %28, label %137
28: ; preds = %22
%29 = xor i32 %23, -1
%30 = and i32 %0, 1
%31 = icmp eq i32 %30, 0
br i1 %31, label %46, label %32
32: ; preds = %28
%33 = load double, double* %24
%34 = load double, double* %25
%35 = getelementptr inbounds double, double* %25, i64 4
%36 = load double, double* %35
%37 = insertelement <2 x double> poison, double %34, i64 0
%38 = insertelement <2 x double> %37, double %36, i64 1
%39 = insertelement <2 x double> poison, double %33, i64 0
%40 = shufflevector <2 x double> %39, <2 x double> poison, <2 x i32> zeroinitializer
%41 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %38, <2 x double> %40, <2 x double> %26)
%42 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %38, <2 x double> %40, <2 x double> %26)
%43 = getelementptr inbounds double, double* %25, i64 1
%44 = getelementptr inbounds double, double* %24, i64 1
%45 = or i32 %23, 1
br label %46
46: ; preds = %32, %28
%47 = phi <2 x double> [ undef, %28 ], [ %42, %32 ]
%48 = phi double* [ %25, %28 ], [ %43, %32 ]
%49 = phi double* [ %24, %28 ], [ %44, %32 ]
%50 = phi i32 [ %23, %28 ], [ %45, %32 ]
%51 = phi <2 x double> [ %26, %28 ], [ %41, %32 ]
%52 = sub i32 0, %0
%53 = icmp eq i32 %29, %52
br i1 %53, label %137, label %106
54: ; preds = %13, %54
%55 = phi double* [ %1, %13 ], [ %59, %54 ]
%56 = phi double* [ %3, %13 ], [ %103, %54 ]
%57 = phi i32 [ 0, %13 ], [ %104, %54 ]
%58 = phi <2 x double> [ zeroinitializer, %13 ], [ %102, %54 ]
%59 = getelementptr inbounds double, double* %55, i64 %15
%60 = bitcast double* %59 to i8*
tail call void @llvm.prefetch.p0i8(i8* %60, i32 0, i32 3, i32 1)
%61 = load double, double* %56
%62 = getelementptr inbounds double, double* %56, i64 1
%63 = load double, double* %62
%64 = getelementptr inbounds double, double* %56, i64 2
%65 = load double, double* %64
%66 = getelementptr inbounds double, double* %56, i64 3
%67 = load double, double* %66
%68 = load double, double* %55
%69 = getelementptr inbounds double, double* %55, i64 4
%70 = load double, double* %69
%71 = insertelement <2 x double> poison, double %68, i64 0
%72 = insertelement <2 x double> %71, double %70, i64 1
%73 = insertelement <2 x double> poison, double %61, 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> %58)
%76 = getelementptr inbounds double, double* %55, i64 1
%77 = load double, double* %76
%78 = getelementptr inbounds double, double* %55, i64 5
%79 = load double, double* %78
%80 = insertelement <2 x double> poison, double %77, i64 0
%81 = insertelement <2 x double> %80, double %79, i64 1
%82 = insertelement <2 x double> poison, double %63, i64 0
%83 = shufflevector <2 x double> %82, <2 x double> poison, <2 x i32> zeroinitializer
%84 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %81, <2 x double> %83, <2 x double> %75)
%85 = getelementptr inbounds double, double* %55, i64 2
%86 = load double, double* %85
%87 = getelementptr inbounds double, double* %55, i64 6
%88 = load double, double* %87
%89 = insertelement <2 x double> poison, double %86, i64 0
%90 = insertelement <2 x double> %89, double %88, i64 1
%91 = insertelement <2 x double> poison, double %65, i64 0
%92 = shufflevector <2 x double> %91, <2 x double> poison, <2 x i32> zeroinitializer
%93 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %90, <2 x double> %92, <2 x double> %84)
%94 = getelementptr inbounds double, double* %55, i64 3
%95 = load double, double* %94
%96 = getelementptr inbounds double, double* %55, i64 7
%97 = load double, double* %96
%98 = insertelement <2 x double> poison, double %95, i64 0
%99 = insertelement <2 x double> %98, double %97, i64 1
%100 = insertelement <2 x double> poison, double %67, i64 0
%101 = shufflevector <2 x double> %100, <2 x double> poison, <2 x i32> zeroinitializer
%102 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %99, <2 x double> %101, <2 x double> %93)
%103 = getelementptr inbounds double, double* %56, i64 4
%104 = add nuw nsw i32 %57, 4
%105 = icmp slt i32 %104, %11
br i1 %105, label %54, label %16
106: ; preds = %46, %106
%107 = phi double* [ %131, %106 ], [ %48, %46 ]
%108 = phi double* [ %132, %106 ], [ %49, %46 ]
%109 = phi i32 [ %133, %106 ], [ %50, %46 ]
%110 = phi <2 x double> [ %130, %106 ], [ %51, %46 ]
%111 = load double, double* %108
%112 = load double, double* %107
%113 = getelementptr inbounds double, double* %107, i64 4
%114 = load double, double* %113
%115 = insertelement <2 x double> poison, double %112, i64 0
%116 = insertelement <2 x double> %115, double %114, i64 1
%117 = insertelement <2 x double> poison, double %111, i64 0
%118 = shufflevector <2 x double> %117, <2 x double> poison, <2 x i32> zeroinitializer
%119 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %116, <2 x double> %118, <2 x double> %110)
%120 = getelementptr inbounds double, double* %107, i64 1
%121 = getelementptr inbounds double, double* %108, i64 1
%122 = load double, double* %121
%123 = load double, double* %120
%124 = getelementptr inbounds double, double* %107, i64 5
%125 = load double, double* %124
%126 = insertelement <2 x double> poison, double %123, i64 0
%127 = insertelement <2 x double> %126, double %125, i64 1
%128 = insertelement <2 x double> poison, double %122, i64 0
%129 = shufflevector <2 x double> %128, <2 x double> poison, <2 x i32> zeroinitializer
%130 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %127, <2 x double> %129, <2 x double> %119)
%131 = getelementptr inbounds double, double* %107, i64 2
%132 = getelementptr inbounds double, double* %108, i64 2
%133 = add nuw nsw i32 %109, 2
%134 = icmp eq i32 %133, %0
br i1 %134, label %135, label %106
135: ; preds = %106
%136 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %127, <2 x double> %129, <2 x double> %119)
br label %137
137: ; preds = %135, %46, %22
%138 = phi <2 x double> [ %26, %22 ], [ %47, %46 ], [ %136, %135 ]
switch i32 %6, label %150 [
i32 0, label %139
i32 1, label %142
]
139: ; preds = %137
%140 = extractelement <2 x double> %138, i64 0
store double %140, double* %4
%141 = extractelement <2 x double> %138, i64 1
br label %158
142: ; preds = %137
%143 = load double, double* %4
%144 = extractelement <2 x double> %138, i64 0
%145 = fadd double %144, %143
store double %145, double* %5
%146 = getelementptr inbounds double, double* %4, i64 1
%147 = load double, double* %146
%148 = extractelement <2 x double> %138, i64 1
%149 = fadd double %148, %147
br label %158
150: ; preds = %137
%151 = load double, double* %4
%152 = extractelement <2 x double> %138, i64 0
%153 = fsub double %151, %152
store double %153, double* %5
%154 = getelementptr inbounds double, double* %4, i64 1
%155 = load double, double* %154
%156 = extractelement <2 x double> %138, i64 1
%157 = fsub double %155, %156
br label %158
158: ; preds = %142, %150, %139
%159 = phi double* [ %4, %139 ], [ %5, %150 ], [ %5, %142 ]
%160 = phi double [ %141, %139 ], [ %157, %150 ], [ %149, %142 ]
%161 = getelementptr inbounds double, double* %159, i64 1
store double %160, double* %161
br label %162
162: ; preds = %158, %7
ret void
}