double poly10(double x, double c1, double c2, double c3, double c4, double c5,
              double c6) {
  return x *
         (1 - x * (0.5 -
                   x * (c1 -
                        x * (0.25 -
                             x * (c2 -
                                  x * (c3 -
                                       x * (c4 - x * (0.125 -
                                                      x * (c5 - x * c6)))))))));
}


x86 assembly (clang, -O0):
<poly10>:
push   %rbp
mov    %rsp,%rbp
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  -0x8(%rbp),%xmm0
movsd  -0x8(%rbp),%xmm1
movsd  -0x8(%rbp),%xmm2
movsd  -0x10(%rbp),%xmm4
movsd  -0x8(%rbp),%xmm3
movsd  -0x8(%rbp),%xmm5
movsd  -0x18(%rbp),%xmm7
movsd  -0x8(%rbp),%xmm6
movsd  -0x20(%rbp),%xmm9
movsd  -0x8(%rbp),%xmm8
movsd  -0x28(%rbp),%xmm11
movsd  -0x8(%rbp),%xmm10
movsd  -0x8(%rbp),%xmm12
movsd  -0x30(%rbp),%xmm14
movsd  -0x8(%rbp),%xmm13
movsd  -0x38(%rbp),%xmm15
movq   %xmm13,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm13
mulsd  %xmm15,%xmm13
addsd  %xmm14,%xmm13
movq   %xmm12,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm12
mulsd  %xmm13,%xmm12
movsd  0xe53(%rip),%xmm13
addsd  %xmm13,%xmm12
movq   %xmm10,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm10
mulsd  %xmm12,%xmm10
addsd  %xmm11,%xmm10
movq   %xmm8,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm8
mulsd  %xmm10,%xmm8
addsd  %xmm9,%xmm8
movq   %xmm6,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm6
mulsd  %xmm8,%xmm6
addsd  %xmm7,%xmm6
movq   %xmm5,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm5
mulsd  %xmm6,%xmm5
movsd  0xdc1(%rip),%xmm6
addsd  %xmm6,%xmm5
movq   %xmm3,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm3
mulsd  %xmm5,%xmm3
addsd  %xmm4,%xmm3
movq   %xmm2,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm2
mulsd  %xmm3,%xmm2
movsd  0xd73(%rip),%xmm3
addsd  %xmm3,%xmm2
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm1
movsd  0xd44(%rip),%xmm2
addsd  %xmm2,%xmm1
mulsd  %xmm1,%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<poly10>:
mulsd  %xmm0,%xmm6
subsd  %xmm6,%xmm5
mulsd  %xmm0,%xmm5
movsd  0xeec(%rip),%xmm6
subsd  %xmm5,%xmm6
mulsd  %xmm0,%xmm6
subsd  %xmm6,%xmm4
mulsd  %xmm0,%xmm4
subsd  %xmm4,%xmm3
mulsd  %xmm0,%xmm3
subsd  %xmm3,%xmm2
mulsd  %xmm0,%xmm2
movsd  0xecc(%rip),%xmm3
subsd  %xmm2,%xmm3
mulsd  %xmm0,%xmm3
subsd  %xmm3,%xmm1
mulsd  %xmm0,%xmm1
movsd  0xebc(%rip),%xmm2
subsd  %xmm1,%xmm2
mulsd  %xmm0,%xmm2
movsd  0xeb4(%rip),%xmm1
subsd  %xmm2,%xmm1
mulsd  %xmm1,%xmm0
ret

LLVM IR (-O0):
define double @poly10(double %0, double %1, double %2, double %3, double %4, double %5, double %6) {
%8 = alloca double
%9 = alloca double
%10 = alloca double
%11 = alloca double
%12 = alloca double
%13 = alloca double
%14 = alloca double
store double %0, double* %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
%15 = load double, double* %8
%16 = load double, double* %8
%17 = load double, double* %8
%18 = load double, double* %9
%19 = load double, double* %8
%20 = load double, double* %8
%21 = load double, double* %10
%22 = load double, double* %8
%23 = load double, double* %11
%24 = load double, double* %8
%25 = load double, double* %12
%26 = load double, double* %8
%27 = load double, double* %8
%28 = load double, double* %13
%29 = load double, double* %8
%30 = load double, double* %14
%31 = fneg double %29
%32 = call double @llvm.fmuladd.f64(double %31, double %30, double %28)
%33 = fneg double %27
%34 = call double @llvm.fmuladd.f64(double %33, double %32, double 1.250000e-01)
%35 = fneg double %26
%36 = call double @llvm.fmuladd.f64(double %35, double %34, double %25)
%37 = fneg double %24
%38 = call double @llvm.fmuladd.f64(double %37, double %36, double %23)
%39 = fneg double %22
%40 = call double @llvm.fmuladd.f64(double %39, double %38, double %21)
%41 = fneg double %20
%42 = call double @llvm.fmuladd.f64(double %41, double %40, double 2.500000e-01)
%43 = fneg double %19
%44 = call double @llvm.fmuladd.f64(double %43, double %42, double %18)
%45 = fneg double %17
%46 = call double @llvm.fmuladd.f64(double %45, double %44, double 5.000000e-01)
%47 = fneg double %16
%48 = call double @llvm.fmuladd.f64(double %47, double %46, double 1.000000e+00)
%49 = fmul double %15, %48
ret double %49
}

LLVM IR (-O2):
define double @poly10(double %0, double %1, double %2, double %3, double %4, double %5, double %6) {
%8 = fneg double %0
%9 = tail call double @llvm.fmuladd.f64(double %8, double %6, double %5)
%10 = tail call double @llvm.fmuladd.f64(double %8, double %9, double 1.250000e-01)
%11 = tail call double @llvm.fmuladd.f64(double %8, double %10, double %4)
%12 = tail call double @llvm.fmuladd.f64(double %8, double %11, double %3)
%13 = tail call double @llvm.fmuladd.f64(double %8, double %12, double %2)
%14 = tail call double @llvm.fmuladd.f64(double %8, double %13, double 2.500000e-01)
%15 = tail call double @llvm.fmuladd.f64(double %8, double %14, double %1)
%16 = tail call double @llvm.fmuladd.f64(double %8, double %15, double 5.000000e-01)
%17 = tail call double @llvm.fmuladd.f64(double %8, double %16, double 1.000000e+00)
%18 = fmul double %17, %0
ret double %18
}