void glmGenerateTranslationMatrix5d(double m[25], const double p[4]) {
  m[0] = 1;
  m[5] = 0;
  m[10] = 0;
  m[15] = 0;
  m[20] = p[0];
  m[1] = 0;
  m[6] = 1;
  m[11] = 0;
  m[16] = 0;
  m[21] = p[1];
  m[2] = 0;
  m[7] = 0;
  m[12] = 1;
  m[17] = 0;
  m[22] = p[2];
  m[3] = 0;
  m[8] = 0;
  m[13] = 0;
  m[18] = 1;
  m[23] = p[3];
  m[4] = 0;
  m[9] = 0;
  m[14] = 0;
  m[19] = 0;
  m[24] = 1;
}


x86 assembly (clang, -O0):
<glmGenerateTranslationMatrix5d>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
movsd  0xee8(%rip),%xmm0
movsd  %xmm0,(%rax)
mov    -0x8(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,0x28(%rax)
mov    -0x8(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,0x50(%rax)
mov    -0x8(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,0x78(%rax)
mov    -0x10(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x8(%rbp),%rax
movsd  %xmm0,0xa0(%rax)
mov    -0x8(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,0x8(%rax)
mov    -0x8(%rbp),%rax
movsd  0xe94(%rip),%xmm0
movsd  %xmm0,0x30(%rax)
mov    -0x8(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,0x58(%rax)
mov    -0x8(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,0x80(%rax)
mov    -0x10(%rbp),%rax
movsd  0x8(%rax),%xmm0
mov    -0x8(%rbp),%rax
movsd  %xmm0,0xa8(%rax)
mov    -0x8(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,0x10(%rax)
mov    -0x8(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,0x38(%rax)
mov    -0x8(%rbp),%rax
movsd  0xe3b(%rip),%xmm0
movsd  %xmm0,0x60(%rax)
mov    -0x8(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,0x88(%rax)
mov    -0x10(%rbp),%rax
movsd  0x10(%rax),%xmm0
mov    -0x8(%rbp),%rax
movsd  %xmm0,0xb0(%rax)
mov    -0x8(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,0x18(%rax)
mov    -0x8(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,0x40(%rax)
mov    -0x8(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,0x68(%rax)
mov    -0x8(%rbp),%rax
movsd  0xde2(%rip),%xmm0
movsd  %xmm0,0x90(%rax)
mov    -0x10(%rbp),%rax
movsd  0x18(%rax),%xmm0
mov    -0x8(%rbp),%rax
movsd  %xmm0,0xb8(%rax)
mov    -0x8(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,0x20(%rax)
mov    -0x8(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,0x48(%rax)
mov    -0x8(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,0x70(%rax)
mov    -0x8(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,0x98(%rax)
mov    -0x8(%rbp),%rax
movsd  0xd86(%rip),%xmm0
movsd  %xmm0,0xc0(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<glmGenerateTranslationMatrix5d>:
movabs $0x3ff0000000000000,%rax
mov    %rax,(%rdi)
movq   $0x0,0x28(%rdi)
movq   $0x0,0x50(%rdi)
movq   $0x0,0x78(%rdi)
movsd  (%rsi),%xmm0
movsd  %xmm0,0xa0(%rdi)
movq   $0x0,0x8(%rdi)
mov    %rax,0x30(%rdi)
movq   $0x0,0x58(%rdi)
movq   $0x0,0x80(%rdi)
movsd  0x8(%rsi),%xmm0
movsd  %xmm0,0xa8(%rdi)
movq   $0x0,0x10(%rdi)
movq   $0x0,0x38(%rdi)
mov    %rax,0x60(%rdi)
movq   $0x0,0x88(%rdi)
movsd  0x10(%rsi),%xmm0
movsd  %xmm0,0xb0(%rdi)
movq   $0x0,0x18(%rdi)
movq   $0x0,0x40(%rdi)
movq   $0x0,0x68(%rdi)
mov    %rax,0x90(%rdi)
movsd  0x18(%rsi),%xmm0
movsd  %xmm0,0xb8(%rdi)
movq   $0x0,0x20(%rdi)
movq   $0x0,0x48(%rdi)
movq   $0x0,0x70(%rdi)
movq   $0x0,0x98(%rdi)
mov    %rax,0xc0(%rdi)
ret

LLVM IR (-O0):
define void @glmGenerateTranslationMatrix5d(double* %0, double* %1) {
%3 = alloca double*
%4 = alloca double*
store double* %0, double** %3
store double* %1, double** %4
%5 = load double*, double** %3
%6 = getelementptr inbounds double, double* %5, i64 0
store double 1.000000e+00, double* %6
%7 = load double*, double** %3
%8 = getelementptr inbounds double, double* %7, i64 5
store double 0.000000e+00, double* %8
%9 = load double*, double** %3
%10 = getelementptr inbounds double, double* %9, i64 10
store double 0.000000e+00, double* %10
%11 = load double*, double** %3
%12 = getelementptr inbounds double, double* %11, i64 15
store double 0.000000e+00, double* %12
%13 = load double*, double** %4
%14 = getelementptr inbounds double, double* %13, i64 0
%15 = load double, double* %14
%16 = load double*, double** %3
%17 = getelementptr inbounds double, double* %16, i64 20
store double %15, double* %17
%18 = load double*, double** %3
%19 = getelementptr inbounds double, double* %18, i64 1
store double 0.000000e+00, double* %19
%20 = load double*, double** %3
%21 = getelementptr inbounds double, double* %20, i64 6
store double 1.000000e+00, double* %21
%22 = load double*, double** %3
%23 = getelementptr inbounds double, double* %22, i64 11
store double 0.000000e+00, double* %23
%24 = load double*, double** %3
%25 = getelementptr inbounds double, double* %24, i64 16
store double 0.000000e+00, double* %25
%26 = load double*, double** %4
%27 = getelementptr inbounds double, double* %26, i64 1
%28 = load double, double* %27
%29 = load double*, double** %3
%30 = getelementptr inbounds double, double* %29, i64 21
store double %28, double* %30
%31 = load double*, double** %3
%32 = getelementptr inbounds double, double* %31, i64 2
store double 0.000000e+00, double* %32
%33 = load double*, double** %3
%34 = getelementptr inbounds double, double* %33, i64 7
store double 0.000000e+00, double* %34
%35 = load double*, double** %3
%36 = getelementptr inbounds double, double* %35, i64 12
store double 1.000000e+00, double* %36
%37 = load double*, double** %3
%38 = getelementptr inbounds double, double* %37, i64 17
store double 0.000000e+00, double* %38
%39 = load double*, double** %4
%40 = getelementptr inbounds double, double* %39, i64 2
%41 = load double, double* %40
%42 = load double*, double** %3
%43 = getelementptr inbounds double, double* %42, i64 22
store double %41, double* %43
%44 = load double*, double** %3
%45 = getelementptr inbounds double, double* %44, i64 3
store double 0.000000e+00, double* %45
%46 = load double*, double** %3
%47 = getelementptr inbounds double, double* %46, i64 8
store double 0.000000e+00, double* %47
%48 = load double*, double** %3
%49 = getelementptr inbounds double, double* %48, i64 13
store double 0.000000e+00, double* %49
%50 = load double*, double** %3
%51 = getelementptr inbounds double, double* %50, i64 18
store double 1.000000e+00, double* %51
%52 = load double*, double** %4
%53 = getelementptr inbounds double, double* %52, i64 3
%54 = load double, double* %53
%55 = load double*, double** %3
%56 = getelementptr inbounds double, double* %55, i64 23
store double %54, double* %56
%57 = load double*, double** %3
%58 = getelementptr inbounds double, double* %57, i64 4
store double 0.000000e+00, double* %58
%59 = load double*, double** %3
%60 = getelementptr inbounds double, double* %59, i64 9
store double 0.000000e+00, double* %60
%61 = load double*, double** %3
%62 = getelementptr inbounds double, double* %61, i64 14
store double 0.000000e+00, double* %62
%63 = load double*, double** %3
%64 = getelementptr inbounds double, double* %63, i64 19
store double 0.000000e+00, double* %64
%65 = load double*, double** %3
%66 = getelementptr inbounds double, double* %65, i64 24
store double 1.000000e+00, double* %66
ret void
}

LLVM IR (-O2):
define void @glmGenerateTranslationMatrix5d(double* writeonly %0, double* nocapture %1) {
store double 1.000000e+00, double* %0
%3 = getelementptr inbounds double, double* %0, i64 5
store double 0.000000e+00, double* %3
%4 = getelementptr inbounds double, double* %0, i64 10
store double 0.000000e+00, double* %4
%5 = getelementptr inbounds double, double* %0, i64 15
store double 0.000000e+00, double* %5
%6 = load double, double* %1
%7 = getelementptr inbounds double, double* %0, i64 20
store double %6, double* %7
%8 = getelementptr inbounds double, double* %0, i64 1
store double 0.000000e+00, double* %8
%9 = getelementptr inbounds double, double* %0, i64 6
store double 1.000000e+00, double* %9
%10 = getelementptr inbounds double, double* %0, i64 11
store double 0.000000e+00, double* %10
%11 = getelementptr inbounds double, double* %0, i64 16
store double 0.000000e+00, double* %11
%12 = getelementptr inbounds double, double* %1, i64 1
%13 = load double, double* %12
%14 = getelementptr inbounds double, double* %0, i64 21
store double %13, double* %14
%15 = getelementptr inbounds double, double* %0, i64 2
store double 0.000000e+00, double* %15
%16 = getelementptr inbounds double, double* %0, i64 7
store double 0.000000e+00, double* %16
%17 = getelementptr inbounds double, double* %0, i64 12
store double 1.000000e+00, double* %17
%18 = getelementptr inbounds double, double* %0, i64 17
store double 0.000000e+00, double* %18
%19 = getelementptr inbounds double, double* %1, i64 2
%20 = load double, double* %19
%21 = getelementptr inbounds double, double* %0, i64 22
store double %20, double* %21
%22 = getelementptr inbounds double, double* %0, i64 3
store double 0.000000e+00, double* %22
%23 = getelementptr inbounds double, double* %0, i64 8
store double 0.000000e+00, double* %23
%24 = getelementptr inbounds double, double* %0, i64 13
store double 0.000000e+00, double* %24
%25 = getelementptr inbounds double, double* %0, i64 18
store double 1.000000e+00, double* %25
%26 = getelementptr inbounds double, double* %1, i64 3
%27 = load double, double* %26
%28 = getelementptr inbounds double, double* %0, i64 23
store double %27, double* %28
%29 = getelementptr inbounds double, double* %0, i64 4
store double 0.000000e+00, double* %29
%30 = getelementptr inbounds double, double* %0, i64 9
store double 0.000000e+00, double* %30
%31 = getelementptr inbounds double, double* %0, i64 14
store double 0.000000e+00, double* %31
%32 = getelementptr inbounds double, double* %0, i64 19
store double 0.000000e+00, double* %32
%33 = getelementptr inbounds double, double* %0, i64 24
store double 1.000000e+00, double* %33
ret void
}