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


x86 assembly (clang, -O0):
<stress_funccall_double_7>:
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  -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  -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
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<stress_funccall_double_7>:
sub    $0x38,%rsp
movsd  %xmm6,0x28(%rsp)
movsd  %xmm5,0x20(%rsp)
movsd  %xmm4,0x18(%rsp)
movsd  %xmm3,0x10(%rsp)
movsd  %xmm2,0x8(%rsp)
movsd  %xmm1,(%rsp)
movsd  %xmm0,0x30(%rsp)
call   1030 <stress_double_put@plt>
movsd  (%rsp),%xmm0
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  (%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_7(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 = 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* %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* %8
%30 = load double, double* %9
%31 = fadd double %29, %30
%32 = load double, double* %10
%33 = fadd double %31, %32
%34 = load double, double* %11
%35 = fadd double %33, %34
%36 = load double, double* %12
%37 = fadd double %35, %36
%38 = load double, double* %13
%39 = fadd double %37, %38
%40 = load double, double* %14
%41 = fadd double %39, %40
ret double %41
}

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