#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int /*<<< orphan*/ stress_double_put(double const);
double __attribute__((no))
stress_funccall_double_8(const double a, const double b, const double c,
                         const double d, const double e, const double f,
                         const double g, const double h) {
  stress_double_put(a);
  stress_double_put(b);
  stress_double_put(c);
  stress_double_put(d);
  stress_double_put(e);
  stress_double_put(f);
  stress_double_put(g);
  stress_double_put(h);
  return a + b + c + d + e + f + g + h;
}


x86 assembly (clang, -O0):
<stress_funccall_double_8>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
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),%xmm0
call   1030 <stress_double_put@plt>
movsd  -0x10(%rbp),%xmm0
call   1030 <stress_double_put@plt>
movsd  -0x18(%rbp),%xmm0
call   1030 <stress_double_put@plt>
movsd  -0x20(%rbp),%xmm0
call   1030 <stress_double_put@plt>
movsd  -0x28(%rbp),%xmm0
call   1030 <stress_double_put@plt>
movsd  -0x30(%rbp),%xmm0
call   1030 <stress_double_put@plt>
movsd  -0x38(%rbp),%xmm0
call   1030 <stress_double_put@plt>
movsd  -0x40(%rbp),%xmm0
call   1030 <stress_double_put@plt>
movsd  -0x8(%rbp),%xmm0
addsd  -0x10(%rbp),%xmm0
addsd  -0x18(%rbp),%xmm0
addsd  -0x20(%rbp),%xmm0
addsd  -0x28(%rbp),%xmm0
addsd  -0x30(%rbp),%xmm0
addsd  -0x38(%rbp),%xmm0
addsd  -0x40(%rbp),%xmm0
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<stress_funccall_double_8>:
sub    $0x48,%rsp
movsd  %xmm7,0x38(%rsp)
movsd  %xmm6,0x30(%rsp)
movsd  %xmm5,0x28(%rsp)
movsd  %xmm4,0x20(%rsp)
movsd  %xmm3,0x18(%rsp)
movsd  %xmm2,0x10(%rsp)
movsd  %xmm1,0x8(%rsp)
movsd  %xmm0,0x40(%rsp)
call   1030 <stress_double_put@plt>
movsd  0x8(%rsp),%xmm0
call   1030 <stress_double_put@plt>
movsd  0x10(%rsp),%xmm0
call   1030 <stress_double_put@plt>
movsd  0x18(%rsp),%xmm0
call   1030 <stress_double_put@plt>
movsd  0x20(%rsp),%xmm0
call   1030 <stress_double_put@plt>
movsd  0x28(%rsp),%xmm0
call   1030 <stress_double_put@plt>
movsd  0x30(%rsp),%xmm0
call   1030 <stress_double_put@plt>
movsd  0x38(%rsp),%xmm0
call   1030 <stress_double_put@plt>
movsd  0x40(%rsp),%xmm0
addsd  0x8(%rsp),%xmm0
addsd  0x10(%rsp),%xmm0
addsd  0x18(%rsp),%xmm0
addsd  0x20(%rsp),%xmm0
addsd  0x28(%rsp),%xmm0
addsd  0x30(%rsp),%xmm0
addsd  0x38(%rsp),%xmm0
add    $0x48,%rsp
ret

LLVM IR (-O0):
define double @stress_funccall_double_8(double %0, double %1, double %2, double %3, double %4, double %5, double %6, double %7) {
%9 = alloca double
%10 = alloca double
%11 = alloca double
%12 = alloca double
%13 = alloca double
%14 = alloca double
%15 = alloca double
%16 = alloca double
store double %0, double* %9
store double %1, double* %10
store double %2, double* %11
store double %3, double* %12
store double %4, double* %13
store double %5, double* %14
store double %6, double* %15
store double %7, double* %16
%17 = load double, double* %9
%18 = call i32 @stress_double_put(double %17)
%19 = load double, double* %10
%20 = call i32 @stress_double_put(double %19)
%21 = load double, double* %11
%22 = call i32 @stress_double_put(double %21)
%23 = load double, double* %12
%24 = call i32 @stress_double_put(double %23)
%25 = load double, double* %13
%26 = call i32 @stress_double_put(double %25)
%27 = load double, double* %14
%28 = call i32 @stress_double_put(double %27)
%29 = load double, double* %15
%30 = call i32 @stress_double_put(double %29)
%31 = load double, double* %16
%32 = call i32 @stress_double_put(double %31)
%33 = load double, double* %9
%34 = load double, double* %10
%35 = fadd double %33, %34
%36 = load double, double* %11
%37 = fadd double %35, %36
%38 = load double, double* %12
%39 = fadd double %37, %38
%40 = load double, double* %13
%41 = fadd double %39, %40
%42 = load double, double* %14
%43 = fadd double %41, %42
%44 = load double, double* %15
%45 = fadd double %43, %44
%46 = load double, double* %16
%47 = fadd double %45, %46
ret double %47
}

LLVM IR (-O2):
define double @stress_funccall_double_8(double %0, double %1, double %2, double %3, double %4, double %5, double %6, double %7) {
%9 = tail call i32 @stress_double_put(double %0)
%10 = tail call i32 @stress_double_put(double %1)
%11 = tail call i32 @stress_double_put(double %2)
%12 = tail call i32 @stress_double_put(double %3)
%13 = tail call i32 @stress_double_put(double %4)
%14 = tail call i32 @stress_double_put(double %5)
%15 = tail call i32 @stress_double_put(double %6)
%16 = tail call i32 @stress_double_put(double %7)
%17 = fadd double %0, %1
%18 = fadd double %17, %2
%19 = fadd double %18, %3
%20 = fadd double %19, %4
%21 = fadd double %20, %5
%22 = fadd double %21, %6
%23 = fadd double %22, %7
ret double %23
}