double FDM_5_Reconstruct1d(const double vmm, const double vm, const double v,
                           const double vp, const double vpp, const double umm,
                           const double um, const double u, const double up,
                           const double upp) {
  double hn, hp, dflux;
  hn = (2 * vmm - 13 * vm + 47 * v + 27 * vp - 3 * vpp) / 60;
  hp = (-3 * umm + 27 * um + 47 * u - 13 * up + 2 * upp) / 60;
  dflux = (hn + hp);
  return dflux;
}


x86 assembly (clang, -O0):
<FDM_5_Reconstruct1d>:
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  -0x8(%rbp),%xmm1
movsd  0xee3(%rip),%xmm0
mulsd  -0x10(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
addsd  %xmm1,%xmm1
addsd  %xmm0,%xmm1
movsd  -0x18(%rbp),%xmm0
movsd  0xe9a(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  -0x20(%rbp),%xmm1
movsd  0xe95(%rip),%xmm2
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  -0x28(%rbp),%xmm0
movsd  0xe78(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  0xe50(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  -0x30(%rbp),%xmm1
movsd  0xe5a(%rip),%xmm0
mulsd  -0x38(%rbp),%xmm0
movsd  0xe45(%rip),%xmm2
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  -0x40(%rbp),%xmm0
movsd  0xe28(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  0x10(%rbp),%xmm1
movsd  0xe0b(%rip),%xmm2
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  0x18(%rbp),%xmm0
addsd  %xmm0,%xmm0
addsd  %xmm1,%xmm0
movsd  0xde6(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  -0x48(%rbp),%xmm0
addsd  -0x50(%rbp),%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  -0x58(%rbp),%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<FDM_5_Reconstruct1d>:
unpcklpd %xmm6,%xmm1
mulpd  0xef4(%rip),%xmm1
unpcklpd %xmm5,%xmm0
mulpd  0xef8(%rip),%xmm0
unpcklpd %xmm7,%xmm2
mulpd  0xefc(%rip),%xmm2
addpd  %xmm1,%xmm0
addpd  %xmm2,%xmm0
movhpd 0x8(%rsp),%xmm3
mulpd  0xef6(%rip),%xmm3
movhpd 0x10(%rsp),%xmm4
addpd  %xmm3,%xmm0
mulpd  0xef4(%rip),%xmm4
addpd  %xmm4,%xmm0
divpd  0xef8(%rip),%xmm0
movapd %xmm0,%xmm1
unpckhpd %xmm0,%xmm1
addsd  %xmm1,%xmm0
ret

LLVM IR (-O0):
define double @FDM_5_Reconstruct1d(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
%21 = alloca double
%22 = alloca double
%23 = 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
%24 = load double, double* %11
%25 = load double, double* %12
%26 = fmul double 1.300000e+01, %25
%27 = fneg double %26
%28 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %24, double %27)
%29 = load double, double* %13
%30 = call double @llvm.fmuladd.f64(double 4.700000e+01, double %29, double %28)
%31 = load double, double* %14
%32 = call double @llvm.fmuladd.f64(double 2.700000e+01, double %31, double %30)
%33 = load double, double* %15
%34 = call double @llvm.fmuladd.f64(double -3.000000e+00, double %33, double %32)
%35 = fdiv double %34, 6.000000e+01
store double %35, double* %21
%36 = load double, double* %16
%37 = load double, double* %17
%38 = fmul double 2.700000e+01, %37
%39 = call double @llvm.fmuladd.f64(double -3.000000e+00, double %36, double %38)
%40 = load double, double* %18
%41 = call double @llvm.fmuladd.f64(double 4.700000e+01, double %40, double %39)
%42 = load double, double* %19
%43 = call double @llvm.fmuladd.f64(double -1.300000e+01, double %42, double %41)
%44 = load double, double* %20
%45 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %44, double %43)
%46 = fdiv double %45, 6.000000e+01
store double %46, double* %22
%47 = load double, double* %21
%48 = load double, double* %22
%49 = fadd double %47, %48
store double %49, double* %23
%50 = load double, double* %23
ret double %50
}

LLVM IR (-O2):
define double @FDM_5_Reconstruct1d(double %0, double %1, double %2, double %3, double %4, double %5, double %6, double %7, double %8, double %9) {
%11 = insertelement <2 x double> poison, double %1, i64 0
%12 = insertelement <2 x double> %11, double %6, i64 1
%13 = fmul <2 x double> %12, <double -1.300000e+01, double 2.700000e+01>
%14 = insertelement <2 x double> poison, double %0, i64 0
%15 = insertelement <2 x double> %14, double %5, i64 1
%16 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %15, <2 x double> <double 2.000000e+00, double -3.000000e+00>, <2 x double> %13)
%17 = insertelement <2 x double> poison, double %2, i64 0
%18 = insertelement <2 x double> %17, double %7, i64 1
%19 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %18, <2 x double> <double 4.700000e+01, double 4.700000e+01>, <2 x double> %16)
%20 = insertelement <2 x double> poison, double %3, i64 0
%21 = insertelement <2 x double> %20, double %8, i64 1
%22 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %21, <2 x double> <double 2.700000e+01, double -1.300000e+01>, <2 x double> %19)
%23 = insertelement <2 x double> poison, double %4, i64 0
%24 = insertelement <2 x double> %23, double %9, i64 1
%25 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %24, <2 x double> <double -3.000000e+00, double 2.000000e+00>, <2 x double> %22)
%26 = fdiv <2 x double> %25, <double 6.000000e+01, double 6.000000e+01>
%27 = shufflevector <2 x double> %26, <2 x double> poison, <2 x i32> <i32 1, i32 undef>
%28 = fadd <2 x double> %26, %27
%29 = extractelement <2 x double> %28, i64 0
ret double %29
}