#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */
typedef int __m128d;

/* Variables and functions */
int _mm_load_pd(double const *);
int _mm_set1_pd(double);
int /*<<< orphan*/ _mm_store_pd(double *, int);
void _inner_vec4_daxpy_sse(double *y0, const double *a0, const double *a1,
                           const double *a2, const double *a3, const double *x0,
                           int incX, double alpha, int nRE, int oddStart) {
  register int i, ix;
  register double cf0, cf1, cf2, cf3, ytmp0, ytmp1;
  register __m128d CF0, CF1, CF2, CF3, Y0, A0, A1, A2, A3;
  ix = 0;
  cf0 = alpha * x0[ix];
  ix += incX;
  cf1 = alpha * x0[ix];
  ix += incX;
  cf2 = alpha * x0[ix];
  ix += incX;
  cf3 = alpha * x0[ix];
  CF0 = _mm_set1_pd(cf0);
  CF1 = _mm_set1_pd(cf1);
  CF2 = _mm_set1_pd(cf2);
  CF3 = _mm_set1_pd(cf3);
  if (oddStart) {
    ytmp0 = a0[0] * cf0;
    ytmp1 = a1[0] * cf1;
    ytmp0 += a2[0] * cf2;
    ytmp1 += a3[0] * cf3;
    y0[0] += ytmp0 + ytmp1;
    y0++;
    a0++;
    a1++;
    a2++;
    a3++;
    nRE--;
  }
  for (i = nRE - 1; i > 0; i -= 2) {
    Y0 = _mm_load_pd(y0);
    A0 = _mm_load_pd(a0);
    A1 = _mm_load_pd(a1);
    A2 = _mm_load_pd(a2);
    A3 = _mm_load_pd(a3);
    A0 = A0 * CF0;
    Y0 = Y0 + A0;
    A1 = A1 * CF1;
    Y0 = Y0 + A1;
    A2 = A2 * CF2;
    Y0 = Y0 + A2;
    A3 = A3 * CF3;
    Y0 = Y0 + A3;
    _mm_store_pd(y0, Y0);
    y0 += 2;
    a0 += 2;
    a1 += 2;
    a2 += 2;
    a3 += 2;
  }
  if (i != 0)
    return;
  ytmp0 = a0[0] * cf0;
  ytmp1 = a1[0] * cf1;
  ytmp0 += a2[0] * cf2;
  ytmp1 += a3[0] * cf3;
  y0[0] += ytmp0 + ytmp1;
}


