int function8(float a, float b, long double c, int d, long double e,
              long double f, float g, short int h, double i, int j) {
  return a + b + c + d + e + f + g + h + i + j;
}


x86 assembly (clang, -O0):
<function8>:
push   %rbp
mov    %rsp,%rbp
mov    %si,%ax
fldt   0x30(%rbp)
fldt   0x20(%rbp)
fldt   0x10(%rbp)
movss  %xmm0,-0x4(%rbp)
movss  %xmm1,-0x8(%rbp)
fstpt  -0x20(%rbp)
mov    %edi,-0x24(%rbp)
fstpt  -0x40(%rbp)
fstpt  -0x50(%rbp)
movss  %xmm2,-0x54(%rbp)
mov    %ax,-0x56(%rbp)
movsd  %xmm3,-0x60(%rbp)
mov    %edx,-0x64(%rbp)
movss  -0x4(%rbp),%xmm0
movss  -0x8(%rbp),%xmm1
addss  %xmm1,%xmm0
movss  %xmm0,-0x78(%rbp)
flds   -0x78(%rbp)
fldt   -0x20(%rbp)
faddp  %st,%st(1)
mov    -0x24(%rbp),%eax
mov    %eax,-0x6c(%rbp)
fildl  -0x6c(%rbp)
faddp  %st,%st(1)
fldt   -0x40(%rbp)
faddp  %st,%st(1)
fldt   -0x50(%rbp)
faddp  %st,%st(1)
flds   -0x54(%rbp)
faddp  %st,%st(1)
movswl -0x56(%rbp),%eax
mov    %eax,-0x74(%rbp)
fildl  -0x74(%rbp)
faddp  %st,%st(1)
fldl   -0x60(%rbp)
faddp  %st,%st(1)
mov    -0x64(%rbp),%eax
mov    %eax,-0x70(%rbp)
fildl  -0x70(%rbp)
faddp  %st,%st(1)
fnstcw -0x7a(%rbp)
movzwl -0x7a(%rbp),%eax
or     $0xc00,%eax
mov    %ax,-0x7c(%rbp)
fldcw  -0x7c(%rbp)
fistpl -0x68(%rbp)
fldcw  -0x7a(%rbp)
mov    -0x68(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<function8>:
fldt   0x28(%rsp)
fldt   0x18(%rsp)
fldt   0x8(%rsp)
addss  %xmm1,%xmm0
movss  %xmm0,-0x1c(%rsp)
fadds  -0x1c(%rsp)
mov    %edi,-0x14(%rsp)
fiaddl -0x14(%rsp)
faddp  %st,%st(1)
faddp  %st,%st(1)
movss  %xmm2,-0x18(%rsp)
fadds  -0x18(%rsp)
mov    %si,-0x1e(%rsp)
fiadds -0x1e(%rsp)
movsd  %xmm3,-0x8(%rsp)
faddl  -0x8(%rsp)
mov    %edx,-0x10(%rsp)
fiaddl -0x10(%rsp)
fnstcw -0x22(%rsp)
movzwl -0x22(%rsp),%eax
or     $0xc00,%eax
mov    %ax,-0x20(%rsp)
fldcw  -0x20(%rsp)
fistpl -0xc(%rsp)
fldcw  -0x22(%rsp)
mov    -0xc(%rsp),%eax
ret

LLVM IR (-O0):
define i32 @function8(float %0, float %1, x86_fp80 %2, i32 %3, x86_fp80 %4, x86_fp80 %5, float %6, i16 signext %7, double %8, i32 %9) {
%11 = alloca float
%12 = alloca float
%13 = alloca x86_fp80
%14 = alloca i32
%15 = alloca x86_fp80
%16 = alloca x86_fp80
%17 = alloca float
%18 = alloca i16
%19 = alloca double
%20 = alloca i32
store float %0, float* %11
store float %1, float* %12
store x86_fp80 %2, x86_fp80* %13
store i32 %3, i32* %14
store x86_fp80 %4, x86_fp80* %15
store x86_fp80 %5, x86_fp80* %16
store float %6, float* %17
store i16 %7, i16* %18
store double %8, double* %19
store i32 %9, i32* %20
%21 = load float, float* %11
%22 = load float, float* %12
%23 = fadd float %21, %22
%24 = fpext float %23 to x86_fp80
%25 = load x86_fp80, x86_fp80* %13
%26 = fadd x86_fp80 %24, %25
%27 = load i32, i32* %14
%28 = sitofp i32 %27 to x86_fp80
%29 = fadd x86_fp80 %26, %28
%30 = load x86_fp80, x86_fp80* %15
%31 = fadd x86_fp80 %29, %30
%32 = load x86_fp80, x86_fp80* %16
%33 = fadd x86_fp80 %31, %32
%34 = load float, float* %17
%35 = fpext float %34 to x86_fp80
%36 = fadd x86_fp80 %33, %35
%37 = load i16, i16* %18
%38 = sext i16 %37 to i32
%39 = sitofp i32 %38 to x86_fp80
%40 = fadd x86_fp80 %36, %39
%41 = load double, double* %19
%42 = fpext double %41 to x86_fp80
%43 = fadd x86_fp80 %40, %42
%44 = load i32, i32* %20
%45 = sitofp i32 %44 to x86_fp80
%46 = fadd x86_fp80 %43, %45
%47 = fptosi x86_fp80 %46 to i32
ret i32 %47
}

LLVM IR (-O2):
define i32 @function8(float %0, float %1, x86_fp80 %2, i32 %3, x86_fp80 %4, x86_fp80 %5, float %6, i16 signext %7, double %8, i32 %9) {
%11 = fadd float %0, %1
%12 = fpext float %11 to x86_fp80
%13 = fadd x86_fp80 %12, %2
%14 = sitofp i32 %3 to x86_fp80
%15 = fadd x86_fp80 %13, %14
%16 = fadd x86_fp80 %15, %4
%17 = fadd x86_fp80 %16, %5
%18 = fpext float %6 to x86_fp80
%19 = fadd x86_fp80 %17, %18
%20 = sitofp i16 %7 to x86_fp80
%21 = fadd x86_fp80 %19, %20
%22 = fpext double %8 to x86_fp80
%23 = fadd x86_fp80 %21, %22
%24 = sitofp i32 %9 to x86_fp80
%25 = fadd x86_fp80 %23, %24
%26 = fptosi x86_fp80 %25 to i32
ret i32 %26
}