#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_9(const double a, const double b, const double c,
                         const double d, const double e, const double f,
                         const double g, const double h, const double i) {
  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);
  stress_double_put(i);
  return a + b + c + d + e + f + g + h + i;
}


x86 assembly (clang, -O0):
<stress_funccall_double_9>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
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),%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  0x10(%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
addsd  0x10(%rbp),%xmm0
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<stress_funccall_double_9>:
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  0x50(%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
addsd  0x50(%rsp),%xmm0
add    $0x48,%rsp
ret

LLVM IR (-O0):
define double @stress_funccall_double_9(double %0, double %1, double %2, double %3, double %4, double %5, double %6, double %7, double %8) {
%10 = alloca double
%11 = alloca double
%12 = alloca double
%13 = alloca double
%14 = alloca double
%15 = alloca double
%16 = alloca double
%17 = alloca double
%18 = alloca double
store double %0, double* %10
store double %1, double* %11
store double %2, double* %12
store double %3, double* %13
store double %4, double* %14
store double %5, double* %15
store double %6, double* %16
store double %7, double* %17
store double %8, double* %18
%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* %17
%34 = call i32 @stress_double_put(double %33)
%35 = load double, double* %18
%36 = call i32 @stress_double_put(double %35)
%37 = load double, double* %10
%38 = load double, double* %11
%39 = fadd double %37, %38
%40 = load double, double* %12
%41 = fadd double %39, %40
%42 = load double, double* %13
%43 = fadd double %41, %42
%44 = load double, double* %14
%45 = fadd double %43, %44
%46 = load double, double* %15
%47 = fadd double %45, %46
%48 = load double, double* %16
%49 = fadd double %47, %48
%50 = load double, double* %17
%51 = fadd double %49, %50
%52 = load double, double* %18
%53 = fadd double %51, %52
ret double %53
}

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