__complex__ double __cpow(__complex__ double x, __complex__ double c) {
  return __cexp(c * __clog(x));
}


x86 assembly (clang, -O0):
<__cpow>:
push   %rbp
mov    %rsp,%rbp
sub    $0x90,%rsp
movsd  %xmm0,-0x20(%rbp)
movsd  %xmm1,-0x18(%rbp)
movsd  %xmm2,-0x30(%rbp)
movsd  %xmm3,-0x28(%rbp)
movsd  -0x30(%rbp),%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
movsd  -0x28(%rbp),%xmm0
movsd  %xmm0,-0x80(%rbp)
movsd  -0x20(%rbp),%xmm1
movsd  -0x18(%rbp),%xmm0
movsd  %xmm1,-0x40(%rbp)
movsd  %xmm0,-0x38(%rbp)
movsd  -0x40(%rbp),%xmm0
movsd  -0x38(%rbp),%xmm1
mov    $0x2,%al
call   1040 <__clog@plt>
movsd  -0x88(%rbp),%xmm1
ff
movsd  -0x80(%rbp),%xmm2
cvtsi2sd %eax,%xmm4
movsd  %xmm4,-0x78(%rbp)
movaps %xmm1,%xmm0
mulsd  %xmm4,%xmm0
xorps  %xmm5,%xmm5
movaps %xmm2,%xmm3
mulsd  %xmm5,%xmm3
xorps  %xmm5,%xmm5
mulsd  %xmm5,%xmm1
mulsd  %xmm4,%xmm2
subsd  %xmm3,%xmm0
movsd  %xmm0,-0x70(%rbp)
addsd  %xmm2,%xmm1
movsd  %xmm1,-0x68(%rbp)
ucomisd %xmm0,%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  %xmm1,-0x58(%rbp)
jnp    1215 <__cpow+0xf5>
movsd  -0x68(%rbp),%xmm1
movsd  -0x70(%rbp),%xmm0
ucomisd %xmm1,%xmm1
movsd  %xmm0,-0x60(%rbp)
movsd  %xmm1,-0x58(%rbp)
jnp    1215 <__cpow+0xf5>
movsd  -0x78(%rbp),%xmm2
movsd  -0x80(%rbp),%xmm1
movsd  -0x88(%rbp),%xmm0
ff
xorps  %xmm3,%xmm3
call   1260 <__muldc3>
movsd  %xmm0,-0x60(%rbp)
movsd  %xmm1,-0x58(%rbp)
movsd  -0x60(%rbp),%xmm1
movsd  -0x58(%rbp),%xmm0
movsd  %xmm1,-0x50(%rbp)
movsd  %xmm0,-0x48(%rbp)
movsd  -0x50(%rbp),%xmm0
movsd  -0x48(%rbp),%xmm1
mov    $0x2,%al
call   1030 <__cexp@plt>
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0x10(%rbp)
movq   $0x0,-0x8(%rbp)
movsd  -0x10(%rbp),%xmm0
movsd  -0x8(%rbp),%xmm1
add    $0x90,%rsp
pop    %rbp
ret
xchg   %ax,%ax

x86 assembly (clang, -O2):
<__cpow>:
sub    $0x18,%rsp
movsd  %xmm3,0x10(%rsp)
movsd  %xmm2,0x8(%rsp)
mov    $0x2,%al
call   1040 <__clog@plt>
movsd  0x8(%rsp),%xmm5
movsd  0x10(%rsp),%xmm4
xorps  %xmm2,%xmm2
cvtsi2sd %eax,%xmm2
movapd %xmm2,%xmm0
mulsd  %xmm5,%xmm0
xorpd  %xmm3,%xmm3
movapd %xmm4,%xmm1
mulsd  %xmm3,%xmm1
subsd  %xmm1,%xmm0
mulsd  %xmm5,%xmm3
movapd %xmm2,%xmm1
mulsd  %xmm4,%xmm1
addsd  %xmm3,%xmm1
ucomisd %xmm0,%xmm0
jp     118f <__cpow+0x6f>
mov    $0x2,%al
call   1030 <__cexp@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
xorpd  %xmm1,%xmm1
add    $0x18,%rsp
ret
ucomisd %xmm1,%xmm1
jnp    1178 <__cpow+0x58>
xorpd  %xmm3,%xmm3
movapd %xmm5,%xmm0
movapd %xmm4,%xmm1
call   11b0 <__muldc3>
jmp    1178 <__cpow+0x58>
nopl   0x0(%rax,%rax,1)

