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


x86 assembly (clang, -O0):
<stress_funccall_float_9>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movss  0x10(%rbp),%xmm8
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  0x10(%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
addss  0x10(%rbp),%xmm0
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<stress_funccall_float_9>:
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  0x30(%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
addss  0x30(%rsp),%xmm0
add    $0x28,%rsp
ret

LLVM IR (-O0):
define float @stress_funccall_float_9(float %0, float %1, float %2, float %3, float %4, float %5, float %6, float %7, float %8) {
%10 = alloca float
%11 = alloca float
%12 = alloca float
%13 = alloca float
%14 = alloca float
%15 = alloca float
%16 = alloca float
%17 = alloca float
%18 = alloca float
store float %0, float* %10
store float %1, float* %11
store float %2, float* %12
store float %3, float* %13
store float %4, float* %14
store float %5, float* %15
store float %6, float* %16
store float %7, float* %17
store float %8, float* %18
%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* %17
%34 = call i32 @stress_float_put(float %33)
%35 = load float, float* %18
%36 = call i32 @stress_float_put(float %35)
%37 = load float, float* %10
%38 = load float, float* %11
%39 = fadd float %37, %38
%40 = load float, float* %12
%41 = fadd float %39, %40
%42 = load float, float* %13
%43 = fadd float %41, %42
%44 = load float, float* %14
%45 = fadd float %43, %44
%46 = load float, float* %15
%47 = fadd float %45, %46
%48 = load float, float* %16
%49 = fadd float %47, %48
%50 = load float, float* %17
%51 = fadd float %49, %50
%52 = load float, float* %18
%53 = fadd float %51, %52
ret float %53
}

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