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


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

x86 assembly (clang, -O2):
<stress_funccall_float_7>:
sub    $0x28,%rsp
movss  %xmm6,0x20(%rsp)
movss  %xmm5,0x1c(%rsp)
movss  %xmm4,0x18(%rsp)
movss  %xmm3,0x14(%rsp)
movss  %xmm2,0x10(%rsp)
movss  %xmm1,0xc(%rsp)
movss  %xmm0,0x24(%rsp)
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  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_7(float %0, float %1, float %2, float %3, float %4, float %5, float %6) {
%8 = alloca float
%9 = alloca float
%10 = alloca float
%11 = alloca float
%12 = alloca float
%13 = alloca float
%14 = alloca float
store float %0, float* %8
store float %1, float* %9
store float %2, float* %10
store float %3, float* %11
store float %4, float* %12
store float %5, float* %13
store float %6, float* %14
%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* %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* %8
%30 = load float, float* %9
%31 = fadd float %29, %30
%32 = load float, float* %10
%33 = fadd float %31, %32
%34 = load float, float* %11
%35 = fadd float %33, %34
%36 = load float, float* %12
%37 = fadd float %35, %36
%38 = load float, float* %13
%39 = fadd float %37, %38
%40 = load float, float* %14
%41 = fadd float %39, %40
ret float %41
}

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