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


x86 assembly (clang, -O0):
<stress_funccall_float_8>:
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  %xmm6,-0x1c(%rbp)
movss  %xmm7,-0x20(%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  -0x1c(%rbp),%xmm0
call   1030 <stress_float_put@plt>
movss  -0x20(%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
addss  -0x1c(%rbp),%xmm0
addss  -0x20(%rbp),%xmm0
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<stress_funccall_float_8>:
sub    $0x28,%rsp
movss  %xmm7,0x20(%rsp)
movss  %xmm6,0x1c(%rsp)
movss  %xmm5,0x18(%rsp)
movss  %xmm4,0x14(%rsp)
movss  %xmm3,0x10(%rsp)
movss  %xmm2,0xc(%rsp)
movss  %xmm1,0x8(%rsp)
movss  %xmm0,0x24(%rsp)
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
call   1030 <stress_float_put@plt>
movss  0x18(%rsp),%xmm0
call   1030 <stress_float_put@plt>
movss  0x1c(%rsp),%xmm0
call   1030 <stress_float_put@plt>
movss  0x20(%rsp),%xmm0
call   1030 <stress_float_put@plt>
movss  0x24(%rsp),%xmm0
addss  0x8(%rsp),%xmm0
addss  0xc(%rsp),%xmm0
addss  0x10(%rsp),%xmm0
addss  0x14(%rsp),%xmm0
addss  0x18(%rsp),%xmm0
addss  0x1c(%rsp),%xmm0
addss  0x20(%rsp),%xmm0
add    $0x28,%rsp
ret

LLVM IR (-O0):
define float @stress_funccall_float_8(float %0, float %1, float %2, float %3, float %4, float %5, float %6, float %7) {
%9 = alloca float
%10 = alloca float
%11 = alloca float
%12 = alloca float
%13 = alloca float
%14 = alloca float
%15 = alloca float
%16 = alloca float
store float %0, float* %9
store float %1, float* %10
store float %2, float* %11
store float %3, float* %12
store float %4, float* %13
store float %5, float* %14
store float %6, float* %15
store float %7, float* %16
%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* %13
%26 = call i32 @stress_float_put(float %25)
%27 = load float, float* %14
%28 = call i32 @stress_float_put(float %27)
%29 = load float, float* %15
%30 = call i32 @stress_float_put(float %29)
%31 = load float, float* %16
%32 = call i32 @stress_float_put(float %31)
%33 = load float, float* %9
%34 = load float, float* %10
%35 = fadd float %33, %34
%36 = load float, float* %11
%37 = fadd float %35, %36
%38 = load float, float* %12
%39 = fadd float %37, %38
%40 = load float, float* %13
%41 = fadd float %39, %40
%42 = load float, float* %14
%43 = fadd float %41, %42
%44 = load float, float* %15
%45 = fadd float %43, %44
%46 = load float, float* %16
%47 = fadd float %45, %46
ret float %47
}

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