void ninead(vector, sign, x, y, z) double vector[10][4], sign;
double x, y, z;
{
  register int m;
  for (m = 1; m <= 9; m++) {
    vector[m][1] += (sign * x);
    vector[m][2] += (sign * y);
    vector[m][3] += (sign * z);
  }
}


x86 assembly (clang, -O0):
<ninead>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
movsd  %xmm0,-0x10(%rbp)
movsd  %xmm1,-0x18(%rbp)
movsd  %xmm2,-0x20(%rbp)
movsd  %xmm3,-0x28(%rbp)
movl   $0x1,-0x2c(%rbp)
cmpl   $0x9,-0x2c(%rbp)
jg     11bc <ninead+0xbc>
movsd  -0x10(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm2
mov    -0x8(%rbp),%rax
movslq -0x2c(%rbp),%rcx
shl    $0x5,%rcx
add    %rcx,%rax
movsd  0x8(%rax),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,0x8(%rax)
movsd  -0x10(%rbp),%xmm0
movsd  -0x20(%rbp),%xmm2
mov    -0x8(%rbp),%rax
movslq -0x2c(%rbp),%rcx
shl    $0x5,%rcx
add    %rcx,%rax
movsd  0x10(%rax),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,0x10(%rax)
movsd  -0x10(%rbp),%xmm0
movsd  -0x28(%rbp),%xmm2
mov    -0x8(%rbp),%rax
movslq -0x2c(%rbp),%rcx
shl    $0x5,%rcx
add    %rcx,%rax
movsd  0x18(%rax),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,0x18(%rax)
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    1123 <ninead+0x23>
pop    %rbp
ret

x86 assembly (clang, -O2):
<ninead>:
mulsd  %xmm0,%xmm3
unpcklpd %xmm0,%xmm0
unpcklpd %xmm2,%xmm1
mulpd  %xmm0,%xmm1
movupd 0x28(%rdi),%xmm0
movupd 0x48(%rdi),%xmm2
movupd 0x68(%rdi),%xmm4
movupd 0x88(%rdi),%xmm5
addpd  %xmm1,%xmm0
movupd %xmm0,0x28(%rdi)
movsd  0x38(%rdi),%xmm0
addsd  %xmm3,%xmm0
movsd  %xmm0,0x38(%rdi)
addpd  %xmm1,%xmm2
movupd %xmm2,0x48(%rdi)
movsd  0x58(%rdi),%xmm0
addsd  %xmm3,%xmm0
movsd  %xmm0,0x58(%rdi)
addpd  %xmm1,%xmm4
movupd %xmm4,0x68(%rdi)
movsd  0x78(%rdi),%xmm0
addsd  %xmm3,%xmm0
movsd  %xmm0,0x78(%rdi)
addpd  %xmm1,%xmm5
movupd %xmm5,0x88(%rdi)
movsd  0x98(%rdi),%xmm0
addsd  %xmm3,%xmm0
movsd  %xmm0,0x98(%rdi)
movupd 0xa8(%rdi),%xmm0
addpd  %xmm1,%xmm0
movupd %xmm0,0xa8(%rdi)
movsd  0xb8(%rdi),%xmm0
addsd  %xmm3,%xmm0
movsd  %xmm0,0xb8(%rdi)
movupd 0xc8(%rdi),%xmm0
addpd  %xmm1,%xmm0
movupd %xmm0,0xc8(%rdi)
movsd  0xd8(%rdi),%xmm0
addsd  %xmm3,%xmm0
movsd  %xmm0,0xd8(%rdi)
movupd 0xe8(%rdi),%xmm0
addpd  %xmm1,%xmm0
movupd %xmm0,0xe8(%rdi)
movsd  0xf8(%rdi),%xmm0
addsd  %xmm3,%xmm0
movsd  %xmm0,0xf8(%rdi)
movupd 0x108(%rdi),%xmm0
addpd  %xmm1,%xmm0
movupd %xmm0,0x108(%rdi)
movsd  0x118(%rdi),%xmm0
addsd  %xmm3,%xmm0
movsd  %xmm0,0x118(%rdi)
movupd 0x128(%rdi),%xmm0
addpd  %xmm1,%xmm0
movupd %xmm0,0x128(%rdi)
addsd  0x138(%rdi),%xmm3
movsd  %xmm3,0x138(%rdi)
ret

LLVM IR (-O0):
define void @ninead([4 x double]* %0, double %1, double %2, double %3, double %4) {
%6 = alloca [4 x double]*
%7 = alloca double
%8 = alloca double
%9 = alloca double
%10 = alloca double
%11 = alloca i32
store [4 x double]* %0, [4 x double]** %6
store double %1, double* %7
store double %2, double* %8
store double %3, double* %9
store double %4, double* %10
store i32 1, i32* %11
br label %12
12: ; preds = %43, %5
%13 = load i32, i32* %11
%14 = icmp sle i32 %13, 9
br i1 %14, label %15, label %46
15: ; preds = %12
%16 = load double, double* %7
%17 = load double, double* %8
%18 = load [4 x double]*, [4 x double]** %6
%19 = load i32, i32* %11
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds [4 x double], [4 x double]* %18, i64 %20
%22 = getelementptr inbounds [4 x double], [4 x double]* %21, i64 0, i64 1
%23 = load double, double* %22
%24 = call double @llvm.fmuladd.f64(double %16, double %17, double %23)
store double %24, double* %22
%25 = load double, double* %7
%26 = load double, double* %9
%27 = load [4 x double]*, [4 x double]** %6
%28 = load i32, i32* %11
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds [4 x double], [4 x double]* %27, i64 %29
%31 = getelementptr inbounds [4 x double], [4 x double]* %30, i64 0, i64 2
%32 = load double, double* %31
%33 = call double @llvm.fmuladd.f64(double %25, double %26, double %32)
store double %33, double* %31
%34 = load double, double* %7
%35 = load double, double* %10
%36 = load [4 x double]*, [4 x double]** %6
%37 = load i32, i32* %11
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds [4 x double], [4 x double]* %36, i64 %38
%40 = getelementptr inbounds [4 x double], [4 x double]* %39, i64 0, i64 3
%41 = load double, double* %40
%42 = call double @llvm.fmuladd.f64(double %34, double %35, double %41)
store double %42, double* %40
br label %43
43: ; preds = %15
%44 = load i32, i32* %11
%45 = add nsw i32 %44, 1
store i32 %45, i32* %11
br label %12
46: ; preds = %12
ret void
}

LLVM IR (-O2):
define void @ninead([4 x double]* nocapture %0, double %1, double %2, double %3, double %4) {
%6 = getelementptr inbounds [4 x double], [4 x double]* %0, i64 1, i64 1
%7 = bitcast double* %6 to <2 x double>*
%8 = load <2 x double>, <2 x double>* %7
%9 = insertelement <2 x double> poison, double %1, i64 0
%10 = shufflevector <2 x double> %9, <2 x double> poison, <2 x i32> zeroinitializer
%11 = insertelement <2 x double> poison, double %2, i64 0
%12 = insertelement <2 x double> %11, double %3, i64 1
%13 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %10, <2 x double> %12, <2 x double> %8)
%14 = bitcast double* %6 to <2 x double>*
store <2 x double> %13, <2 x double>* %14
%15 = getelementptr inbounds [4 x double], [4 x double]* %0, i64 1, i64 3
%16 = load double, double* %15
%17 = tail call double @llvm.fmuladd.f64(double %1, double %4, double %16)
store double %17, double* %15
%18 = getelementptr inbounds [4 x double], [4 x double]* %0, i64 2, i64 1
%19 = bitcast double* %18 to <2 x double>*
%20 = load <2 x double>, <2 x double>* %19
%21 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %10, <2 x double> %12, <2 x double> %20)
%22 = bitcast double* %18 to <2 x double>*
store <2 x double> %21, <2 x double>* %22
%23 = getelementptr inbounds [4 x double], [4 x double]* %0, i64 2, i64 3
%24 = load double, double* %23
%25 = tail call double @llvm.fmuladd.f64(double %1, double %4, double %24)
store double %25, double* %23
%26 = getelementptr inbounds [4 x double], [4 x double]* %0, i64 3, i64 1
%27 = bitcast double* %26 to <2 x double>*
%28 = load <2 x double>, <2 x double>* %27
%29 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %10, <2 x double> %12, <2 x double> %28)
%30 = bitcast double* %26 to <2 x double>*
store <2 x double> %29, <2 x double>* %30
%31 = getelementptr inbounds [4 x double], [4 x double]* %0, i64 3, i64 3
%32 = load double, double* %31
%33 = tail call double @llvm.fmuladd.f64(double %1, double %4, double %32)
store double %33, double* %31
%34 = getelementptr inbounds [4 x double], [4 x double]* %0, i64 4, i64 1
%35 = bitcast double* %34 to <2 x double>*
%36 = load <2 x double>, <2 x double>* %35
%37 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %10, <2 x double> %12, <2 x double> %36)
%38 = bitcast double* %34 to <2 x double>*
store <2 x double> %37, <2 x double>* %38
%39 = getelementptr inbounds [4 x double], [4 x double]* %0, i64 4, i64 3
%40 = load double, double* %39
%41 = tail call double @llvm.fmuladd.f64(double %1, double %4, double %40)
store double %41, double* %39
%42 = getelementptr inbounds [4 x double], [4 x double]* %0, i64 5, i64 1
%43 = bitcast double* %42 to <2 x double>*
%44 = load <2 x double>, <2 x double>* %43
%45 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %10, <2 x double> %12, <2 x double> %44)
%46 = bitcast double* %42 to <2 x double>*
store <2 x double> %45, <2 x double>* %46
%47 = getelementptr inbounds [4 x double], [4 x double]* %0, i64 5, i64 3
%48 = load double, double* %47
%49 = tail call double @llvm.fmuladd.f64(double %1, double %4, double %48)
store double %49, double* %47
%50 = getelementptr inbounds [4 x double], [4 x double]* %0, i64 6, i64 1
%51 = bitcast double* %50 to <2 x double>*
%52 = load <2 x double>, <2 x double>* %51
%53 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %10, <2 x double> %12, <2 x double> %52)
%54 = bitcast double* %50 to <2 x double>*
store <2 x double> %53, <2 x double>* %54
%55 = getelementptr inbounds [4 x double], [4 x double]* %0, i64 6, i64 3
%56 = load double, double* %55
%57 = tail call double @llvm.fmuladd.f64(double %1, double %4, double %56)
store double %57, double* %55
%58 = getelementptr inbounds [4 x double], [4 x double]* %0, i64 7, i64 1
%59 = bitcast double* %58 to <2 x double>*
%60 = load <2 x double>, <2 x double>* %59
%61 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %10, <2 x double> %12, <2 x double> %60)
%62 = bitcast double* %58 to <2 x double>*
store <2 x double> %61, <2 x double>* %62
%63 = getelementptr inbounds [4 x double], [4 x double]* %0, i64 7, i64 3
%64 = load double, double* %63
%65 = tail call double @llvm.fmuladd.f64(double %1, double %4, double %64)
store double %65, double* %63
%66 = getelementptr inbounds [4 x double], [4 x double]* %0, i64 8, i64 1
%67 = bitcast double* %66 to <2 x double>*
%68 = load <2 x double>, <2 x double>* %67
%69 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %10, <2 x double> %12, <2 x double> %68)
%70 = bitcast double* %66 to <2 x double>*
store <2 x double> %69, <2 x double>* %70
%71 = getelementptr inbounds [4 x double], [4 x double]* %0, i64 8, i64 3
%72 = load double, double* %71
%73 = tail call double @llvm.fmuladd.f64(double %1, double %4, double %72)
store double %73, double* %71
%74 = getelementptr inbounds [4 x double], [4 x double]* %0, i64 9, i64 1
%75 = bitcast double* %74 to <2 x double>*
%76 = load <2 x double>, <2 x double>* %75
%77 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %10, <2 x double> %12, <2 x double> %76)
%78 = bitcast double* %74 to <2 x double>*
store <2 x double> %77, <2 x double>* %78
%79 = getelementptr inbounds [4 x double], [4 x double]* %0, i64 9, i64 3
%80 = load double, double* %79
%81 = tail call double @llvm.fmuladd.f64(double %1, double %4, double %80)
store double %81, double* %79
ret void
}