printpart(h, r, t, axis, loc) float h, r, axis[], loc[];
int t;
{
  double sqrt();
  printf("%5.2f\tlocX\n %5.2f\tlocY\n %5.2f\tlocZ\n", loc[0], loc[1], loc[2]);
  printf("%5.2f\taxisX\n %5.2f\taxisY\n %5.2f\taxisZ\n", axis[0], axis[1],
         axis[2]);
  printf("%5.2f\t height\n", h);
  printf("%5.2f\t radius\n", r);
  printf("%d\t texture\n%%\n", t);
}


x86 assembly (clang, -O0):
<printpart>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movsd  %xmm1,-0x28(%rbp)
movaps %xmm0,%xmm1
movsd  -0x28(%rbp),%xmm0
cvtsd2ss %xmm1,%xmm1
cvtsd2ss %xmm0,%xmm0
movss  %xmm1,-0x8(%rbp)
movss  %xmm0,-0xc(%rbp)
mov    %edi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
mov    -0x20(%rbp),%rax
movss  (%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    -0x20(%rbp),%rax
movss  0x4(%rax),%xmm1
cvtss2sd %xmm1,%xmm1
mov    -0x20(%rbp),%rax
movss  0x8(%rax),%xmm2
cvtss2sd %xmm2,%xmm2
lea    0xe91(%rip),%rdi
mov    $0x3,%al
call   1030 <printf@plt>
mov    -0x18(%rbp),%rax
movss  (%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    -0x18(%rbp),%rax
movss  0x4(%rax),%xmm1
cvtss2sd %xmm1,%xmm1
mov    -0x18(%rbp),%rax
movss  0x8(%rax),%xmm2
cvtss2sd %xmm2,%xmm2
lea    0xe81(%rip),%rdi
mov    $0x3,%al
call   1030 <printf@plt>
movss  -0x8(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xe91(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movss  -0xc(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xe89(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%esi
lea    0xe87(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x4(%rbp),%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<printpart>:
push   %rbp
push   %rbx
push   %rax
mov    %rsi,%rbx
mov    %edi,%ebp
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,(%rsp)
xorps  %xmm0,%xmm0
cvtsd2ss %xmm1,%xmm0
movss  %xmm0,0x4(%rsp)
movss  (%rdx),%xmm0
movss  0x4(%rdx),%xmm1
cvtss2sd %xmm0,%xmm0
cvtss2sd %xmm1,%xmm1
movss  0x8(%rdx),%xmm2
cvtss2sd %xmm2,%xmm2
lea    0xeb1(%rip),%rdi
mov    $0x3,%al
call   1030 <printf@plt>
movss  (%rbx),%xmm0
movss  0x4(%rbx),%xmm1
cvtss2sd %xmm0,%xmm0
cvtss2sd %xmm1,%xmm1
movss  0x8(%rbx),%xmm2
cvtss2sd %xmm2,%xmm2
lea    0xead(%rip),%rdi
mov    $0x3,%al
call   1030 <printf@plt>
movss  (%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xebd(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movss  0x4(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xeb4(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
lea    0xeb5(%rip),%rdi
mov    %ebp,%esi
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [36 x i8] c"%5.2f\09locX\0A %5.2f\09locY\0A %5.2f\09locZ\0A\00"
@.str.1 = [39 x i8] c"%5.2f\09axisX\0A %5.2f\09axisY\0A %5.2f\09axisZ\0A\00"
@.str.2 = [15 x i8] c"%5.2f\09 height\0A\00"
@.str.3 = [15 x i8] c"%5.2f\09 radius\0A\00"
@.str.4 = [16 x i8] c"%d\09 texture\0A%%\0A\00"
define i32 @printpart(double %0, double %1, i32 %2, float* %3, float* %4) {
%6 = alloca i32
%7 = alloca float
%8 = alloca float
%9 = alloca i32
%10 = alloca float*
%11 = alloca float*
%12 = fptrunc double %0 to float
%13 = fptrunc double %1 to float
store float %12, float* %7
store float %13, float* %8
store i32 %2, i32* %9
store float* %3, float** %10
store float* %4, float** %11
%14 = load float*, float** %11
%15 = getelementptr inbounds float, float* %14, i64 0
%16 = load float, float* %15
%17 = fpext float %16 to double
%18 = load float*, float** %11
%19 = getelementptr inbounds float, float* %18, i64 1
%20 = load float, float* %19
%21 = fpext float %20 to double
%22 = load float*, float** %11
%23 = getelementptr inbounds float, float* %22, i64 2
%24 = load float, float* %23
%25 = fpext float %24 to double
%26 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str, i64 0, i64 0), double %17, double %21, double %25)
%27 = load float*, float** %10
%28 = getelementptr inbounds float, float* %27, i64 0
%29 = load float, float* %28
%30 = fpext float %29 to double
%31 = load float*, float** %10
%32 = getelementptr inbounds float, float* %31, i64 1
%33 = load float, float* %32
%34 = fpext float %33 to double
%35 = load float*, float** %10
%36 = getelementptr inbounds float, float* %35, i64 2
%37 = load float, float* %36
%38 = fpext float %37 to double
%39 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.1, i64 0, i64 0), double %30, double %34, double %38)
%40 = load float, float* %7
%41 = fpext float %40 to double
%42 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0), double %41)
%43 = load float, float* %8
%44 = fpext float %43 to double
%45 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.3, i64 0, i64 0), double %44)
%46 = load i32, i32* %9
%47 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.4, i64 0, i64 0), i32 %46)
%48 = load i32, i32* %6
ret i32 %48
}

LLVM IR (-O2):
@.str = [36 x i8] c"%5.2f\09locX\0A %5.2f\09locY\0A %5.2f\09locZ\0A\00"
@.str.1 = [39 x i8] c"%5.2f\09axisX\0A %5.2f\09axisY\0A %5.2f\09axisZ\0A\00"
@.str.2 = [15 x i8] c"%5.2f\09 height\0A\00"
@.str.3 = [15 x i8] c"%5.2f\09 radius\0A\00"
@.str.4 = [16 x i8] c"%d\09 texture\0A%%\0A\00"
define i32 @printpart(double %0, double %1, i32 %2, float* nocapture %3, float* nocapture %4) {
%6 = fptrunc double %0 to float
%7 = fptrunc double %1 to float
%8 = load float, float* %4
%9 = fpext float %8 to double
%10 = getelementptr inbounds float, float* %4, i64 1
%11 = load float, float* %10
%12 = fpext float %11 to double
%13 = getelementptr inbounds float, float* %4, i64 2
%14 = load float, float* %13
%15 = fpext float %14 to double
%16 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @.str, i64 0, i64 0), double %9, double %12, double %15)
%17 = load float, float* %3
%18 = fpext float %17 to double
%19 = getelementptr inbounds float, float* %3, i64 1
%20 = load float, float* %19
%21 = fpext float %20 to double
%22 = getelementptr inbounds float, float* %3, i64 2
%23 = load float, float* %22
%24 = fpext float %23 to double
%25 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @.str.1, i64 0, i64 0), double %18, double %21, double %24)
%26 = fpext float %6 to double
%27 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0), double %26)
%28 = fpext float %7 to double
%29 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.3, i64 0, i64 0), double %28)
%30 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.4, i64 0, i64 0), i32 %2)
ret i32 undef
}