int main() {
  __complex__ double x;
  __complex__ float y;
  __complex__ long double z;
  __real__ x = 1.0;
  __imag__ x = 2.0;
  foo(x);
  __real__ y = 3.0f;
  __imag__ y = 4.0f;
  bar(y);
  __real__ z = 5.0L;
  __imag__ z = 6.0L;
  baz(z);
  exit(0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xa0,%rsp
movl   $0x0,-0x4(%rbp)
movabs $0x3ff0000000000000,%rax
mov    %rax,-0x18(%rbp)
movabs $0x4000000000000000,%rax
mov    %rax,-0x10(%rbp)
movsd  -0x18(%rbp),%xmm1
movsd  -0x10(%rbp),%xmm0
movsd  %xmm1,-0x50(%rbp)
movsd  %xmm0,-0x48(%rbp)
movsd  -0x50(%rbp),%xmm0
movsd  -0x48(%rbp),%xmm1
mov    $0x2,%al
call   1050 <foo@plt>
movl   $0x40400000,-0x20(%rbp)
movl   $0x40800000,-0x1c(%rbp)
movss  -0x20(%rbp),%xmm1
movss  -0x1c(%rbp),%xmm0
movss  %xmm1,-0x58(%rbp)
movss  %xmm0,-0x54(%rbp)
movsd  -0x58(%rbp),%xmm0
mov    $0x1,%al
call   1040 <bar@plt>
flds   0xe39(%rip)
fstpt  -0x40(%rbp)
flds   0xe34(%rip)
fstpt  -0x30(%rbp)
fldt   -0x40(%rbp)
fldt   -0x30(%rbp)
fxch   %st(1)
fstpt  -0x80(%rbp)
fstpt  -0x70(%rbp)
lea    -0x80(%rbp),%rax
mov    (%rax),%rcx
mov    %rcx,(%rsp)
mov    0x8(%rax),%rcx
mov    %rcx,0x8(%rsp)
mov    0x10(%rax),%rcx
mov    %rcx,0x10(%rsp)
mov    0x18(%rax),%rax
mov    %rax,0x18(%rsp)
mov    $0x0,%al
call   1030 <baz@plt>
xor    %edi,%edi
call   1060 <exit@plt>

x86 assembly (clang, -O2):
<main>:
sub    $0x48,%rsp
movsd  0xeb4(%rip),%xmm0
movsd  0xeb4(%rip),%xmm1
mov    $0x2,%al
call   1050 <foo@plt>
movaps 0xeae(%rip),%xmm0
mov    $0x1,%al
call   1040 <bar@plt>
flds   0xeb1(%rip)
fstpt  0x20(%rsp)
flds   0xeab(%rip)
fstpt  0x30(%rsp)
movaps 0x20(%rsp),%xmm0
movaps 0x30(%rsp),%xmm1
movaps %xmm1,0x10(%rsp)
movaps %xmm0,(%rsp)
xor    %eax,%eax
call   1030 <baz@plt>
xor    %edi,%edi
call   1060 <exit@plt>

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca { double, double }
%3 = alloca { float, float }
%4 = alloca { x86_fp80, x86_fp80 }
%5 = alloca { double, double }
%6 = alloca { float, float }
%7 = alloca { x86_fp80, x86_fp80 }
store i32 0, i32* %1
%8 = getelementptr inbounds { double, double }, { double, double }* %2, i32 0, i32 0
store double 1.000000e+00, double* %8
%9 = getelementptr inbounds { double, double }, { double, double }* %2, i32 0, i32 1
store double 2.000000e+00, double* %9
%10 = getelementptr inbounds { double, double }, { double, double }* %2, i32 0, i32 0
%11 = load double, double* %10
%12 = getelementptr inbounds { double, double }, { double, double }* %2, i32 0, i32 1
%13 = load double, double* %12
%14 = getelementptr inbounds { double, double }, { double, double }* %5, i32 0, i32 0
%15 = getelementptr inbounds { double, double }, { double, double }* %5, i32 0, i32 1
store double %11, double* %14
store double %13, double* %15
%16 = getelementptr inbounds { double, double }, { double, double }* %5, i32 0, i32 0
%17 = load double, double* %16
%18 = getelementptr inbounds { double, double }, { double, double }* %5, i32 0, i32 1
%19 = load double, double* %18
%20 = call i32 (double, double, ...) bitcast (i32 (...)* @foo to i32 (double, double, ...)*)(double %17, double %19)
%21 = getelementptr inbounds { float, float }, { float, float }* %3, i32 0, i32 0
store float 3.000000e+00, float* %21
%22 = getelementptr inbounds { float, float }, { float, float }* %3, i32 0, i32 1
store float 4.000000e+00, float* %22
%23 = getelementptr inbounds { float, float }, { float, float }* %3, i32 0, i32 0
%24 = load float, float* %23
%25 = getelementptr inbounds { float, float }, { float, float }* %3, i32 0, i32 1
%26 = load float, float* %25
%27 = getelementptr inbounds { float, float }, { float, float }* %6, i32 0, i32 0
%28 = getelementptr inbounds { float, float }, { float, float }* %6, i32 0, i32 1
store float %24, float* %27
store float %26, float* %28
%29 = bitcast { float, float }* %6 to <2 x float>*
%30 = load <2 x float>, <2 x float>* %29
%31 = call i32 (<2 x float>, ...) bitcast (i32 (...)* @bar to i32 (<2 x float>, ...)*)(<2 x float> %30)
%32 = getelementptr inbounds { x86_fp80, x86_fp80 }, { x86_fp80, x86_fp80 }* %4, i32 0, i32 0
store x86_fp80 0xK4001A000000000000000, x86_fp80* %32
%33 = getelementptr inbounds { x86_fp80, x86_fp80 }, { x86_fp80, x86_fp80 }* %4, i32 0, i32 1
store x86_fp80 0xK4001C000000000000000, x86_fp80* %33
%34 = getelementptr inbounds { x86_fp80, x86_fp80 }, { x86_fp80, x86_fp80 }* %4, i32 0, i32 0
%35 = load x86_fp80, x86_fp80* %34
%36 = getelementptr inbounds { x86_fp80, x86_fp80 }, { x86_fp80, x86_fp80 }* %4, i32 0, i32 1
%37 = load x86_fp80, x86_fp80* %36
%38 = getelementptr inbounds { x86_fp80, x86_fp80 }, { x86_fp80, x86_fp80 }* %7, i32 0, i32 0
%39 = getelementptr inbounds { x86_fp80, x86_fp80 }, { x86_fp80, x86_fp80 }* %7, i32 0, i32 1
store x86_fp80 %35, x86_fp80* %38
store x86_fp80 %37, x86_fp80* %39
%40 = call i32 ({ x86_fp80, x86_fp80 }*, ...) bitcast (i32 (...)* @baz to i32 ({ x86_fp80, x86_fp80 }*, ...)*)({ x86_fp80, x86_fp80 }* byval({ x86_fp80, x86_fp80 }) align 16 %7)
unreachable
}

LLVM IR (-O2):
define i32 @main() {
%1 = alloca { x86_fp80, x86_fp80 }
%2 = tail call i32 (double, double, ...) bitcast (i32 (...)* @foo to i32 (double, double, ...)*)(double 1.000000e+00, double 2.000000e+00)
%3 = tail call i32 (<2 x float>, ...) bitcast (i32 (...)* @bar to i32 (<2 x float>, ...)*)(<2 x float> <float 3.000000e+00, float 4.000000e+00>)
%4 = getelementptr inbounds { x86_fp80, x86_fp80 }, { x86_fp80, x86_fp80 }* %1, i64 0, i32 0
%5 = getelementptr inbounds { x86_fp80, x86_fp80 }, { x86_fp80, x86_fp80 }* %1, i64 0, i32 1
store x86_fp80 0xK4001A000000000000000, x86_fp80* %4
store x86_fp80 0xK4001C000000000000000, x86_fp80* %5
%6 = tail call i32 ({ x86_fp80, x86_fp80 }*, ...) bitcast (i32 (...)* @baz to i32 ({ x86_fp80, x86_fp80 }*, ...)*)({ x86_fp80, x86_fp80 }* byval({ x86_fp80, x86_fp80 }) align 16 %1)
tail call void @exit(i32 0)
unreachable
}