#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_float_put(float const);
float __attribute__((no))
stress_funccall_float_6(const float a, const float b, const float c,
                        const float d, const float e, const float f) {
  stress_float_put(a);
  stress_float_put(b);
  stress_float_put(c);
  stress_float_put(d);
  stress_float_put(e);
  stress_float_put(f);
  return a + b + c + d + e + f;
}


x86 assembly (clang, -O0):
<stress_funccall_float_6>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movss  %xmm0,-0x4(%rbp)
movss  %xmm1,-0x8(%rbp)
movss  %xmm2,-0xc(%rbp)
movss  %xmm3,-0x10(%rbp)
movss  %xmm4,-0x14(%rbp)
movss  %xmm5,-0x18(%rbp)
movss  -0x4(%rbp),%xmm0
call   1030 <stress_float_put@plt>
movss  -0x8(%rbp),%xmm0
call   1030 <stress_float_put@plt>
movss  -0xc(%rbp),%xmm0
call   1030 <stress_float_put@plt>
movss  -0x10(%rbp),%xmm0
call   1030 <stress_float_put@plt>
movss  -0x14(%rbp),%xmm0
call   1030 <stress_float_put@plt>
movss  -0x18(%rbp),%xmm0
call   1030 <stress_float_put@plt>
movss  -0x4(%rbp),%xmm0
addss  -0x8(%rbp),%xmm0
addss  -0xc(%rbp),%xmm0
addss  -0x10(%rbp),%xmm0
addss  -0x14(%rbp),%xmm0
addss  -0x18(%rbp),%xmm0
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<stress_funccall_float_6>:
sub    $0x18,%rsp
movss  %xmm5,0x10(%rsp)
movss  %xmm4,0xc(%rsp)
movss  %xmm3,0x8(%rsp)
movss  %xmm2,0x4(%rsp)
movss  %xmm1,(%rsp)
movss  %xmm0,0x14(%rsp)
call   1030 <stress_float_put@plt>
movss  (%rsp),%xmm0
call   1030 <stress_float_put@plt>
movss  0x4(%rsp),%xmm0
call   1030 <stress_float_put@plt>
movss  0x8(%rsp),%xmm0
call   1030 <stress_float_put@plt>
movss  0xc(%rsp),%xmm0
call   1030 <stress_float_put@plt>
movss  0x10(%rsp),%xmm0
call   1030 <stress_float_put@plt>
movss  0x14(%rsp),%xmm0
addss  (%rsp),%xmm0
addss  0x4(%rsp),%xmm0
addss  0x8(%rsp),%xmm0
addss  0xc(%rsp),%xmm0
addss  0x10(%rsp),%xmm0
add    $0x18,%rsp
ret

LLVM IR (-O0):
define float @stress_funccall_float_6(float %0, float %1, float %2, float %3, float %4, float %5) {
%7 = alloca float
%8 = alloca float
%9 = alloca float
%10 = alloca float
%11 = alloca float
%12 = alloca float
store float %0, float* %7
store float %1, float* %8
store float %2, float* %9
store float %3, float* %10
store float %4, float* %11
store float %5, float* %12
%13 = load float, float* %7
%14 = call i32 @stress_float_put(float %13)
%15 = load float, float* %8
%16 = call i32 @stress_float_put(float %15)
%17 = load float, float* %9
%18 = call i32 @stress_float_put(float %17)
%19 = load float, float* %10
%20 = call i32 @stress_float_put(float %19)
%21 = load float, float* %11
%22 = call i32 @stress_float_put(float %21)
%23 = load float, float* %12
%24 = call i32 @stress_float_put(float %23)
%25 = load float, float* %7
%26 = load float, float* %8
%27 = fadd float %25, %26
%28 = load float, float* %9
%29 = fadd float %27, %28
%30 = load float, float* %10
%31 = fadd float %29, %30
%32 = load float, float* %11
%33 = fadd float %31, %32
%34 = load float, float* %12
%35 = fadd float %33, %34
ret float %35
}

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