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


x86 assembly (clang, -O0):
<stress_funccall_double_6>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%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  -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  -0x8(%rbp),%xmm0
addsd  -0x10(%rbp),%xmm0
addsd  -0x18(%rbp),%xmm0
addsd  -0x20(%rbp),%xmm0
addsd  -0x28(%rbp),%xmm0
addsd  -0x30(%rbp),%xmm0
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<stress_funccall_double_6>:
sub    $0x38,%rsp
movsd  %xmm5,0x28(%rsp)
movsd  %xmm4,0x20(%rsp)
movsd  %xmm3,0x18(%rsp)
movsd  %xmm2,0x10(%rsp)
movsd  %xmm1,0x8(%rsp)
movsd  %xmm0,0x30(%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
addsd  0x8(%rsp),%xmm0
addsd  0x10(%rsp),%xmm0
addsd  0x18(%rsp),%xmm0
addsd  0x20(%rsp),%xmm0
addsd  0x28(%rsp),%xmm0
add    $0x38,%rsp
ret

LLVM IR (-O0):
define double @stress_funccall_double_6(double %0, double %1, double %2, double %3, double %4, double %5) {
%7 = alloca double
%8 = alloca double
%9 = alloca double
%10 = alloca double
%11 = alloca double
%12 = alloca double
store double %0, double* %7
store double %1, double* %8
store double %2, double* %9
store double %3, double* %10
store double %4, double* %11
store double %5, double* %12
%13 = load double, double* %7
%14 = call i32 @stress_double_put(double %13)
%15 = load double, double* %8
%16 = call i32 @stress_double_put(double %15)
%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* %7
%26 = load double, double* %8
%27 = fadd double %25, %26
%28 = load double, double* %9
%29 = fadd double %27, %28
%30 = load double, double* %10
%31 = fadd double %29, %30
%32 = load double, double* %11
%33 = fadd double %31, %32
%34 = load double, double* %12
%35 = fadd double %33, %34
ret double %35
}

LLVM IR (-O2):
define double @stress_funccall_double_6(double %0, double %1, double %2, double %3, double %4, double %5) {
%7 = tail call i32 @stress_double_put(double %0)
%8 = tail call i32 @stress_double_put(double %1)
%9 = tail call i32 @stress_double_put(double %2)
%10 = tail call i32 @stress_double_put(double %3)
%11 = tail call i32 @stress_double_put(double %4)
%12 = tail call i32 @stress_double_put(double %5)
%13 = fadd double %0, %1
%14 = fadd double %13, %2
%15 = fadd double %14, %3
%16 = fadd double %15, %4
%17 = fadd double %16, %5
ret double %17
}