x86 assembly (clang, -O0):
<_inner_vec4_daxpy_sse>:
push   %rbp
mov    %rsp,%rbp
sub    $0xa0,%rsp
mov    0x20(%rbp),%eax
mov    0x18(%rbp),%eax
mov    0x10(%rbp),%eax
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9,-0x30(%rbp)
movsd  %xmm0,-0x38(%rbp)
movl   $0x0,-0x40(%rbp)
movsd  -0x38(%rbp),%xmm0
mov    -0x30(%rbp),%rax
movslq -0x40(%rbp),%rcx
mulsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x48(%rbp)
mov    0x10(%rbp),%eax
add    -0x40(%rbp),%eax
mov    %eax,-0x40(%rbp)
movsd  -0x38(%rbp),%xmm0
mov    -0x30(%rbp),%rax
movslq -0x40(%rbp),%rcx
mulsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x50(%rbp)
mov    0x10(%rbp),%eax
add    -0x40(%rbp),%eax
mov    %eax,-0x40(%rbp)
movsd  -0x38(%rbp),%xmm0
mov    -0x30(%rbp),%rax
movslq -0x40(%rbp),%rcx
mulsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    0x10(%rbp),%eax
add    -0x40(%rbp),%eax
mov    %eax,-0x40(%rbp)
movsd  -0x38(%rbp),%xmm0
mov    -0x30(%rbp),%rax
movslq -0x40(%rbp),%rcx
mulsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  -0x48(%rbp),%xmm0
call   1040 <_mm_set1_pd@plt>
mov    %eax,-0x74(%rbp)
movsd  -0x50(%rbp),%xmm0
call   1040 <_mm_set1_pd@plt>
mov    %eax,-0x78(%rbp)
movsd  -0x58(%rbp),%xmm0
call   1040 <_mm_set1_pd@plt>
mov    %eax,-0x7c(%rbp)
movsd  -0x60(%rbp),%xmm0
call   1040 <_mm_set1_pd@plt>
mov    %eax,-0x80(%rbp)
cmpl   $0x0,0x20(%rbp)
je     12da <_inner_vec4_daxpy_sse+0x1aa>
mov    -0x10(%rbp),%rax
movsd  (%rax),%xmm0
mulsd  -0x48(%rbp),%xmm0
movsd  %xmm0,-0x68(%rbp)
mov    -0x18(%rbp),%rax
movsd  (%rax),%xmm0
mulsd  -0x50(%rbp),%xmm0
movsd  %xmm0,-0x70(%rbp)
mov    -0x20(%rbp),%rax
movsd  (%rax),%xmm0
movsd  -0x58(%rbp),%xmm2
movsd  -0x68(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x68(%rbp)
mov    -0x28(%rbp),%rax
movsd  (%rax),%xmm0
movsd  -0x60(%rbp),%xmm2
movsd  -0x70(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x70(%rbp)
movsd  -0x68(%rbp),%xmm0
addsd  -0x70(%rbp),%xmm0
mov    -0x8(%rbp),%rax
addsd  (%rax),%xmm0
movsd  %xmm0,(%rax)
mov    -0x8(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x8(%rbp)
mov    -0x10(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x10(%rbp)
mov    -0x18(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x18(%rbp)
mov    -0x20(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x20(%rbp)
mov    -0x28(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x28(%rbp)
mov    0x18(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,0x18(%rbp)
mov    0x18(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0x3c(%rbp)
cmpl   $0x0,-0x3c(%rbp)
jle    1419 <_inner_vec4_daxpy_sse+0x2e9>
mov    -0x8(%rbp),%rdi
call   1050 <_mm_load_pd@plt>
mov    %eax,-0x84(%rbp)
mov    -0x10(%rbp),%rdi
call   1050 <_mm_load_pd@plt>
mov    %eax,-0x88(%rbp)
mov    -0x18(%rbp),%rdi
call   1050 <_mm_load_pd@plt>
mov    %eax,-0x8c(%rbp)
mov    -0x20(%rbp),%rdi
call   1050 <_mm_load_pd@plt>
mov    %eax,-0x90(%rbp)
mov    -0x28(%rbp),%rdi
call   1050 <_mm_load_pd@plt>
mov    %eax,-0x94(%rbp)
mov    -0x88(%rbp),%eax
imul   -0x74(%rbp),%eax
mov    %eax,-0x88(%rbp)
mov    -0x84(%rbp),%eax
add    -0x88(%rbp),%eax
mov    %eax,-0x84(%rbp)
mov    -0x8c(%rbp),%eax
imul   -0x78(%rbp),%eax
mov    %eax,-0x8c(%rbp)
mov    -0x84(%rbp),%eax
add    -0x8c(%rbp),%eax
mov    %eax,-0x84(%rbp)
mov    -0x90(%rbp),%eax
imul   -0x7c(%rbp),%eax
mov    %eax,-0x90(%rbp)
mov    -0x84(%rbp),%eax
add    -0x90(%rbp),%eax
mov    %eax,-0x84(%rbp)
mov    -0x94(%rbp),%eax
imul   -0x80(%rbp),%eax
mov    %eax,-0x94(%rbp)
mov    -0x84(%rbp),%eax
add    -0x94(%rbp),%eax
mov    %eax,-0x84(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x84(%rbp),%esi
call   1030 <_mm_store_pd@plt>
mov    -0x8(%rbp),%rax
add    $0x10,%rax
mov    %rax,-0x8(%rbp)
mov    -0x10(%rbp),%rax
add    $0x10,%rax
mov    %rax,-0x10(%rbp)
mov    -0x18(%rbp),%rax
add    $0x10,%rax
mov    %rax,-0x18(%rbp)
mov    -0x20(%rbp),%rax
add    $0x10,%rax
mov    %rax,-0x20(%rbp)
mov    -0x28(%rbp),%rax
add    $0x10,%rax
mov    %rax,-0x28(%rbp)
mov    -0x3c(%rbp),%eax
sub    $0x2,%eax
mov    %eax,-0x3c(%rbp)
jmp    12e3 <_inner_vec4_daxpy_sse+0x1b3>
cmpl   $0x0,-0x3c(%rbp)
je     1428 <_inner_vec4_daxpy_sse+0x2f8>
jmp    14a0 <_inner_vec4_daxpy_sse+0x370>
mov    -0x10(%rbp),%rax
movsd  (%rax),%xmm0
mulsd  -0x48(%rbp),%xmm0
movsd  %xmm0,-0x68(%rbp)
mov    -0x18(%rbp),%rax
movsd  (%rax),%xmm0
mulsd  -0x50(%rbp),%xmm0
movsd  %xmm0,-0x70(%rbp)
mov    -0x20(%rbp),%rax
movsd  (%rax),%xmm0
movsd  -0x58(%rbp),%xmm2
movsd  -0x68(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x68(%rbp)
mov    -0x28(%rbp),%rax
movsd  (%rax),%xmm0
movsd  -0x60(%rbp),%xmm2
movsd  -0x70(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x70(%rbp)
movsd  -0x68(%rbp),%xmm0
addsd  -0x70(%rbp),%xmm0
mov    -0x8(%rbp),%rax
addsd  (%rax),%xmm0
movsd  %xmm0,(%rax)
add    $0xa0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<_inner_vec4_daxpy_sse>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x58,%rsp
movapd %xmm0,%xmm1
mov    %r8,%rbx
mov    %rcx,%r13
mov    %rdx,%r15
mov    %rsi,%r12
mov    %rdi,%r14
movslq 0x90(%rsp),%rax
mov    0x98(%rsp),%ebp
movsd  (%r9),%xmm0
mulsd  %xmm1,%xmm0
movsd  (%r9,%rax,8),%xmm2
mulsd  %xmm1,%xmm2
movsd  %xmm2,0x10(%rsp)
lea    (%rax,%rax,1),%ecx
movslq %ecx,%rcx
movsd  (%r9,%rcx,8),%xmm2
mulsd  %xmm1,%xmm2
movsd  %xmm2,0x8(%rsp)
lea    (%rax,%rax,2),%eax
cltq
mulsd  (%r9,%rax,8),%xmm1
movsd  %xmm1,0x18(%rsp)
movsd  %xmm0,0x20(%rsp)
call   1040 <_mm_set1_pd@plt>
mov    %eax,0x38(%rsp)
movsd  0x10(%rsp),%xmm0
call   1040 <_mm_set1_pd@plt>
mov    %eax,0x34(%rsp)
movsd  0x8(%rsp),%xmm0
call   1040 <_mm_set1_pd@plt>
mov    %eax,0x30(%rsp)
movsd  0x18(%rsp),%xmm0
call   1040 <_mm_set1_pd@plt>
cmpl   $0x0,0xa0(%rsp)
je     133e <_inner_vec4_daxpy_sse+0x20e>
movsd  (%r12),%xmm0
movsd  0x20(%rsp),%xmm4
mulsd  %xmm4,%xmm0
movsd  (%r15),%xmm1
movsd  0x10(%rsp),%xmm5
mulsd  %xmm5,%xmm1
movsd  0x0(%r13),%xmm2
movsd  0x8(%rsp),%xmm6
mulsd  %xmm6,%xmm2
addsd  %xmm0,%xmm2
movsd  (%rbx),%xmm0
movsd  0x18(%rsp),%xmm3
mulsd  %xmm3,%xmm0
addsd  %xmm1,%xmm0
addsd  %xmm2,%xmm0
addsd  (%r14),%xmm0
movsd  %xmm0,(%r14)
add    $0x8,%r14
add    $0x8,%r12
add    $0x8,%r15
add    $0x8,%r13
add    $0x8,%rbx
add    $0xffffffff,%ebp
movapd %xmm3,%xmm0
movapd %xmm5,%xmm1
movapd %xmm4,%xmm2
movapd %xmm6,%xmm3
cmp    $0x2,%ebp
jl     135f <_inner_vec4_daxpy_sse+0x22f>
add    $0x1,%ebp
mov    %eax,0x2c(%rsp)
mov    %ebp,0x3c(%rsp)
mov    %r13,0x40(%rsp)
mov    %r15,0x48(%rsp)
mov    %r14,0x50(%rsp)
mov    %r14,%rdi
call   1050 <_mm_load_pd@plt>
mov    %eax,%ebp
mov    %r12,%rdi
call   1050 <_mm_load_pd@plt>
mov    %eax,%r14d
mov    %r15,%rdi
call   1050 <_mm_load_pd@plt>
mov    %eax,%r15d
mov    %r13,%rdi
call   1050 <_mm_load_pd@plt>
mov    %r12,%r13
mov    %eax,%r12d
mov    %rbx,%rdi
call   1050 <_mm_load_pd@plt>
imul   0x38(%rsp),%r14d
add    %ebp,%r14d
mov    0x3c(%rsp),%ebp
imul   0x34(%rsp),%r15d
add    %r14d,%r15d
mov    0x50(%rsp),%r14
imul   0x30(%rsp),%r12d
add    %r15d,%r12d
mov    0x48(%rsp),%r15
imul   0x2c(%rsp),%eax
add    %eax,%r12d
mov    %r14,%rdi
mov    %r12d,%esi
mov    %r13,%r12
mov    0x40(%rsp),%r13
call   1030 <_mm_store_pd@plt>
add    $0x10,%r14
add    $0x10,%r12
add    $0x10,%r15
add    $0x10,%r13
add    $0x10,%rbx
add    $0xfffffffe,%ebp
cmp    $0x2,%ebp
ja     1270 <_inner_vec4_daxpy_sse+0x140>
add    $0xfffffffe,%ebp
movsd  0x18(%rsp),%xmm0
movsd  0x10(%rsp),%xmm1
movsd  0x20(%rsp),%xmm2
movsd  0x8(%rsp),%xmm3
test   %ebp,%ebp
jne    1391 <_inner_vec4_daxpy_sse+0x261>
jmp    1366 <_inner_vec4_daxpy_sse+0x236>
movsd  0x18(%rsp),%xmm0
movsd  0x10(%rsp),%xmm1
movsd  0x20(%rsp),%xmm2
movsd  0x8(%rsp),%xmm3
cmp    $0x2,%ebp
jge    1269 <_inner_vec4_daxpy_sse+0x139>
add    $0xffffffff,%ebp
test   %ebp,%ebp
jne    1391 <_inner_vec4_daxpy_sse+0x261>
mulsd  (%r12),%xmm2
mulsd  (%r15),%xmm1
mulsd  0x0(%r13),%xmm3
addsd  %xmm2,%xmm3
mulsd  (%rbx),%xmm0
addsd  %xmm1,%xmm0
addsd  %xmm3,%xmm0
addsd  (%r14),%xmm0
movsd  %xmm0,(%r14)
add    $0x58,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

LLVM IR (-O2):
define void @_inner_vec4_daxpy_sse(double* %0, double* %1, double* %2, double* %3, double* %4, double* nocapture %5, i32 %6, double %7, i32 %8, i32 %9) {
%11 = load double, double* %5
%12 = fmul double %11, %7
%13 = sext i32 %6 to i64
%14 = getelementptr inbounds double, double* %5, i64 %13
%15 = load double, double* %14
%16 = fmul double %15, %7
%17 = shl nsw i32 %6, 1
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds double, double* %5, i64 %18
%20 = load double, double* %19
%21 = fmul double %20, %7
%22 = mul nsw i32 %6, 3
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds double, double* %5, i64 %23
%25 = load double, double* %24
%26 = fmul double %25, %7
%27 = tail call i32 @_mm_set1_pd(double %12)
%28 = tail call i32 @_mm_set1_pd(double %16)
%29 = tail call i32 @_mm_set1_pd(double %21)
%30 = tail call i32 @_mm_set1_pd(double %26)
%31 = icmp eq i32 %9, 0
br i1 %31, label %50, label %32
32: ; preds = %10
%33 = load double, double* %1
%34 = fmul double %12, %33
%35 = load double, double* %2
%36 = fmul double %16, %35
%37 = load double, double* %3
%38 = tail call double @llvm.fmuladd.f64(double %37, double %21, double %34)
%39 = load double, double* %4
%40 = tail call double @llvm.fmuladd.f64(double %39, double %26, double %36)
%41 = fadd double %38, %40
%42 = load double, double* %0
%43 = fadd double %42, %41
store double %43, double* %0
%44 = getelementptr inbounds double, double* %0, i64 1
%45 = getelementptr inbounds double, double* %1, i64 1
%46 = getelementptr inbounds double, double* %2, i64 1
%47 = getelementptr inbounds double, double* %3, i64 1
%48 = getelementptr inbounds double, double* %4, i64 1
%49 = add nsw i32 %8, -1
br label %50
50: ; preds = %32, %10
%51 = phi i32 [ %49, %32 ], [ %8, %10 ]
%52 = phi double* [ %48, %32 ], [ %4, %10 ]
%53 = phi double* [ %47, %32 ], [ %3, %10 ]
%54 = phi double* [ %46, %32 ], [ %2, %10 ]
%55 = phi double* [ %45, %32 ], [ %1, %10 ]
%56 = phi double* [ %44, %32 ], [ %0, %10 ]
%57 = add nsw i32 %51, -1
%58 = icmp sgt i32 %51, 1
br i1 %58, label %59, label %87
59: ; preds = %50, %59
%60 = phi double* [ %80, %59 ], [ %56, %50 ]
%61 = phi double* [ %81, %59 ], [ %55, %50 ]
%62 = phi double* [ %82, %59 ], [ %54, %50 ]
%63 = phi double* [ %83, %59 ], [ %53, %50 ]
%64 = phi double* [ %84, %59 ], [ %52, %50 ]
%65 = phi i32 [ %85, %59 ], [ %57, %50 ]
%66 = tail call i32 @_mm_load_pd(double* %60)
%67 = tail call i32 @_mm_load_pd(double* %61)
%68 = tail call i32 @_mm_load_pd(double* %62)
%69 = tail call i32 @_mm_load_pd(double* %63)
%70 = tail call i32 @_mm_load_pd(double* %64)
%71 = mul nsw i32 %67, %27
%72 = add nsw i32 %71, %66
%73 = mul nsw i32 %68, %28
%74 = add nsw i32 %72, %73
%75 = mul nsw i32 %69, %29
%76 = add nsw i32 %74, %75
%77 = mul nsw i32 %70, %30
%78 = add nsw i32 %76, %77
%79 = tail call i32 @_mm_store_pd(double* %60, i32 %78)
%80 = getelementptr inbounds double, double* %60, i64 2
%81 = getelementptr inbounds double, double* %61, i64 2
%82 = getelementptr inbounds double, double* %62, i64 2
%83 = getelementptr inbounds double, double* %63, i64 2
%84 = getelementptr inbounds double, double* %64, i64 2
%85 = add nsw i32 %65, -2
%86 = icmp ugt i32 %65, 2
br i1 %86, label %59, label %87
87: ; preds = %59, %50
%88 = phi i32 [ %57, %50 ], [ %85, %59 ]
%89 = phi double* [ %52, %50 ], [ %84, %59 ]
%90 = phi double* [ %53, %50 ], [ %83, %59 ]
%91 = phi double* [ %54, %50 ], [ %82, %59 ]
%92 = phi double* [ %55, %50 ], [ %81, %59 ]
%93 = phi double* [ %56, %50 ], [ %80, %59 ]
%94 = icmp eq i32 %88, 0
br i1 %94, label %95, label %107
95: ; preds = %87
%96 = load double, double* %92
%97 = fmul double %12, %96
%98 = load double, double* %91
%99 = fmul double %16, %98
%100 = load double, double* %90
%101 = tail call double @llvm.fmuladd.f64(double %100, double %21, double %97)
%102 = load double, double* %89
%103 = tail call double @llvm.fmuladd.f64(double %102, double %26, double %99)
%104 = fadd double %101, %103
%105 = load double, double* %93
%106 = fadd double %105, %104
store double %106, double* %93
br label %107
107: ; preds = %87, %95
ret void
}