LLVM IR (-O0):
define { double, double } @__cpow(double %0, double %1, double %2, double %3) {
%5 = alloca { double, double }
%6 = alloca { double, double }
%7 = alloca { double, double }
%8 = alloca { double, double }
%9 = alloca { double, double }
%10 = getelementptr inbounds { double, double }, { double, double }* %6, i32 0, i32 0
store double %0, double* %10
%11 = getelementptr inbounds { double, double }, { double, double }* %6, i32 0, i32 1
store double %1, double* %11
%12 = getelementptr inbounds { double, double }, { double, double }* %7, i32 0, i32 0
store double %2, double* %12
%13 = getelementptr inbounds { double, double }, { double, double }* %7, i32 0, i32 1
store double %3, double* %13
%14 = getelementptr inbounds { double, double }, { double, double }* %7, i32 0, i32 0
%15 = load double, double* %14
%16 = getelementptr inbounds { double, double }, { double, double }* %7, i32 0, i32 1
%17 = load double, double* %16
%18 = getelementptr inbounds { double, double }, { double, double }* %6, i32 0, i32 0
%19 = load double, double* %18
%20 = getelementptr inbounds { double, double }, { double, double }* %6, i32 0, i32 1
%21 = load double, double* %20
%22 = getelementptr inbounds { double, double }, { double, double }* %8, i32 0, i32 0
%23 = getelementptr inbounds { double, double }, { double, double }* %8, i32 0, i32 1
store double %19, double* %22
store double %21, double* %23
%24 = getelementptr inbounds { double, double }, { double, double }* %8, i32 0, i32 0
%25 = load double, double* %24
%26 = getelementptr inbounds { double, double }, { double, double }* %8, i32 0, i32 1
%27 = load double, double* %26
%28 = call i32 (double, double, ...) bitcast (i32 (...)* @__clog to i32 (double, double, ...)*)(double %25, double %27)
%29 = sitofp i32 %28 to double
%30 = fmul double %15, %29
%31 = fmul double %17, 0.000000e+00
%32 = fmul double %15, 0.000000e+00
%33 = fmul double %17, %29
%34 = fsub double %30, %31
%35 = fadd double %32, %33
%36 = fcmp uno double %34, %34
br i1 %36, label %37, label %43
37: ; preds = %4
%38 = fcmp uno double %35, %35
br i1 %38, label %39, label %43
39: ; preds = %37
%40 = call { double, double } @__muldc3(double %15, double %17, double %29, double 0.000000e+00)
%41 = extractvalue { double, double } %40, 0
%42 = extractvalue { double, double } %40, 1
br label %43
43: ; preds = %39, %37, %4
%44 = phi double [ %34, %4 ], [ %34, %37 ], [ %41, %39 ]
%45 = phi double [ %35, %4 ], [ %35, %37 ], [ %42, %39 ]
%46 = getelementptr inbounds { double, double }, { double, double }* %9, i32 0, i32 0
%47 = getelementptr inbounds { double, double }, { double, double }* %9, i32 0, i32 1
store double %44, double* %46
store double %45, double* %47
%48 = getelementptr inbounds { double, double }, { double, double }* %9, i32 0, i32 0
%49 = load double, double* %48
%50 = getelementptr inbounds { double, double }, { double, double }* %9, i32 0, i32 1
%51 = load double, double* %50
%52 = call i32 (double, double, ...) bitcast (i32 (...)* @__cexp to i32 (double, double, ...)*)(double %49, double %51)
%53 = sitofp i32 %52 to double
%54 = getelementptr inbounds { double, double }, { double, double }* %5, i32 0, i32 0
%55 = getelementptr inbounds { double, double }, { double, double }* %5, i32 0, i32 1
store double %53, double* %54
store double 0.000000e+00, double* %55
%56 = load { double, double }, { double, double }* %5
ret { double, double } %56
}

LLVM IR (-O2):
define { double, double } @__cpow(double %0, double %1, double %2, double %3) {
%5 = tail call i32 (double, double, ...) bitcast (i32 (...)* @__clog to i32 (double, double, ...)*)(double %0, double %1)
%6 = sitofp i32 %5 to double
%7 = fmul double %6, %2
%8 = fmul double %3, 0.000000e+00
%9 = fmul double %2, 0.000000e+00
%10 = fmul double %6, %3
%11 = fsub double %7, %8
%12 = fadd double %9, %10
%13 = fcmp uno double %11, 0.000000e+00
br i1 %13, label %14, label %20
14: ; preds = %4
%15 = fcmp uno double %12, 0.000000e+00
br i1 %15, label %16, label %20
16: ; preds = %14
%17 = tail call { double, double } @__muldc3(double %2, double %3, double %6, double 0.000000e+00)
%18 = extractvalue { double, double } %17, 0
%19 = extractvalue { double, double } %17, 1
br label %20
20: ; preds = %16, %14, %4
%21 = phi double [ %11, %4 ], [ %11, %14 ], [ %18, %16 ]
%22 = phi double [ %12, %4 ], [ %12, %14 ], [ %19, %16 ]
%23 = tail call i32 (double, double, ...) bitcast (i32 (...)* @__cexp to i32 (double, double, ...)*)(double %21, double %22)
%24 = sitofp i32 %23 to double
%25 = insertvalue { double, double } poison, double %24, 0
%26 = insertvalue { double, double } %25, double 0.000000e+00, 1
ret { double, double } %26
}