void f(void) {
  _Complex float cf;
  _Complex double cd;
  _Complex long double cld;
  double d;
  float f;
  long double ld;
  cf = 1.0;
  d = cf;
  f = cf;
  ld = cf;
  cd = 1.0;
  d = cd;
  f = cd;
  ld = cd;
  cld = 1.0;
  d = cld;
  f = cld;
  ld = cld;
}


x86 assembly (clang, -O0):
<f>:
push   %rbp
mov    %rsp,%rbp
movl   $0x3f800000,-0x8(%rbp)
movl   $0x0,-0x4(%rbp)
movss  -0x8(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  %xmm0,-0x48(%rbp)
movss  -0x8(%rbp),%xmm0
movss  %xmm0,-0x4c(%rbp)
flds   -0x8(%rbp)
fstpt  -0x60(%rbp)
movabs $0x3ff0000000000000,%rax
mov    %rax,-0x18(%rbp)
movq   $0x0,-0x10(%rbp)
movsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  -0x18(%rbp),%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x4c(%rbp)
fldl   -0x18(%rbp)
fstpt  -0x60(%rbp)
fld1
fstpt  -0x40(%rbp)
fldz
fstpt  -0x30(%rbp)
fldt   -0x40(%rbp)
fstpl  -0x48(%rbp)
fldt   -0x40(%rbp)
fstps  -0x4c(%rbp)
fldt   -0x40(%rbp)
fstpt  -0x60(%rbp)
pop    %rbp
ret

x86 assembly (clang, -O2):
<f>:
ret

LLVM IR (-O0):
define void @f() {
%1 = alloca { float, float }
%2 = alloca { double, double }
%3 = alloca { x86_fp80, x86_fp80 }
%4 = alloca double
%5 = alloca float
%6 = alloca x86_fp80
%7 = getelementptr inbounds { float, float }, { float, float }* %1, i32 0, i32 0
%8 = getelementptr inbounds { float, float }, { float, float }* %1, i32 0, i32 1
store float 1.000000e+00, float* %7
store float 0.000000e+00, float* %8
%9 = getelementptr inbounds { float, float }, { float, float }* %1, i32 0, i32 0
%10 = load float, float* %9
%11 = fpext float %10 to double
store double %11, double* %4
%12 = getelementptr inbounds { float, float }, { float, float }* %1, i32 0, i32 0
%13 = load float, float* %12
store float %13, float* %5
%14 = getelementptr inbounds { float, float }, { float, float }* %1, i32 0, i32 0
%15 = load float, float* %14
%16 = fpext float %15 to x86_fp80
store x86_fp80 %16, x86_fp80* %6
%17 = getelementptr inbounds { double, double }, { double, double }* %2, i32 0, i32 0
%18 = getelementptr inbounds { double, double }, { double, double }* %2, i32 0, i32 1
store double 1.000000e+00, double* %17
store double 0.000000e+00, double* %18
%19 = getelementptr inbounds { double, double }, { double, double }* %2, i32 0, i32 0
%20 = load double, double* %19
store double %20, double* %4
%21 = getelementptr inbounds { double, double }, { double, double }* %2, i32 0, i32 0
%22 = load double, double* %21
%23 = fptrunc double %22 to float
store float %23, float* %5
%24 = getelementptr inbounds { double, double }, { double, double }* %2, i32 0, i32 0
%25 = load double, double* %24
%26 = fpext double %25 to x86_fp80
store x86_fp80 %26, x86_fp80* %6
%27 = getelementptr inbounds { x86_fp80, x86_fp80 }, { x86_fp80, x86_fp80 }* %3, i32 0, i32 0
%28 = getelementptr inbounds { x86_fp80, x86_fp80 }, { x86_fp80, x86_fp80 }* %3, i32 0, i32 1
store x86_fp80 0xK3FFF8000000000000000, x86_fp80* %27
store x86_fp80 0xK00000000000000000000, x86_fp80* %28
%29 = getelementptr inbounds { x86_fp80, x86_fp80 }, { x86_fp80, x86_fp80 }* %3, i32 0, i32 0
%30 = load x86_fp80, x86_fp80* %29
%31 = fptrunc x86_fp80 %30 to double
store double %31, double* %4
%32 = getelementptr inbounds { x86_fp80, x86_fp80 }, { x86_fp80, x86_fp80 }* %3, i32 0, i32 0
%33 = load x86_fp80, x86_fp80* %32
%34 = fptrunc x86_fp80 %33 to float
store float %34, float* %5
%35 = getelementptr inbounds { x86_fp80, x86_fp80 }, { x86_fp80, x86_fp80 }* %3, i32 0, i32 0
%36 = load x86_fp80, x86_fp80* %35
store x86_fp80 %36, x86_fp80* %6
ret void
}

LLVM IR (-O2):
define void @f() {
ret void
}