void DVaxpy23(int n, double y0[], double y1[], double alpha[], double x0[],
              double x1[], double x2[]) {
  register double a00, a01, a02, a10, a11, a12;
  register double x0i, x1i, x2i;
  int ii;
  a00 = alpha[0];
  a01 = alpha[1];
  a02 = alpha[2];
  a10 = alpha[3];
  a11 = alpha[4];
  a12 = alpha[5];
  for (ii = 0; ii < n; ii++) {
    x0i = x0[ii];
    x1i = x1[ii];
    x2i = x2[ii];
    y0[ii] += a00 * x0i + a01 * x1i + a02 * x2i;
    y1[ii] += a10 * x0i + a11 * x1i + a12 * x2i;
  }
  return;
}


x86 assembly (clang, -O0):
<DVaxpy23>:
push   %rbp
mov    %rsp,%rbp
mov    0x10(%rbp),%rax
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9,-0x30(%rbp)
mov    -0x20(%rbp),%rax
movsd  (%rax),%xmm0
movsd  %xmm0,-0x38(%rbp)
mov    -0x20(%rbp),%rax
movsd  0x8(%rax),%xmm0
movsd  %xmm0,-0x40(%rbp)
mov    -0x20(%rbp),%rax
movsd  0x10(%rax),%xmm0
movsd  %xmm0,-0x48(%rbp)
mov    -0x20(%rbp),%rax
movsd  0x18(%rax),%xmm0
movsd  %xmm0,-0x50(%rbp)
mov    -0x20(%rbp),%rax
movsd  0x20(%rax),%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    -0x20(%rbp),%rax
movsd  0x28(%rax),%xmm0
movsd  %xmm0,-0x60(%rbp)
movl   $0x0,-0x7c(%rbp)
mov    -0x7c(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    1249 <DVaxpy23+0x149>
mov    -0x28(%rbp),%rax
movslq -0x7c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x68(%rbp)
mov    -0x30(%rbp),%rax
movslq -0x7c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x70(%rbp)
mov    0x10(%rbp),%rax
movslq -0x7c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x78(%rbp)
movsd  -0x38(%rbp),%xmm1
movsd  -0x68(%rbp),%xmm2
movsd  -0x40(%rbp),%xmm0
mulsd  -0x70(%rbp),%xmm0
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  -0x48(%rbp),%xmm0
movsd  -0x78(%rbp),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x10(%rbp),%rax
movslq -0x7c(%rbp),%rcx
addsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x50(%rbp),%xmm1
movsd  -0x68(%rbp),%xmm2
movsd  -0x58(%rbp),%xmm0
mulsd  -0x70(%rbp),%xmm0
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  -0x60(%rbp),%xmm0
movsd  -0x78(%rbp),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x18(%rbp),%rax
movslq -0x7c(%rbp),%rcx
addsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x7c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x7c(%rbp)
jmp    1179 <DVaxpy23+0x79>
pop    %rbp
ret

x86 assembly (clang, -O2):
<DVaxpy23>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
test   %edi,%edi
jle    1346 <DVaxpy23+0x246>
mov    0x38(%rsp),%r10
movsd  (%rcx),%xmm14
movsd  0x8(%rcx),%xmm15
movsd  0x10(%rcx),%xmm10
movsd  0x18(%rcx),%xmm3
movsd  0x20(%rcx),%xmm4
movsd  0x28(%rcx),%xmm5
mov    %edi,%ecx
cmp    $0x1,%edi
jne    1145 <DVaxpy23+0x45>
xor    %edi,%edi
jmp    12e0 <DVaxpy23+0x1e0>
lea    (%rdx,%rcx,8),%rdi
cmp    %rsi,%rdi
seta   -0x18(%rsp)
lea    (%rsi,%rcx,8),%rbp
cmp    %rdx,%rbp
seta   -0x28(%rsp)
lea    (%r8,%rcx,8),%rbx
cmp    %rsi,%rbx
seta   %r13b
cmp    %r8,%rbp
seta   -0x29(%rsp)
lea    (%r9,%rcx,8),%rax
cmp    %rsi,%rax
seta   %r11b
cmp    %r9,%rbp
seta   -0x2a(%rsp)
lea    (%r10,%rcx,8),%r15
cmp    %rsi,%r15
seta   %r12b
cmp    %r10,%rbp
seta   -0x2b(%rsp)
cmp    %rdx,%rbx
seta   %bpl
cmp    %r8,%rdi
seta   %bl
cmp    %rdx,%rax
seta   %r14b
cmp    %r9,%rdi
seta   -0x2c(%rsp)
cmp    %rdx,%r15
seta   %r15b
cmp    %r10,%rdi
seta   -0x2d(%rsp)
xor    %edi,%edi
mov    -0x28(%rsp),%al
test   %al,-0x18(%rsp)
jne    12e0 <DVaxpy23+0x1e0>
and    -0x29(%rsp),%r13b
jne    12e0 <DVaxpy23+0x1e0>
and    -0x2a(%rsp),%r11b
jne    12e0 <DVaxpy23+0x1e0>
and    -0x2b(%rsp),%r12b
jne    12e0 <DVaxpy23+0x1e0>
and    %bl,%bpl
jne    12e0 <DVaxpy23+0x1e0>
and    -0x2c(%rsp),%r14b
jne    12e0 <DVaxpy23+0x1e0>
and    -0x2d(%rsp),%r15b
jne    12e0 <DVaxpy23+0x1e0>
mov    %ecx,%edi
and    $0xfffffffe,%edi
movapd %xmm15,%xmm0
unpcklpd %xmm15,%xmm0
movapd %xmm0,-0x18(%rsp)
movapd %xmm14,%xmm0
unpcklpd %xmm14,%xmm0
movapd %xmm0,-0x28(%rsp)
movapd %xmm10,%xmm8
unpcklpd %xmm10,%xmm8
movapd %xmm4,%xmm11
unpcklpd %xmm4,%xmm11
movapd %xmm3,%xmm12
unpcklpd %xmm3,%xmm12
movapd %xmm5,%xmm13
unpcklpd %xmm5,%xmm13
xor    %eax,%eax
movupd (%r8,%rax,8),%xmm6
movupd (%r9,%rax,8),%xmm7
movupd (%r10,%rax,8),%xmm0
movapd -0x18(%rsp),%xmm1
mulpd  %xmm7,%xmm1
movapd -0x28(%rsp),%xmm9
mulpd  %xmm6,%xmm9
addpd  %xmm1,%xmm9
movapd %xmm8,%xmm1
mulpd  %xmm0,%xmm1
addpd  %xmm9,%xmm1
movupd (%rsi,%rax,8),%xmm2
addpd  %xmm1,%xmm2
movupd %xmm2,(%rsi,%rax,8)
mulpd  %xmm11,%xmm7
mulpd  %xmm12,%xmm6
addpd  %xmm7,%xmm6
mulpd  %xmm13,%xmm0
addpd  %xmm6,%xmm0
movupd (%rdx,%rax,8),%xmm1
addpd  %xmm0,%xmm1
movupd %xmm1,(%rdx,%rax,8)
add    $0x2,%rax
cmp    %rax,%rdi
jne    1260 <DVaxpy23+0x160>
cmp    %rcx,%rdi
je     1346 <DVaxpy23+0x246>
nopl   0x0(%rax)
movsd  (%r8,%rdi,8),%xmm0
movsd  (%r9,%rdi,8),%xmm1
movsd  (%r10,%rdi,8),%xmm2
movapd %xmm15,%xmm6
mulsd  %xmm1,%xmm6
movapd %xmm14,%xmm7
mulsd  %xmm0,%xmm7
addsd  %xmm6,%xmm7
movapd %xmm10,%xmm6
mulsd  %xmm2,%xmm6
addsd  %xmm7,%xmm6
addsd  (%rsi,%rdi,8),%xmm6
movsd  %xmm6,(%rsi,%rdi,8)
mulsd  %xmm4,%xmm1
mulsd  %xmm3,%xmm0
addsd  %xmm1,%xmm0
mulsd  %xmm5,%xmm2
addsd  %xmm0,%xmm2
addsd  (%rdx,%rdi,8),%xmm2
movsd  %xmm2,(%rdx,%rdi,8)
add    $0x1,%rdi
cmp    %rdi,%rcx
jne    12e0 <DVaxpy23+0x1e0>
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

LLVM IR (-O2):
define void @DVaxpy23(i32 %0, double* nocapture %1, double* nocapture %2, double* nocapture %3, double* nocapture %4, double* nocapture %5, double* nocapture %6) {
%8 = load double, double* %3
%9 = getelementptr inbounds double, double* %3, i64 1
%10 = load double, double* %9
%11 = getelementptr inbounds double, double* %3, i64 2
%12 = load double, double* %11
%13 = getelementptr inbounds double, double* %3, i64 3
%14 = load double, double* %13
%15 = getelementptr inbounds double, double* %3, i64 4
%16 = load double, double* %15
%17 = getelementptr inbounds double, double* %3, i64 5
%18 = load double, double* %17
%19 = icmp sgt i32 %0, 0
br i1 %19, label %20, label %125
20: ; preds = %7
%21 = zext i32 %0 to i64
%22 = icmp eq i32 %0, 1
br i1 %22, label %101, label %23
23: ; preds = %20
%24 = getelementptr double, double* %1, i64 %21
%25 = getelementptr double, double* %2, i64 %21
%26 = getelementptr double, double* %4, i64 %21
%27 = getelementptr double, double* %5, i64 %21
%28 = getelementptr double, double* %6, i64 %21
%29 = icmp ugt double* %25, %1
%30 = icmp ugt double* %24, %2
%31 = and i1 %29, %30
%32 = icmp ugt double* %26, %1
%33 = icmp ugt double* %24, %4
%34 = and i1 %32, %33
%35 = or i1 %31, %34
%36 = icmp ugt double* %27, %1
%37 = icmp ugt double* %24, %5
%38 = and i1 %36, %37
%39 = or i1 %35, %38
%40 = icmp ugt double* %28, %1
%41 = icmp ugt double* %24, %6
%42 = and i1 %40, %41
%43 = or i1 %39, %42
%44 = icmp ugt double* %26, %2
%45 = icmp ugt double* %25, %4
%46 = and i1 %44, %45
%47 = or i1 %43, %46
%48 = icmp ugt double* %27, %2
%49 = icmp ugt double* %25, %5
%50 = and i1 %48, %49
%51 = or i1 %47, %50
%52 = icmp ugt double* %28, %2
%53 = icmp ugt double* %25, %6
%54 = and i1 %52, %53
%55 = or i1 %51, %54
br i1 %55, label %101, label %56
56: ; preds = %23
%57 = and i64 %21, 4294967294
%58 = insertelement <2 x double> poison, double %10, i64 0
%59 = shufflevector <2 x double> %58, <2 x double> poison, <2 x i32> zeroinitializer
%60 = insertelement <2 x double> poison, double %8, i64 0
%61 = shufflevector <2 x double> %60, <2 x double> poison, <2 x i32> zeroinitializer
%62 = insertelement <2 x double> poison, double %12, i64 0
%63 = shufflevector <2 x double> %62, <2 x double> poison, <2 x i32> zeroinitializer
%64 = insertelement <2 x double> poison, double %16, i64 0
%65 = shufflevector <2 x double> %64, <2 x double> poison, <2 x i32> zeroinitializer
%66 = insertelement <2 x double> poison, double %14, i64 0
%67 = shufflevector <2 x double> %66, <2 x double> poison, <2 x i32> zeroinitializer
%68 = insertelement <2 x double> poison, double %18, i64 0
%69 = shufflevector <2 x double> %68, <2 x double> poison, <2 x i32> zeroinitializer
br label %70
70: ; preds = %70, %56
%71 = phi i64 [ 0, %56 ], [ %97, %70 ]
%72 = getelementptr inbounds double, double* %4, i64 %71
%73 = bitcast double* %72 to <2 x double>*
%74 = load <2 x double>, <2 x double>* %73
%75 = getelementptr inbounds double, double* %5, i64 %71
%76 = bitcast double* %75 to <2 x double>*
%77 = load <2 x double>, <2 x double>* %76
%78 = getelementptr inbounds double, double* %6, i64 %71
%79 = bitcast double* %78 to <2 x double>*
%80 = load <2 x double>, <2 x double>* %79
%81 = fmul <2 x double> %59, %77
%82 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %61, <2 x double> %74, <2 x double> %81)
%83 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %63, <2 x double> %80, <2 x double> %82)
%84 = getelementptr inbounds double, double* %1, i64 %71
%85 = bitcast double* %84 to <2 x double>*
%86 = load <2 x double>, <2 x double>* %85
%87 = fadd <2 x double> %86, %83
%88 = bitcast double* %84 to <2 x double>*
store <2 x double> %87, <2 x double>* %88
%89 = fmul <2 x double> %65, %77
%90 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %67, <2 x double> %74, <2 x double> %89)
%91 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %69, <2 x double> %80, <2 x double> %90)
%92 = getelementptr inbounds double, double* %2, i64 %71
%93 = bitcast double* %92 to <2 x double>*
%94 = load <2 x double>, <2 x double>* %93
%95 = fadd <2 x double> %91, %94
%96 = bitcast double* %92 to <2 x double>*
store <2 x double> %95, <2 x double>* %96
%97 = add nuw i64 %71, 2
%98 = icmp eq i64 %97, %57
br i1 %98, label %99, label %70
99: ; preds = %70
%100 = icmp eq i64 %57, %21
br i1 %100, label %125, label %101
101: ; preds = %23, %20, %99
%102 = phi i64 [ 0, %23 ], [ 0, %20 ], [ %57, %99 ]
br label %103
103: ; preds = %101, %103
%104 = phi i64 [ %123, %103 ], [ %102, %101 ]
%105 = getelementptr inbounds double, double* %4, i64 %104
%106 = load double, double* %105
%107 = getelementptr inbounds double, double* %5, i64 %104
%108 = load double, double* %107
%109 = getelementptr inbounds double, double* %6, i64 %104
%110 = load double, double* %109
%111 = fmul double %10, %108
%112 = tail call double @llvm.fmuladd.f64(double %8, double %106, double %111)
%113 = tail call double @llvm.fmuladd.f64(double %12, double %110, double %112)
%114 = getelementptr inbounds double, double* %1, i64 %104
%115 = load double, double* %114
%116 = fadd double %115, %113
store double %116, double* %114
%117 = fmul double %16, %108
%118 = tail call double @llvm.fmuladd.f64(double %14, double %106, double %117)
%119 = tail call double @llvm.fmuladd.f64(double %18, double %110, double %118)
%120 = getelementptr inbounds double, double* %2, i64 %104
%121 = load double, double* %120
%122 = fadd double %119, %121
store double %122, double* %120
%123 = add nuw nsw i64 %104, 1
%124 = icmp eq i64 %123, %21
br i1 %124, label %125, label %103
125: ; preds = %103, %99, %7
ret void
}