vdstos(attr_array) float attr_array[];
{
  int i;
  i = (int)attr_array[0];
  vdstfc(&i);
  i = (int)attr_array[1];
  vdstbc(&i);
  vdstin(attr_array + 2);
  i = (int)attr_array[3];
  vdstls(&i);
  vdstlw(attr_array + 4);
  vdstcs(attr_array + 5);
}


x86 assembly (clang, -O0):
<vdstos>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
cvttss2si (%rax),%eax
mov    %eax,-0x14(%rbp)
lea    -0x14(%rbp),%rdi
mov    $0x0,%al
call   1040 <vdstfc@plt>
mov    -0x10(%rbp),%rax
cvttss2si 0x4(%rax),%eax
mov    %eax,-0x14(%rbp)
lea    -0x14(%rbp),%rdi
mov    $0x0,%al
call   1080 <vdstbc@plt>
mov    -0x10(%rbp),%rdi
add    $0x8,%rdi
mov    $0x0,%al
call   1030 <vdstin@plt>
mov    -0x10(%rbp),%rax
cvttss2si 0xc(%rax),%eax
mov    %eax,-0x14(%rbp)
lea    -0x14(%rbp),%rdi
mov    $0x0,%al
call   1070 <vdstls@plt>
mov    -0x10(%rbp),%rdi
add    $0x10,%rdi
mov    $0x0,%al
call   1060 <vdstlw@plt>
mov    -0x10(%rbp),%rdi
add    $0x14,%rdi
mov    $0x0,%al
call   1050 <vdstcs@plt>
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<vdstos>:
push   %r14
push   %rbx
push   %rax
mov    %rdi,%rbx
cvttss2si (%rdi),%eax
mov    %eax,0x4(%rsp)
lea    0x4(%rsp),%r14
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <vdstfc@plt>
cvttss2si 0x4(%rbx),%eax
mov    %eax,0x4(%rsp)
mov    %r14,%rdi
xor    %eax,%eax
call   1080 <vdstbc@plt>
lea    0x8(%rbx),%rdi
xor    %eax,%eax
call   1030 <vdstin@plt>
cvttss2si 0xc(%rbx),%eax
mov    %eax,0x4(%rsp)
mov    %r14,%rdi
xor    %eax,%eax
call   1070 <vdstls@plt>
lea    0x10(%rbx),%rdi
xor    %eax,%eax
call   1060 <vdstlw@plt>
add    $0x14,%rbx
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <vdstcs@plt>
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
define i32 @vdstos(float* %0) {
%2 = alloca i32
%3 = alloca float*
%4 = alloca i32
store float* %0, float** %3
%5 = load float*, float** %3
%6 = getelementptr inbounds float, float* %5, i64 0
%7 = load float, float* %6
%8 = fptosi float %7 to i32
store i32 %8, i32* %4
%9 = call i32 (i32*, ...) bitcast (i32 (...)* @vdstfc to i32 (i32*, ...)*)(i32* %4)
%10 = load float*, float** %3
%11 = getelementptr inbounds float, float* %10, i64 1
%12 = load float, float* %11
%13 = fptosi float %12 to i32
store i32 %13, i32* %4
%14 = call i32 (i32*, ...) bitcast (i32 (...)* @vdstbc to i32 (i32*, ...)*)(i32* %4)
%15 = load float*, float** %3
%16 = getelementptr inbounds float, float* %15, i64 2
%17 = call i32 (float*, ...) bitcast (i32 (...)* @vdstin to i32 (float*, ...)*)(float* %16)
%18 = load float*, float** %3
%19 = getelementptr inbounds float, float* %18, i64 3
%20 = load float, float* %19
%21 = fptosi float %20 to i32
store i32 %21, i32* %4
%22 = call i32 (i32*, ...) bitcast (i32 (...)* @vdstls to i32 (i32*, ...)*)(i32* %4)
%23 = load float*, float** %3
%24 = getelementptr inbounds float, float* %23, i64 4
%25 = call i32 (float*, ...) bitcast (i32 (...)* @vdstlw to i32 (float*, ...)*)(float* %24)
%26 = load float*, float** %3
%27 = getelementptr inbounds float, float* %26, i64 5
%28 = call i32 (float*, ...) bitcast (i32 (...)* @vdstcs to i32 (float*, ...)*)(float* %27)
%29 = load i32, i32* %2
ret i32 %29
}

LLVM IR (-O2):
define i32 @vdstos(float* %0) {
%2 = alloca i32
%3 = bitcast i32* %2 to i8*
%4 = load float, float* %0
%5 = fptosi float %4 to i32
store i32 %5, i32* %2
%6 = call i32 (i32*, ...) bitcast (i32 (...)* @vdstfc to i32 (i32*, ...)*)(i32* %2)
%7 = getelementptr inbounds float, float* %0, i64 1
%8 = load float, float* %7
%9 = fptosi float %8 to i32
store i32 %9, i32* %2
%10 = call i32 (i32*, ...) bitcast (i32 (...)* @vdstbc to i32 (i32*, ...)*)(i32* %2)
%11 = getelementptr inbounds float, float* %0, i64 2
%12 = call i32 (float*, ...) bitcast (i32 (...)* @vdstin to i32 (float*, ...)*)(float* %11)
%13 = getelementptr inbounds float, float* %0, i64 3
%14 = load float, float* %13
%15 = fptosi float %14 to i32
store i32 %15, i32* %2
%16 = call i32 (i32*, ...) bitcast (i32 (...)* @vdstls to i32 (i32*, ...)*)(i32* %2)
%17 = getelementptr inbounds float, float* %0, i64 4
%18 = call i32 (float*, ...) bitcast (i32 (...)* @vdstlw to i32 (float*, ...)*)(float* %17)
%19 = getelementptr inbounds float, float* %0, i64 5
%20 = call i32 (float*, ...) bitcast (i32 (...)* @vdstcs to i32 (float*, ...)*)(float* %19)
ret i32 undef
}