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


x86 assembly (clang, -O0):
<stress_funccall_float_5>:
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  -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  -0x4(%rbp),%xmm0
addss  -0x8(%rbp),%xmm0
addss  -0xc(%rbp),%xmm0
addss  -0x10(%rbp),%xmm0
addss  -0x14(%rbp),%xmm0
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<stress_funccall_float_5>:
sub    $0x18,%rsp
movss  %xmm4,0x10(%rsp)
movss  %xmm3,0xc(%rsp)
movss  %xmm2,0x8(%rsp)
movss  %xmm1,0x4(%rsp)
movss  %xmm0,0x14(%rsp)
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  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_5(float %0, float %1, float %2, float %3, float %4) {
%6 = alloca float
%7 = alloca float
%8 = alloca float
%9 = alloca float
%10 = alloca float
store float %0, float* %6
store float %1, float* %7
store float %2, float* %8
store float %3, float* %9
store float %4, float* %10
%11 = load float, float* %6
%12 = call i32 @stress_float_put(float %11)
%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* %6
%22 = load float, float* %7
%23 = fadd float %21, %22
%24 = load float, float* %8
%25 = fadd float %23, %24
%26 = load float, float* %9
%27 = fadd float %25, %26
%28 = load float, float* %10
%29 = fadd float %27, %28
ret float %29
}

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