void point_3d(x, y, z) float x, y, z;
{
  float xp, yp;
  if (threed_proj(x, y, z, &xp, &yp))
    point_abs(xp, yp);
}


x86 assembly (clang, -O0):
<point_3d>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movsd  %xmm2,-0x20(%rbp)
movaps %xmm0,%xmm2
movsd  -0x20(%rbp),%xmm0
cvtsd2ss %xmm2,%xmm2
cvtsd2ss %xmm1,%xmm1
cvtsd2ss %xmm0,%xmm0
movss  %xmm2,-0x4(%rbp)
movss  %xmm1,-0x8(%rbp)
movss  %xmm0,-0xc(%rbp)
movss  -0x4(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movss  -0x8(%rbp),%xmm1
cvtss2sd %xmm1,%xmm1
movss  -0xc(%rbp),%xmm2
cvtss2sd %xmm2,%xmm2
lea    -0x10(%rbp),%rdi
lea    -0x14(%rbp),%rsi
mov    $0x3,%al
call   1040 <threed_proj@plt>
cmp    $0x0,%eax
je     119c <point_3d+0x7c>
movss  -0x10(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movss  -0x14(%rbp),%xmm1
cvtss2sd %xmm1,%xmm1
mov    $0x2,%al
call   1030 <point_abs@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<point_3d>:
push   %rax
cvtsd2ss %xmm0,%xmm0
cvtsd2ss %xmm1,%xmm1
cvtsd2ss %xmm2,%xmm2
cvtss2sd %xmm0,%xmm0
cvtss2sd %xmm1,%xmm1
cvtss2sd %xmm2,%xmm2
lea    0x4(%rsp),%rdi
mov    %rsp,%rsi
mov    $0x3,%al
call   1040 <threed_proj@plt>
test   %eax,%eax
je     1166 <point_3d+0x46>
movss  0x4(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
movss  (%rsp),%xmm1
cvtss2sd %xmm1,%xmm1
mov    $0x2,%al
call   1030 <point_abs@plt>
pop    %rax
ret

LLVM IR (-O0):
define void @point_3d(double %0, double %1, double %2) {
%4 = alloca float
%5 = alloca float
%6 = alloca float
%7 = alloca float
%8 = alloca float
%9 = fptrunc double %0 to float
%10 = fptrunc double %1 to float
%11 = fptrunc double %2 to float
store float %9, float* %4
store float %10, float* %5
store float %11, float* %6
%12 = load float, float* %4
%13 = fpext float %12 to double
%14 = load float, float* %5
%15 = fpext float %14 to double
%16 = load float, float* %6
%17 = fpext float %16 to double
%18 = call i32 (double, double, double, float*, float*, ...) bitcast (i32 (...)* @threed_proj to i32 (double, double, double, float*, float*, ...)*)(double %13, double %15, double %17, float* %7, float* %8)
%19 = icmp ne i32 %18, 0
br i1 %19, label %20, label %26
20: ; preds = %3
%21 = load float, float* %7
%22 = fpext float %21 to double
%23 = load float, float* %8
%24 = fpext float %23 to double
%25 = call i32 (double, double, ...) bitcast (i32 (...)* @point_abs to i32 (double, double, ...)*)(double %22, double %24)
br label %26
26: ; preds = %20, %3
ret void
}

LLVM IR (-O2):
define void @point_3d(double %0, double %1, double %2) {
%4 = alloca float
%5 = alloca float
%6 = fptrunc double %0 to float
%7 = fptrunc double %1 to float
%8 = fptrunc double %2 to float
%9 = bitcast float* %4 to i8*
%10 = bitcast float* %5 to i8*
%11 = fpext float %6 to double
%12 = fpext float %7 to double
%13 = fpext float %8 to double
%14 = call i32 (double, double, double, float*, float*, ...) bitcast (i32 (...)* @threed_proj to i32 (double, double, double, float*, float*, ...)*)(double %11, double %12, double %13, float* %4, float* %5)
%15 = icmp eq i32 %14, 0
br i1 %15, label %22, label %16
16: ; preds = %3
%17 = load float, float* %4
%18 = fpext float %17 to double
%19 = load float, float* %5
%20 = fpext float %19 to double
%21 = call i32 (double, double, ...) bitcast (i32 (...)* @point_abs to i32 (double, double, ...)*)(double %18, double %20)
br label %22
22: ; preds = %16, %3
ret void
}