double interp_10(double phim4, double phim3, double phim2, double phim1,
                 double phi, double phip1, double phip2, double phip3,
                 double phip4, double phip5) {
  return (1627.0 / 2520.0 * (phi + phip1) - 473.0 / 2520.0 * (phim1 + phip2) +
          127.0 / 2520.0 * (phim2 + phip3) - 23.0 / 2520.0 * (phim3 + phip4) +
          1.0 / 1260.0 * (phim4 + phip5));
}


x86 assembly (clang, -O0):
<interp_10>:
push   %rbp
mov    %rsp,%rbp
movsd  0x18(%rbp),%xmm8
movsd  0x10(%rbp),%xmm8
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  %xmm2,-0x18(%rbp)
movsd  %xmm3,-0x20(%rbp)
movsd  %xmm4,-0x28(%rbp)
movsd  %xmm5,-0x30(%rbp)
movsd  %xmm6,-0x38(%rbp)
movsd  %xmm7,-0x40(%rbp)
movsd  -0x28(%rbp),%xmm1
addsd  -0x30(%rbp),%xmm1
movsd  -0x20(%rbp),%xmm2
addsd  -0x38(%rbp),%xmm2
movsd  0xecc(%rip),%xmm0
mulsd  %xmm2,%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  0xea1(%rip),%xmm2
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  -0x18(%rbp),%xmm0
addsd  -0x40(%rbp),%xmm0
movsd  0xe7f(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  -0x10(%rbp),%xmm1
addsd  0x10(%rbp),%xmm1
movsd  0xe5d(%rip),%xmm2
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  -0x8(%rbp),%xmm0
addsd  0x18(%rbp),%xmm0
movsd  0xe3b(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<interp_10>:
addsd  %xmm5,%xmm4
addsd  %xmm6,%xmm3
mulsd  0xef0(%rip),%xmm3
mulsd  0xef0(%rip),%xmm4
addsd  %xmm7,%xmm2
mulsd  0xeec(%rip),%xmm2
addsd  %xmm3,%xmm4
addsd  %xmm4,%xmm2
addsd  0x8(%rsp),%xmm1
mulsd  0xede(%rip),%xmm1
addsd  0x10(%rsp),%xmm0
addsd  %xmm2,%xmm1
mulsd  0xed4(%rip),%xmm0
addsd  %xmm1,%xmm0
ret

LLVM IR (-O0):
define double @interp_10(double %0, double %1, double %2, double %3, double %4, double %5, double %6, double %7, double %8, double %9) {
%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
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 double %6, double* %17
store double %7, double* %18
store double %8, double* %19
store double %9, double* %20
%21 = load double, double* %15
%22 = load double, double* %16
%23 = fadd double %21, %22
%24 = load double, double* %14
%25 = load double, double* %17
%26 = fadd double %24, %25
%27 = fmul double 0x3FC8068068068068, %26
%28 = fneg double %27
%29 = call double @llvm.fmuladd.f64(double 0x3FE4A90A90A90A91, double %23, double %28)
%30 = load double, double* %13
%31 = load double, double* %18
%32 = fadd double %30, %31
%33 = call double @llvm.fmuladd.f64(double 0x3FA9CD9CD9CD9CDA, double %32, double %29)
%34 = load double, double* %12
%35 = load double, double* %19
%36 = fadd double %34, %35
%37 = call double @llvm.fmuladd.f64(double 0xBF82B12B12B12B13, double %36, double %33)
%38 = load double, double* %11
%39 = load double, double* %20
%40 = fadd double %38, %39
%41 = call double @llvm.fmuladd.f64(double 0x3F4A01A01A01A01A, double %40, double %37)
ret double %41
}

LLVM IR (-O2):
define double @interp_10(double %0, double %1, double %2, double %3, double %4, double %5, double %6, double %7, double %8, double %9) {
%11 = fadd double %4, %5
%12 = fadd double %3, %6
%13 = fmul double %12, 0xBFC8068068068068
%14 = tail call double @llvm.fmuladd.f64(double %11, double 0x3FE4A90A90A90A91, double %13)
%15 = fadd double %2, %7
%16 = tail call double @llvm.fmuladd.f64(double %15, double 0x3FA9CD9CD9CD9CDA, double %14)
%17 = fadd double %1, %8
%18 = tail call double @llvm.fmuladd.f64(double %17, double 0xBF82B12B12B12B13, double %16)
%19 = fadd double %0, %9
%20 = tail call double @llvm.fmuladd.f64(double %19, double 0x3F4A01A01A01A01A, double %18)
ret double %20
}