double Derivative7_2(i, f)
int i;
double f[];
{
  double tmp;
  tmp = 1.66666666667e-2 *
        (-10.0 * f[i - 1] - 77.0 * f[i] + 150.0 * f[i + 1] - 100.0 * f[i + 2] +
         50.0 * f[i + 3] - 15.0 * f[i + 4] + 2.0 * f[i + 5]);
  return tmp;
}


x86 assembly (clang, -O0):
<Derivative7_2>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    -0x4(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x4(%rbp),%rcx
movsd  0xf03(%rip),%xmm1
mulsd  (%rax,%rcx,8),%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
movsd  0xed7(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x10(%rbp),%rax
mov    -0x4(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm1
movsd  0xead(%rip),%xmm2
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
mov    -0x10(%rbp),%rax
mov    -0x4(%rbp),%ecx
add    $0x2,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  0xe83(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x10(%rbp),%rax
mov    -0x4(%rbp),%ecx
add    $0x3,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm1
movsd  0xe59(%rip),%xmm2
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
mov    -0x10(%rbp),%rax
mov    -0x4(%rbp),%ecx
add    $0x4,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  0xe2f(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x10(%rbp),%rax
mov    -0x4(%rbp),%ecx
add    $0x5,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm1
addsd  %xmm1,%xmm1
addsd  %xmm0,%xmm1
movsd  0xdfd(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  -0x18(%rbp),%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<Derivative7_2>:
movslq %edi,%rax
movsd  -0x8(%rsi,%rax,8),%xmm0
movsd  (%rsi,%rax,8),%xmm1
mulsd  0xeea(%rip),%xmm1
mulsd  0xeea(%rip),%xmm0
addsd  %xmm1,%xmm0
movsd  0x8(%rsi,%rax,8),%xmm1
mulsd  0xee0(%rip),%xmm1
addsd  %xmm0,%xmm1
movsd  0x10(%rsi,%rax,8),%xmm0
mulsd  0xed6(%rip),%xmm0
addsd  %xmm1,%xmm0
movsd  0x18(%rsi,%rax,8),%xmm1
mulsd  0xecc(%rip),%xmm1
addsd  %xmm0,%xmm1
movsd  0x20(%rsi,%rax,8),%xmm2
mulsd  0xec2(%rip),%xmm2
addsd  %xmm1,%xmm2
movsd  0x28(%rsi,%rax,8),%xmm0
addsd  %xmm0,%xmm0
addsd  %xmm2,%xmm0
mulsd  0xeb0(%rip),%xmm0
ret

LLVM IR (-O0):
define double @Derivative7_2(i32 %0, double* %1) {
%3 = alloca i32
%4 = alloca double*
%5 = alloca double
store i32 %0, i32* %3
store double* %1, double** %4
%6 = load double*, double** %4
%7 = load i32, i32* %3
%8 = sub nsw i32 %7, 1
%9 = sext i32 %8 to i64
%10 = getelementptr inbounds double, double* %6, i64 %9
%11 = load double, double* %10
%12 = load double*, double** %4
%13 = load i32, i32* %3
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds double, double* %12, i64 %14
%16 = load double, double* %15
%17 = fmul double 7.700000e+01, %16
%18 = fneg double %17
%19 = call double @llvm.fmuladd.f64(double -1.000000e+01, double %11, double %18)
%20 = load double*, double** %4
%21 = load i32, i32* %3
%22 = add nsw i32 %21, 1
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds double, double* %20, i64 %23
%25 = load double, double* %24
%26 = call double @llvm.fmuladd.f64(double 1.500000e+02, double %25, double %19)
%27 = load double*, double** %4
%28 = load i32, i32* %3
%29 = add nsw i32 %28, 2
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds double, double* %27, i64 %30
%32 = load double, double* %31
%33 = call double @llvm.fmuladd.f64(double -1.000000e+02, double %32, double %26)
%34 = load double*, double** %4
%35 = load i32, i32* %3
%36 = add nsw i32 %35, 3
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds double, double* %34, i64 %37
%39 = load double, double* %38
%40 = call double @llvm.fmuladd.f64(double 5.000000e+01, double %39, double %33)
%41 = load double*, double** %4
%42 = load i32, i32* %3
%43 = add nsw i32 %42, 4
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds double, double* %41, i64 %44
%46 = load double, double* %45
%47 = call double @llvm.fmuladd.f64(double -1.500000e+01, double %46, double %40)
%48 = load double*, double** %4
%49 = load i32, i32* %3
%50 = add nsw i32 %49, 5
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds double, double* %48, i64 %51
%53 = load double, double* %52
%54 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %53, double %47)
%55 = fmul double 0x3F91111111113699, %54
store double %55, double* %5
%56 = load double, double* %5
ret double %56
}

LLVM IR (-O2):
define double @Derivative7_2(i32 %0, double* nocapture %1) {
%3 = add nsw i32 %0, -1
%4 = sext i32 %3 to i64
%5 = getelementptr inbounds double, double* %1, i64 %4
%6 = load double, double* %5
%7 = sext i32 %0 to i64
%8 = getelementptr inbounds double, double* %1, i64 %7
%9 = load double, double* %8
%10 = fmul double %9, -7.700000e+01
%11 = tail call double @llvm.fmuladd.f64(double %6, double -1.000000e+01, double %10)
%12 = add nsw i32 %0, 1
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds double, double* %1, i64 %13
%15 = load double, double* %14
%16 = tail call double @llvm.fmuladd.f64(double %15, double 1.500000e+02, double %11)
%17 = add nsw i32 %0, 2
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds double, double* %1, i64 %18
%20 = load double, double* %19
%21 = tail call double @llvm.fmuladd.f64(double %20, double -1.000000e+02, double %16)
%22 = add nsw i32 %0, 3
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds double, double* %1, i64 %23
%25 = load double, double* %24
%26 = tail call double @llvm.fmuladd.f64(double %25, double 5.000000e+01, double %21)
%27 = add nsw i32 %0, 4
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds double, double* %1, i64 %28
%30 = load double, double* %29
%31 = tail call double @llvm.fmuladd.f64(double %30, double -1.500000e+01, double %26)
%32 = add nsw i32 %0, 5
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds double, double* %1, i64 %33
%35 = load double, double* %34
%36 = tail call double @llvm.fmuladd.f64(double %35, double 2.000000e+00, double %31)
%37 = fmul double %36, 0x3F91111111113699
ret double %37
}