#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int /*<<< orphan*/ pd_renorm_add1(double const, double const, double const,
                                  double const, double const, double, double *,
                                  double *, double *, double *, double *);
void pd_add_pd_d(const double *a, double b, double *c) {
  pd_renorm_add1(a[0], a[1], a[2], a[3], a[4], b, &c[0], &c[1], &c[2], &c[3],
                 &c[4]);
}


x86 assembly (clang, -O0):
<pd_add_pd_d>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
movsd  %xmm0,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    -0x8(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x8(%rbp),%rax
movsd  0x8(%rax),%xmm1
mov    -0x8(%rbp),%rax
movsd  0x10(%rax),%xmm2
mov    -0x8(%rbp),%rax
movsd  0x18(%rax),%xmm3
mov    -0x8(%rbp),%rax
movsd  0x20(%rax),%xmm4
movsd  -0x10(%rbp),%xmm5
mov    -0x18(%rbp),%rdi
mov    -0x18(%rbp),%rsi
add    $0x8,%rsi
mov    -0x18(%rbp),%rdx
add    $0x10,%rdx
mov    -0x18(%rbp),%rcx
add    $0x18,%rcx
mov    -0x18(%rbp),%r8
add    $0x20,%r8
call   1030 <pd_renorm_add1@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<pd_add_pd_d>:
mov    %rsi,%rax
movaps %xmm0,%xmm5
movsd  (%rdi),%xmm0
movsd  0x8(%rdi),%xmm1
movsd  0x10(%rdi),%xmm2
movsd  0x18(%rdi),%xmm3
movsd  0x20(%rdi),%xmm4
add    $0x8,%rsi
lea    0x10(%rax),%rdx
lea    0x18(%rax),%rcx
lea    0x20(%rax),%r8
mov    %rax,%rdi
jmp    1030 <pd_renorm_add1@plt>

LLVM IR (-O0):
define void @pd_add_pd_d(double* %0, double %1, double* %2) {
%4 = alloca double*
%5 = alloca double
%6 = alloca double*
store double* %0, double** %4
store double %1, double* %5
store double* %2, double** %6
%7 = load double*, double** %4
%8 = getelementptr inbounds double, double* %7, i64 0
%9 = load double, double* %8
%10 = load double*, double** %4
%11 = getelementptr inbounds double, double* %10, i64 1
%12 = load double, double* %11
%13 = load double*, double** %4
%14 = getelementptr inbounds double, double* %13, i64 2
%15 = load double, double* %14
%16 = load double*, double** %4
%17 = getelementptr inbounds double, double* %16, i64 3
%18 = load double, double* %17
%19 = load double*, double** %4
%20 = getelementptr inbounds double, double* %19, i64 4
%21 = load double, double* %20
%22 = load double, double* %5
%23 = load double*, double** %6
%24 = getelementptr inbounds double, double* %23, i64 0
%25 = load double*, double** %6
%26 = getelementptr inbounds double, double* %25, i64 1
%27 = load double*, double** %6
%28 = getelementptr inbounds double, double* %27, i64 2
%29 = load double*, double** %6
%30 = getelementptr inbounds double, double* %29, i64 3
%31 = load double*, double** %6
%32 = getelementptr inbounds double, double* %31, i64 4
%33 = call i32 @pd_renorm_add1(double %9, double %12, double %15, double %18, double %21, double %22, double* %24, double* %26, double* %28, double* %30, double* %32)
ret void
}

LLVM IR (-O2):
define void @pd_add_pd_d(double* nocapture %0, double %1, double* %2) {
%4 = load double, double* %0
%5 = getelementptr inbounds double, double* %0, i64 1
%6 = load double, double* %5
%7 = getelementptr inbounds double, double* %0, i64 2
%8 = load double, double* %7
%9 = getelementptr inbounds double, double* %0, i64 3
%10 = load double, double* %9
%11 = getelementptr inbounds double, double* %0, i64 4
%12 = load double, double* %11
%13 = getelementptr inbounds double, double* %2, i64 1
%14 = getelementptr inbounds double, double* %2, i64 2
%15 = getelementptr inbounds double, double* %2, i64 3
%16 = getelementptr inbounds double, double* %2, i64 4
%17 = tail call i32 @pd_renorm_add1(double %4, double %6, double %8, double %10, double %12, double %1, double* %2, double* %13, double* %14, double* %15, double* %16)
ret void
}