call7g(d, us, ul, ui, c, i, s, l, f, uc) double d;
unsigned short us;
unsigned long ul;
unsigned int ui;
char c;
int i;
short s;
long l;
float f;
unsigned char uc;
{ call7h(us, ul, ui, c, i, s, l, f, uc, d); }


x86 assembly (clang, -O0):
<call7g>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
movsd  %xmm1,-0x40(%rbp)
mov    %r9d,-0x54(%rbp)
mov    %ecx,%eax
mov    -0x54(%rbp),%ecx
mov    %eax,-0x50(%rbp)
mov    %edx,%eax
mov    -0x50(%rbp),%edx
mov    %eax,-0x4c(%rbp)
mov    %rsi,%rax
mov    -0x4c(%rbp),%esi
mov    %rax,-0x48(%rbp)
mov    %edi,%r9d
mov    -0x48(%rbp),%rdi
movaps %xmm0,%xmm1
movsd  -0x40(%rbp),%xmm0
mov    0x18(%rbp),%eax
mov    0x10(%rbp),%r10
cvtsd2ss %xmm0,%xmm0
movsd  %xmm1,-0x10(%rbp)
mov    %r9w,-0x12(%rbp)
mov    %rdi,-0x20(%rbp)
mov    %esi,-0x24(%rbp)
mov    %dl,-0x25(%rbp)
mov    %r8d,-0x2c(%rbp)
mov    %cx,-0x2e(%rbp)
movss  %xmm0,-0x34(%rbp)
mov    %al,-0x35(%rbp)
movzwl -0x12(%rbp),%edi
mov    -0x20(%rbp),%rsi
mov    -0x24(%rbp),%edx
movsbl -0x25(%rbp),%ecx
mov    -0x2c(%rbp),%r8d
movswl -0x2e(%rbp),%r9d
mov    0x10(%rbp),%r10
movss  -0x34(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movzbl -0x35(%rbp),%eax
movsd  -0x10(%rbp),%xmm1
mov    %r10,(%rsp)
mov    %eax,0x8(%rsp)
mov    $0x2,%al
call   1030 <call7h@plt>
mov    -0x4(%rbp),%eax
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<call7g>:
push   %rax
movaps %xmm0,%xmm2
movzbl 0x18(%rsp),%r10d
xorps  %xmm0,%xmm0
cvtsd2ss %xmm1,%xmm0
movzwl %di,%edi
movsbl %cl,%ecx
movswl %r9w,%r9d
cvtss2sd %xmm0,%xmm0
movaps %xmm2,%xmm1
mov    $0x2,%al
push   %r10
push   0x18(%rsp)
call   1030 <call7h@plt>
add    $0x10,%rsp
pop    %rcx
ret

LLVM IR (-O0):
define i32 @call7g(double %0, i32 %1, i64 %2, i32 %3, i32 %4, i32 %5, i32 %6, i64 %7, double %8, i32 %9) {
%11 = alloca i32
%12 = alloca double
%13 = alloca i16
%14 = alloca i64
%15 = alloca i32
%16 = alloca i8
%17 = alloca i32
%18 = alloca i16
%19 = alloca i64
%20 = alloca float
%21 = alloca i8
%22 = trunc i32 %1 to i16
%23 = trunc i32 %4 to i8
%24 = trunc i32 %6 to i16
%25 = fptrunc double %8 to float
%26 = trunc i32 %9 to i8
store double %0, double* %12
store i16 %22, i16* %13
store i64 %2, i64* %14
store i32 %3, i32* %15
store i8 %23, i8* %16
store i32 %5, i32* %17
store i16 %24, i16* %18
store i64 %7, i64* %19
store float %25, float* %20
store i8 %26, i8* %21
%27 = load i16, i16* %13
%28 = zext i16 %27 to i32
%29 = load i64, i64* %14
%30 = load i32, i32* %15
%31 = load i8, i8* %16
%32 = sext i8 %31 to i32
%33 = load i32, i32* %17
%34 = load i16, i16* %18
%35 = sext i16 %34 to i32
%36 = load i64, i64* %19
%37 = load float, float* %20
%38 = fpext float %37 to double
%39 = load i8, i8* %21
%40 = zext i8 %39 to i32
%41 = load double, double* %12
%42 = call i32 (i32, i64, i32, i32, i32, i32, i64, double, i32, double, ...) bitcast (i32 (...)* @call7h to i32 (i32, i64, i32, i32, i32, i32, i64, double, i32, double, ...)*)(i32 %28, i64 %29, i32 %30, i32 %32, i32 %33, i32 %35, i64 %36, double %38, i32 %40, double %41)
%43 = load i32, i32* %11
ret i32 %43
}

LLVM IR (-O2):
define i32 @call7g(double %0, i32 %1, i64 %2, i32 %3, i32 %4, i32 %5, i32 %6, i64 %7, double %8, i32 %9) {
%11 = fptrunc double %8 to float
%12 = and i32 %1, 65535
%13 = shl i32 %4, 24
%14 = ashr exact i32 %13, 24
%15 = shl i32 %6, 16
%16 = ashr exact i32 %15, 16
%17 = fpext float %11 to double
%18 = and i32 %9, 255
%19 = tail call i32 (i32, i64, i32, i32, i32, i32, i64, double, i32, double, ...) bitcast (i32 (...)* @call7h to i32 (i32, i64, i32, i32, i32, i32, i64, double, i32, double, ...)*)(i32 %12, i64 %2, i32 %3, i32 %14, i32 %5, i32 %16, i64 %7, double %17, i32 %18, double %0)
ret i32 undef
}