int main() {
  volatile float _Complex fc = 1.0F + 2.0iF;
  volatile double _Complex dc = 1.0 + 2.0i;
  volatile long double _Complex ldc = 1.0L + 2.0iL;
  if (__builtin_conjf(fc) != 1.0F - 2.0iF)
    abort();
  if (__builtin_conjf(1.0F + 2.0iF) != 1.0F - 2.0iF)
    link_error();
  if (__builtin_crealf(fc) != 1.0F)
    abort();
  if (__builtin_crealf(1.0F + 2.0iF) != 1.0F)
    link_error();
  if (__builtin_cimagf(fc) != 2.0F)
    abort();
  if (__builtin_cimagf(1.0F + 2.0iF) != 2.0F)
    link_error();
  if (__builtin_conj(dc) != 1.0 - 2.0i)
    abort();
  if (__builtin_conj(1.0 + 2.0i) != 1.0 - 2.0i)
    link_error();
  if (__builtin_creal(dc) != 1.0)
    abort();
  if (__builtin_creal(1.0 + 2.0i) != 1.0)
    link_error();
  if (__builtin_cimag(dc) != 2.0)
    abort();
  if (__builtin_cimag(1.0 + 2.0i) != 2.0)
    link_error();
  if (__builtin_conjl(ldc) != 1.0L - 2.0iL)
    abort();
  if (__builtin_conjl(1.0L + 2.0iL) != 1.0L - 2.0iL)
    link_error();
  if (__builtin_creall(ldc) != 1.0L)
    abort();
  if (__builtin_creall(1.0L + 2.0iL) != 1.0L)
    link_error();
  if (__builtin_cimagl(ldc) != 2.0L)
    abort();
  if (__builtin_cimagl(1.0L + 2.0iL) != 2.0L)
    link_error();
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x3f800000,-0x10(%rbp)
movl   $0x40000000,-0xc(%rbp)
movabs $0x3ff0000000000000,%rax
mov    %rax,-0x20(%rbp)
movabs $0x4000000000000000,%rax
mov    %rax,-0x18(%rbp)
fld1
fstpt  -0x40(%rbp)
flds   0xea4(%rip)
fstpt  -0x30(%rbp)
movss  -0x10(%rbp),%xmm1
movss  -0xc(%rbp),%xmm0
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm0
movss  0xe7e(%rip),%xmm2
ucomiss %xmm2,%xmm1
setne  %al
setp   %cl
or     %cl,%al
movss  0xe67(%rip),%xmm1
ucomiss %xmm1,%xmm0
setne  %cl
setp   %dl
or     %dl,%cl
or     %cl,%al
test   $0x1,%al
jne    11b3 <main+0x93>
jmp    11b8 <main+0x98>
call   1030 <abort@plt>
xor    %eax,%eax
test   $0x1,%al
jne    11c7 <main+0xa7>
jmp    11ce <main+0xae>
mov    $0x0,%al
call   1040 <link_error@plt>
movss  -0x10(%rbp),%xmm0
movss  -0xc(%rbp),%xmm1
movss  0xe24(%rip),%xmm1
ucomiss %xmm1,%xmm0
jne    11f4 <main+0xd4>
jp     11f4 <main+0xd4>
jmp    11f9 <main+0xd9>
call   1030 <abort@plt>
xor    %eax,%eax
test   $0x1,%al
jne    1208 <main+0xe8>
jmp    120f <main+0xef>
mov    $0x0,%al
call   1040 <link_error@plt>
movss  -0x10(%rbp),%xmm0
movss  -0xc(%rbp),%xmm0
movss  0xde7(%rip),%xmm1
ucomiss %xmm1,%xmm0
jne    1235 <main+0x115>
jp     1235 <main+0x115>
jmp    123a <main+0x11a>
call   1030 <abort@plt>
xor    %eax,%eax
test   $0x1,%al
jne    1249 <main+0x129>
jmp    1250 <main+0x130>
mov    $0x0,%al
call   1040 <link_error@plt>
movsd  -0x20(%rbp),%xmm1
movsd  -0x18(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  0xd9f(%rip),%xmm2
ucomisd %xmm2,%xmm1
setne  %al
setp   %cl
or     %cl,%al
movsd  0xd83(%rip),%xmm1
ucomisd %xmm1,%xmm0
setne  %cl
setp   %dl
or     %dl,%cl
or     %cl,%al
test   $0x1,%al
jne    12a8 <main+0x188>
jmp    12ad <main+0x18d>
call   1030 <abort@plt>
xor    %eax,%eax
test   $0x1,%al
jne    12bc <main+0x19c>
jmp    12c3 <main+0x1a3>
mov    $0x0,%al
call   1040 <link_error@plt>
movsd  -0x20(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm1
movsd  0xd43(%rip),%xmm1
ucomisd %xmm1,%xmm0
jne    12ea <main+0x1ca>
jp     12ea <main+0x1ca>
jmp    12ef <main+0x1cf>
call   1030 <abort@plt>
xor    %eax,%eax
test   $0x1,%al
jne    12fe <main+0x1de>
jmp    1305 <main+0x1e5>
mov    $0x0,%al
call   1040 <link_error@plt>
movsd  -0x20(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm0
movsd  0xd09(%rip),%xmm1
ucomisd %xmm1,%xmm0
jne    132c <main+0x20c>
jp     132c <main+0x20c>
jmp    1331 <main+0x211>
call   1030 <abort@plt>
xor    %eax,%eax
test   $0x1,%al
jne    1340 <main+0x220>
jmp    1347 <main+0x227>
mov    $0x0,%al
call   1040 <link_error@plt>
fldt   -0x40(%rbp)
fldt   -0x30(%rbp)
fld1
fucomip %st(2),%st
fstp   %st(1)
setp   %cl
setne  %al
or     %cl,%al
flds   0xca7(%rip)
fucomip %st(1),%st
fstp   %st(0)
setp   %dl
setne  %cl
or     %dl,%cl
or     %cl,%al
test   $0x1,%al
jne    137c <main+0x25c>
jmp    1381 <main+0x261>
call   1030 <abort@plt>
xor    %eax,%eax
test   $0x1,%al
jne    1390 <main+0x270>
jmp    1397 <main+0x277>
mov    $0x0,%al
call   1040 <link_error@plt>
fldt   -0x40(%rbp)
fldt   -0x30(%rbp)
fstp   %st(0)
fld1
fxch   %st(1)
fucomip %st(1),%st
fstp   %st(0)
jne    13b8 <main+0x298>
jp     13b8 <main+0x298>
jmp    13bd <main+0x29d>
call   1030 <abort@plt>
xor    %eax,%eax
test   $0x1,%al
jne    13cc <main+0x2ac>
jmp    13d3 <main+0x2b3>
mov    $0x0,%al
call   1040 <link_error@plt>
fldt   -0x40(%rbp)
fstp   %st(0)
fldt   -0x30(%rbp)
flds   0xc27(%rip)
fxch   %st(1)
fucomip %st(1),%st
fstp   %st(0)
jne    13f8 <main+0x2d8>
jp     13f8 <main+0x2d8>
jmp    13fd <main+0x2dd>
call   1030 <abort@plt>
xor    %eax,%eax
test   $0x1,%al
jne    140c <main+0x2ec>
jmp    1413 <main+0x2f3>
mov    $0x0,%al
call   1040 <link_error@plt>
mov    -0x4(%rbp),%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x48,%rsp
movl   $0x3f800000,0xc(%rsp)
3f
movl   $0x40000000,0x8(%rsp)
40
movabs $0x3ff0000000000000,%rax
mov    %rax,0x18(%rsp)
movabs $0x4000000000000000,%rax
mov    %rax,0x10(%rsp)
fld1
fld    %st(0)
fstpt  0x30(%rsp)
flds   0xeb0(%rip)
fld    %st(0)
fstpt  0x20(%rsp)
movss  0xc(%rsp),%xmm1
movss  0x8(%rsp),%xmm0
ucomiss 0xe9b(%rip),%xmm1
jne    1267 <main+0x157>
jp     1267 <main+0x157>
ucomiss 0xe84(%rip),%xmm0
jne    1267 <main+0x157>
jp     1267 <main+0x157>
movss  0xc(%rsp),%xmm0
movss  0x8(%rsp),%xmm1
ucomiss 0xe69(%rip),%xmm0
jne    1267 <main+0x157>
jp     1267 <main+0x157>
movss  0xc(%rsp),%xmm0
movss  0x8(%rsp),%xmm0
ucomiss 0xe46(%rip),%xmm0
jne    1267 <main+0x157>
jp     1267 <main+0x157>
movsd  0x18(%rsp),%xmm1
movsd  0x10(%rsp),%xmm0
ucomisd 0xe2e(%rip),%xmm1
jne    1267 <main+0x157>
jp     1267 <main+0x157>
ucomisd 0xe22(%rip),%xmm0
jne    1267 <main+0x157>
jp     1267 <main+0x157>
movsd  0x18(%rsp),%xmm0
movsd  0x10(%rsp),%xmm1
ucomisd 0xe02(%rip),%xmm0
jne    1267 <main+0x157>
jp     1267 <main+0x157>
movsd  0x18(%rsp),%xmm0
movsd  0x10(%rsp),%xmm0
ucomisd 0xdf2(%rip),%xmm0
jne    1267 <main+0x157>
jp     1267 <main+0x157>
fldt   0x30(%rsp)
fldt   0x20(%rsp)
fxch   %st(1)
fucomip %st(3),%st
jne    1270 <main+0x160>
jp     1270 <main+0x160>
fucomip %st(1),%st
fldz
jne    1270 <main+0x160>
jp     1270 <main+0x160>
fstp   %st(0)
fldt   0x30(%rsp)
fldt   0x20(%rsp)
fstp   %st(0)
fucomip %st(2),%st
fstp   %st(1)
jne    1274 <main+0x164>
jp     1274 <main+0x164>
fldt   0x30(%rsp)
fstp   %st(0)
fldt   0x20(%rsp)
fucomip %st(1),%st
fstp   %st(0)
jne    1276 <main+0x166>
jp     1276 <main+0x166>
xor    %eax,%eax
add    $0x48,%rsp
ret
fstp   %st(0)
fstp   %st(0)
call   1030 <abort@plt>
fstp   %st(1)
fstp   %st(1)
fstp   %st(0)
call   1030 <abort@plt>

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca { float, float }
%3 = alloca { double, double }
%4 = alloca { x86_fp80, x86_fp80 }
store i32 0, i32* %1
%5 = getelementptr inbounds { float, float }, { float, float }* %2, i32 0, i32 0
%6 = getelementptr inbounds { float, float }, { float, float }* %2, i32 0, i32 1
store volatile float 1.000000e+00, float* %5
store volatile float 2.000000e+00, float* %6
%7 = getelementptr inbounds { double, double }, { double, double }* %3, i32 0, i32 0
%8 = getelementptr inbounds { double, double }, { double, double }* %3, i32 0, i32 1
store volatile double 1.000000e+00, double* %7
store volatile double 2.000000e+00, double* %8
%9 = getelementptr inbounds { x86_fp80, x86_fp80 }, { x86_fp80, x86_fp80 }* %4, i32 0, i32 0
%10 = getelementptr inbounds { x86_fp80, x86_fp80 }, { x86_fp80, x86_fp80 }* %4, i32 0, i32 1
store volatile x86_fp80 0xK3FFF8000000000000000, x86_fp80* %9
store volatile x86_fp80 0xK40008000000000000000, x86_fp80* %10
%11 = getelementptr inbounds { float, float }, { float, float }* %2, i32 0, i32 0
%12 = load volatile float, float* %11
%13 = getelementptr inbounds { float, float }, { float, float }* %2, i32 0, i32 1
%14 = load volatile float, float* %13
%15 = fneg float %14
%16 = fcmp une float %12, 1.000000e+00
%17 = fcmp une float %15, -2.000000e+00
%18 = or i1 %16, %17
br i1 %18, label %19, label %20
19: ; preds = %0
unreachable
20: ; preds = %0
br i1 false, label %21, label %23
21: ; preds = %20
%22 = call i32 (...) @link_error()
br label %23
23: ; preds = %21, %20
%24 = getelementptr inbounds { float, float }, { float, float }* %2, i32 0, i32 0
%25 = load volatile float, float* %24
%26 = getelementptr inbounds { float, float }, { float, float }* %2, i32 0, i32 1
%27 = load volatile float, float* %26
%28 = fcmp une float %25, 1.000000e+00
br i1 %28, label %29, label %30
29: ; preds = %23
unreachable
30: ; preds = %23
br i1 false, label %31, label %33
31: ; preds = %30
%32 = call i32 (...) @link_error()
br label %33
33: ; preds = %31, %30
%34 = getelementptr inbounds { float, float }, { float, float }* %2, i32 0, i32 0
%35 = load volatile float, float* %34
%36 = getelementptr inbounds { float, float }, { float, float }* %2, i32 0, i32 1
%37 = load volatile float, float* %36
%38 = fcmp une float %37, 2.000000e+00
br i1 %38, label %39, label %40
39: ; preds = %33
unreachable
40: ; preds = %33
br i1 false, label %41, label %43
41: ; preds = %40
%42 = call i32 (...) @link_error()
br label %43
43: ; preds = %41, %40
%44 = getelementptr inbounds { double, double }, { double, double }* %3, i32 0, i32 0
%45 = load volatile double, double* %44
%46 = getelementptr inbounds { double, double }, { double, double }* %3, i32 0, i32 1
%47 = load volatile double, double* %46
%48 = fneg double %47
%49 = fcmp une double %45, 1.000000e+00
%50 = fcmp une double %48, -2.000000e+00
%51 = or i1 %49, %50
br i1 %51, label %52, label %53
52: ; preds = %43
unreachable
53: ; preds = %43
br i1 false, label %54, label %56
54: ; preds = %53
%55 = call i32 (...) @link_error()
br label %56
56: ; preds = %54, %53
%57 = getelementptr inbounds { double, double }, { double, double }* %3, i32 0, i32 0
%58 = load volatile double, double* %57
%59 = getelementptr inbounds { double, double }, { double, double }* %3, i32 0, i32 1
%60 = load volatile double, double* %59
%61 = fcmp une double %58, 1.000000e+00
br i1 %61, label %62, label %63
62: ; preds = %56
unreachable
63: ; preds = %56
br i1 false, label %64, label %66
64: ; preds = %63
%65 = call i32 (...) @link_error()
br label %66
66: ; preds = %64, %63
%67 = getelementptr inbounds { double, double }, { double, double }* %3, i32 0, i32 0
%68 = load volatile double, double* %67
%69 = getelementptr inbounds { double, double }, { double, double }* %3, i32 0, i32 1
%70 = load volatile double, double* %69
%71 = fcmp une double %70, 2.000000e+00
br i1 %71, label %72, label %73
72: ; preds = %66
unreachable
73: ; preds = %66
br i1 false, label %74, label %76
74: ; preds = %73
%75 = call i32 (...) @link_error()
br label %76
76: ; preds = %74, %73
%77 = getelementptr inbounds { x86_fp80, x86_fp80 }, { x86_fp80, x86_fp80 }* %4, i32 0, i32 0
%78 = load volatile x86_fp80, x86_fp80* %77
%79 = getelementptr inbounds { x86_fp80, x86_fp80 }, { x86_fp80, x86_fp80 }* %4, i32 0, i32 1
%80 = load volatile x86_fp80, x86_fp80* %79
%81 = fneg x86_fp80 %80
%82 = fcmp une x86_fp80 %78, 0xK3FFF8000000000000000
%83 = fcmp une x86_fp80 %81, 0xKC0008000000000000000
%84 = or i1 %82, %83
br i1 %84, label %85, label %86
85: ; preds = %76
unreachable
86: ; preds = %76
br i1 false, label %87, label %89
87: ; preds = %86
%88 = call i32 (...) @link_error()
br label %89
89: ; preds = %87, %86
%90 = getelementptr inbounds { x86_fp80, x86_fp80 }, { x86_fp80, x86_fp80 }* %4, i32 0, i32 0
%91 = load volatile x86_fp80, x86_fp80* %90
%92 = getelementptr inbounds { x86_fp80, x86_fp80 }, { x86_fp80, x86_fp80 }* %4, i32 0, i32 1
%93 = load volatile x86_fp80, x86_fp80* %92
%94 = fcmp une x86_fp80 %91, 0xK3FFF8000000000000000
br i1 %94, label %95, label %96
95: ; preds = %89
unreachable
96: ; preds = %89
br i1 false, label %97, label %99
97: ; preds = %96
%98 = call i32 (...) @link_error()
br label %99
99: ; preds = %97, %96
%100 = getelementptr inbounds { x86_fp80, x86_fp80 }, { x86_fp80, x86_fp80 }* %4, i32 0, i32 0
%101 = load volatile x86_fp80, x86_fp80* %100
%102 = getelementptr inbounds { x86_fp80, x86_fp80 }, { x86_fp80, x86_fp80 }* %4, i32 0, i32 1
%103 = load volatile x86_fp80, x86_fp80* %102
%104 = fcmp une x86_fp80 %103, 0xK40008000000000000000
br i1 %104, label %105, label %106
105: ; preds = %99
unreachable
106: ; preds = %99
br i1 false, label %107, label %109
107: ; preds = %106
%108 = call i32 (...) @link_error()
br label %109
109: ; preds = %107, %106
%110 = load i32, i32* %1
ret i32 %110
}

LLVM IR (-O2):
define i32 @main() {
%1 = alloca float
%2 = alloca float
%3 = alloca double
%4 = alloca double
%5 = alloca x86_fp80
%6 = alloca x86_fp80
%7 = bitcast float* %1 to i8*
%8 = bitcast float* %2 to i8*
store volatile float 1.000000e+00, float* %1
store volatile float 2.000000e+00, float* %2
%9 = bitcast double* %3 to i8*
%10 = bitcast double* %4 to i8*
store volatile double 1.000000e+00, double* %3
store volatile double 2.000000e+00, double* %4
%11 = bitcast x86_fp80* %5 to i8*
%12 = bitcast x86_fp80* %6 to i8*
store volatile x86_fp80 0xK3FFF8000000000000000, x86_fp80* %5
store volatile x86_fp80 0xK40008000000000000000, x86_fp80* %6
%13 = load volatile float, float* %1
%14 = load volatile float, float* %2
%15 = fcmp une float %13, 1.000000e+00
%16 = fcmp une float %14, 2.000000e+00
%17 = or i1 %15, %16
br i1 %17, label %18, label %19
18: ; preds = %0
tail call void @abort()
unreachable
19: ; preds = %0
%20 = load volatile float, float* %1
%21 = load volatile float, float* %2
%22 = fcmp une float %20, 1.000000e+00
br i1 %22, label %23, label %24
23: ; preds = %19
tail call void @abort()
unreachable
24: ; preds = %19
%25 = load volatile float, float* %1
%26 = load volatile float, float* %2
%27 = fcmp une float %26, 2.000000e+00
br i1 %27, label %28, label %29
28: ; preds = %24
tail call void @abort()
unreachable
29: ; preds = %24
%30 = load volatile double, double* %3
%31 = load volatile double, double* %4
%32 = fcmp une double %30, 1.000000e+00
%33 = fcmp une double %31, 2.000000e+00
%34 = or i1 %32, %33
br i1 %34, label %35, label %36
35: ; preds = %29
tail call void @abort()
unreachable
36: ; preds = %29
%37 = load volatile double, double* %3
%38 = load volatile double, double* %4
%39 = fcmp une double %37, 1.000000e+00
br i1 %39, label %40, label %41
40: ; preds = %36
tail call void @abort()
unreachable
41: ; preds = %36
%42 = load volatile double, double* %3
%43 = load volatile double, double* %4
%44 = fcmp une double %43, 2.000000e+00
br i1 %44, label %45, label %46
45: ; preds = %41
tail call void @abort()
unreachable
46: ; preds = %41
%47 = load volatile x86_fp80, x86_fp80* %5
%48 = load volatile x86_fp80, x86_fp80* %6
%49 = fcmp une x86_fp80 %47, 0xK3FFF8000000000000000
%50 = fcmp une x86_fp80 %48, 0xK40008000000000000000
%51 = or i1 %49, %50
br i1 %51, label %52, label %53
52: ; preds = %46
tail call void @abort()
unreachable
53: ; preds = %46
%54 = load volatile x86_fp80, x86_fp80* %5
%55 = load volatile x86_fp80, x86_fp80* %6
%56 = fcmp une x86_fp80 %54, 0xK3FFF8000000000000000
br i1 %56, label %57, label %58
57: ; preds = %53
tail call void @abort()
unreachable
58: ; preds = %53
%59 = load volatile x86_fp80, x86_fp80* %5
%60 = load volatile x86_fp80, x86_fp80* %6
%61 = fcmp une x86_fp80 %60, 0xK40008000000000000000
br i1 %61, label %62, label %63
62: ; preds = %58
tail call void @abort()
unreachable
63: ; preds = %58
ret i32 0
}