#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*/ gl11_matrix_load(float *, float *);
void gl11_matrix_mult(float *d, const float *a, const float *b) {
  int i;
  float t[16];
  for (i = 0; i < 4; i++) {
    int j4 = 0;
    int oa = i;
    int ob = j4;
    float v = 0.0f;
    v += a[oa] * b[ob];
    oa += 4;
    ob++;
    v += a[oa] * b[ob];
    oa += 4;
    ob++;
    v += a[oa] * b[ob];
    oa += 4;
    ob++;
    v += a[oa] * b[ob];
    t[i + j4] = v;
    j4 = 4;
    oa = i;
    ob = j4;
    v = 0.0f;
    v += a[oa] * b[ob];
    oa += 4;
    ob++;
    v += a[oa] * b[ob];
    oa += 4;
    ob++;
    v += a[oa] * b[ob];
    oa += 4;
    ob++;
    v += a[oa] * b[ob];
    t[i + j4] = v;
    j4 = 8;
    oa = i;
    ob = j4;
    v = 0.0f;
    v += a[oa] * b[ob];
    oa += 4;
    ob++;
    v += a[oa] * b[ob];
    oa += 4;
    ob++;
    v += a[oa] * b[ob];
    oa += 4;
    ob++;
    v += a[oa] * b[ob];
    t[i + j4] = v;
    j4 = 12;
    oa = i;
    ob = j4;
    v = 0.0f;
    v += a[oa] * b[ob];
    oa += 4;
    ob++;
    v += a[oa] * b[ob];
    oa += 4;
    ob++;
    v += a[oa] * b[ob];
    oa += 4;
    ob++;
    v += a[oa] * b[ob];
    t[i + j4] = v;
  }
  gl11_matrix_load(d, t);
}


x86 assembly (clang, -O0):
<gl11_matrix_mult>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
movl   $0x0,-0x1c(%rbp)
cmpl   $0x4,-0x1c(%rbp)
jge    1593 <gl11_matrix_mult+0x483>
movl   $0x0,-0x64(%rbp)
mov    -0x1c(%rbp),%eax
mov    %eax,-0x68(%rbp)
mov    -0x64(%rbp),%eax
mov    %eax,-0x6c(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x70(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x68(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
mov    -0x18(%rbp),%rax
movslq -0x6c(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm2
movss  -0x70(%rbp),%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x70(%rbp)
mov    -0x68(%rbp),%eax
add    $0x4,%eax
mov    %eax,-0x68(%rbp)
mov    -0x6c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x6c(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x68(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
mov    -0x18(%rbp),%rax
movslq -0x6c(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm2
movss  -0x70(%rbp),%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x70(%rbp)
mov    -0x68(%rbp),%eax
add    $0x4,%eax
mov    %eax,-0x68(%rbp)
mov    -0x6c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x6c(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x68(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
mov    -0x18(%rbp),%rax
movslq -0x6c(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm2
movss  -0x70(%rbp),%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x70(%rbp)
mov    -0x68(%rbp),%eax
add    $0x4,%eax
mov    %eax,-0x68(%rbp)
mov    -0x6c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x6c(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x68(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
mov    -0x18(%rbp),%rax
movslq -0x6c(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm2
movss  -0x70(%rbp),%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x70(%rbp)
movss  -0x70(%rbp),%xmm0
mov    -0x1c(%rbp),%eax
add    -0x64(%rbp),%eax
cltq
movss  %xmm0,-0x60(%rbp,%rax,4)
movl   $0x4,-0x64(%rbp)
mov    -0x1c(%rbp),%eax
mov    %eax,-0x68(%rbp)
mov    -0x64(%rbp),%eax
mov    %eax,-0x6c(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x70(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x68(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
mov    -0x18(%rbp),%rax
movslq -0x6c(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm2
movss  -0x70(%rbp),%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x70(%rbp)
mov    -0x68(%rbp),%eax
add    $0x4,%eax
mov    %eax,-0x68(%rbp)
mov    -0x6c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x6c(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x68(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
mov    -0x18(%rbp),%rax
movslq -0x6c(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm2
movss  -0x70(%rbp),%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x70(%rbp)
mov    -0x68(%rbp),%eax
add    $0x4,%eax
mov    %eax,-0x68(%rbp)
mov    -0x6c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x6c(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x68(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
mov    -0x18(%rbp),%rax
movslq -0x6c(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm2
movss  -0x70(%rbp),%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x70(%rbp)
mov    -0x68(%rbp),%eax
add    $0x4,%eax
mov    %eax,-0x68(%rbp)
mov    -0x6c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x6c(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x68(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
mov    -0x18(%rbp),%rax
movslq -0x6c(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm2
movss  -0x70(%rbp),%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x70(%rbp)
movss  -0x70(%rbp),%xmm0
mov    -0x1c(%rbp),%eax
add    -0x64(%rbp),%eax
cltq
movss  %xmm0,-0x60(%rbp,%rax,4)
movl   $0x8,-0x64(%rbp)
mov    -0x1c(%rbp),%eax
mov    %eax,-0x68(%rbp)
mov    -0x64(%rbp),%eax
mov    %eax,-0x6c(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x70(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x68(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
mov    -0x18(%rbp),%rax
movslq -0x6c(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm2
movss  -0x70(%rbp),%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x70(%rbp)
mov    -0x68(%rbp),%eax
add    $0x4,%eax
mov    %eax,-0x68(%rbp)
mov    -0x6c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x6c(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x68(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
mov    -0x18(%rbp),%rax
movslq -0x6c(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm2
movss  -0x70(%rbp),%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x70(%rbp)
mov    -0x68(%rbp),%eax
add    $0x4,%eax
mov    %eax,-0x68(%rbp)
mov    -0x6c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x6c(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x68(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
mov    -0x18(%rbp),%rax
movslq -0x6c(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm2
movss  -0x70(%rbp),%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x70(%rbp)
mov    -0x68(%rbp),%eax
add    $0x4,%eax
mov    %eax,-0x68(%rbp)
mov    -0x6c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x6c(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x68(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
mov    -0x18(%rbp),%rax
movslq -0x6c(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm2
movss  -0x70(%rbp),%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x70(%rbp)
movss  -0x70(%rbp),%xmm0
mov    -0x1c(%rbp),%eax
add    -0x64(%rbp),%eax
cltq
movss  %xmm0,-0x60(%rbp,%rax,4)
movl   $0xc,-0x64(%rbp)
mov    -0x1c(%rbp),%eax
mov    %eax,-0x68(%rbp)
mov    -0x64(%rbp),%eax
mov    %eax,-0x6c(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x70(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x68(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
mov    -0x18(%rbp),%rax
movslq -0x6c(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm2
movss  -0x70(%rbp),%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x70(%rbp)
mov    -0x68(%rbp),%eax
add    $0x4,%eax
mov    %eax,-0x68(%rbp)
mov    -0x6c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x6c(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x68(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
mov    -0x18(%rbp),%rax
movslq -0x6c(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm2
movss  -0x70(%rbp),%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x70(%rbp)
mov    -0x68(%rbp),%eax
add    $0x4,%eax
mov    %eax,-0x68(%rbp)
mov    -0x6c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x6c(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x68(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
mov    -0x18(%rbp),%rax
movslq -0x6c(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm2
movss  -0x70(%rbp),%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x70(%rbp)
mov    -0x68(%rbp),%eax
add    $0x4,%eax
mov    %eax,-0x68(%rbp)
mov    -0x6c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x6c(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x68(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
mov    -0x18(%rbp),%rax
movslq -0x6c(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm2
movss  -0x70(%rbp),%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x70(%rbp)
movss  -0x70(%rbp),%xmm0
mov    -0x1c(%rbp),%eax
add    -0x64(%rbp),%eax
cltq
movss  %xmm0,-0x60(%rbp,%rax,4)
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    112b <gl11_matrix_mult+0x1b>
mov    -0x8(%rbp),%rdi
lea    -0x60(%rbp),%rsi
call   1030 <gl11_matrix_load@plt>
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<gl11_matrix_mult>:
sub    $0x58,%rsp
movss  0x3c(%rdx),%xmm0
movaps %xmm0,(%rsp)
movss  0x38(%rdx),%xmm11
movss  0x34(%rdx),%xmm12
movss  0x30(%rdx),%xmm14
movss  0x2c(%rdx),%xmm9
movss  0x28(%rdx),%xmm8
movss  0x24(%rdx),%xmm6
movss  0x20(%rdx),%xmm7
movss  0x1c(%rdx),%xmm5
movss  (%rdx),%xmm1
movss  0x4(%rdx),%xmm3
movss  0x8(%rdx),%xmm2
movss  0xc(%rdx),%xmm4
shufps $0x0,%xmm4,%xmm4
shufps $0x0,%xmm2,%xmm2
shufps $0x0,%xmm3,%xmm3
shufps $0x0,%xmm1,%xmm1
movups (%rsi),%xmm13
movups 0x10(%rsi),%xmm10
mulps  %xmm13,%xmm1
xorps  %xmm0,%xmm0
addps  %xmm0,%xmm1
mulps  %xmm10,%xmm3
addps  %xmm1,%xmm3
movups 0x20(%rsi),%xmm15
mulps  %xmm15,%xmm2
addps  %xmm3,%xmm2
movups 0x30(%rsi),%xmm1
mulps  %xmm1,%xmm4
addps  %xmm2,%xmm4
movss  0x18(%rdx),%xmm2
movss  0x14(%rdx),%xmm3
movss  0x10(%rdx),%xmm0
movaps %xmm4,0x10(%rsp)
shufps $0x0,%xmm3,%xmm3
shufps $0x0,%xmm0,%xmm0
mulps  %xmm13,%xmm0
xorps  %xmm4,%xmm4
addps  %xmm4,%xmm0
mulps  %xmm10,%xmm3
addps  %xmm0,%xmm3
shufps $0x0,%xmm2,%xmm2
mulps  %xmm15,%xmm2
addps  %xmm3,%xmm2
shufps $0x0,%xmm5,%xmm5
mulps  %xmm1,%xmm5
addps  %xmm2,%xmm5
movaps %xmm5,0x20(%rsp)
shufps $0x0,%xmm6,%xmm6
shufps $0x0,%xmm7,%xmm7
mulps  %xmm13,%xmm7
addps  %xmm4,%xmm7
xorps  %xmm0,%xmm0
mulps  %xmm10,%xmm6
addps  %xmm7,%xmm6
shufps $0x0,%xmm8,%xmm8
mulps  %xmm15,%xmm8
addps  %xmm6,%xmm8
shufps $0x0,%xmm9,%xmm9
mulps  %xmm1,%xmm9
addps  %xmm8,%xmm9
movaps %xmm9,0x30(%rsp)
shufps $0x0,%xmm14,%xmm14
mulps  %xmm13,%xmm14
addps  %xmm0,%xmm14
shufps $0x0,%xmm12,%xmm12
mulps  %xmm10,%xmm12
addps  %xmm14,%xmm12
shufps $0x0,%xmm11,%xmm11
mulps  %xmm15,%xmm11
addps  %xmm12,%xmm11
movaps (%rsp),%xmm0
shufps $0x0,%xmm0,%xmm0
mulps  %xmm1,%xmm0
addps  %xmm11,%xmm0
movaps %xmm0,0x40(%rsp)
lea    0x10(%rsp),%rsi
call   1030 <gl11_matrix_load@plt>
add    $0x58,%rsp
ret

LLVM IR (-O0):
define void @gl11_matrix_mult(float* %0, float* %1, float* %2) {
%4 = alloca float*
%5 = alloca float*
%6 = alloca float*
%7 = alloca i32
%8 = alloca [16 x float]
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca float
store float* %0, float** %4
store float* %1, float** %5
store float* %2, float** %6
store i32 0, i32* %7
br label %13
13: ; preds = %289, %3
%14 = load i32, i32* %7
%15 = icmp slt i32 %14, 4
br i1 %15, label %16, label %292
16: ; preds = %13
store i32 0, i32* %9
%17 = load i32, i32* %7
store i32 %17, i32* %10
%18 = load i32, i32* %9
store i32 %18, i32* %11
store float 0.000000e+00, float* %12
%19 = load float*, float** %5
%20 = load i32, i32* %10
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds float, float* %19, i64 %21
%23 = load float, float* %22
%24 = load float*, float** %6
%25 = load i32, i32* %11
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds float, float* %24, i64 %26
%28 = load float, float* %27
%29 = load float, float* %12
%30 = call float @llvm.fmuladd.f32(float %23, float %28, float %29)
store float %30, float* %12
%31 = load i32, i32* %10
%32 = add nsw i32 %31, 4
store i32 %32, i32* %10
%33 = load i32, i32* %11
%34 = add nsw i32 %33, 1
store i32 %34, i32* %11
%35 = load float*, float** %5
%36 = load i32, i32* %10
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds float, float* %35, i64 %37
%39 = load float, float* %38
%40 = load float*, float** %6
%41 = load i32, i32* %11
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds float, float* %40, i64 %42
%44 = load float, float* %43
%45 = load float, float* %12
%46 = call float @llvm.fmuladd.f32(float %39, float %44, float %45)
store float %46, float* %12
%47 = load i32, i32* %10
%48 = add nsw i32 %47, 4
store i32 %48, i32* %10
%49 = load i32, i32* %11
%50 = add nsw i32 %49, 1
store i32 %50, i32* %11
%51 = load float*, float** %5
%52 = load i32, i32* %10
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds float, float* %51, i64 %53
%55 = load float, float* %54
%56 = load float*, float** %6
%57 = load i32, i32* %11
%58 = sext i32 %57 to i64
%59 = getelementptr inbounds float, float* %56, i64 %58
%60 = load float, float* %59
%61 = load float, float* %12
%62 = call float @llvm.fmuladd.f32(float %55, float %60, float %61)
store float %62, float* %12
%63 = load i32, i32* %10
%64 = add nsw i32 %63, 4
store i32 %64, i32* %10
%65 = load i32, i32* %11
%66 = add nsw i32 %65, 1
store i32 %66, i32* %11
%67 = load float*, float** %5
%68 = load i32, i32* %10
%69 = sext i32 %68 to i64
%70 = getelementptr inbounds float, float* %67, i64 %69
%71 = load float, float* %70
%72 = load float*, float** %6
%73 = load i32, i32* %11
%74 = sext i32 %73 to i64
%75 = getelementptr inbounds float, float* %72, i64 %74
%76 = load float, float* %75
%77 = load float, float* %12
%78 = call float @llvm.fmuladd.f32(float %71, float %76, float %77)
store float %78, float* %12
%79 = load float, float* %12
%80 = load i32, i32* %7
%81 = load i32, i32* %9
%82 = add nsw i32 %80, %81
%83 = sext i32 %82 to i64
%84 = getelementptr inbounds [16 x float], [16 x float]* %8, i64 0, i64 %83
store float %79, float* %84
store i32 4, i32* %9
%85 = load i32, i32* %7
store i32 %85, i32* %10
%86 = load i32, i32* %9
store i32 %86, i32* %11
store float 0.000000e+00, float* %12
%87 = load float*, float** %5
%88 = load i32, i32* %10
%89 = sext i32 %88 to i64
%90 = getelementptr inbounds float, float* %87, i64 %89
%91 = load float, float* %90
%92 = load float*, float** %6
%93 = load i32, i32* %11
%94 = sext i32 %93 to i64
%95 = getelementptr inbounds float, float* %92, i64 %94
%96 = load float, float* %95
%97 = load float, float* %12
%98 = call float @llvm.fmuladd.f32(float %91, float %96, float %97)
store float %98, float* %12
%99 = load i32, i32* %10
%100 = add nsw i32 %99, 4
store i32 %100, i32* %10
%101 = load i32, i32* %11
%102 = add nsw i32 %101, 1
store i32 %102, i32* %11
%103 = load float*, float** %5
%104 = load i32, i32* %10
%105 = sext i32 %104 to i64
%106 = getelementptr inbounds float, float* %103, i64 %105
%107 = load float, float* %106
%108 = load float*, float** %6
%109 = load i32, i32* %11
%110 = sext i32 %109 to i64
%111 = getelementptr inbounds float, float* %108, i64 %110
%112 = load float, float* %111
%113 = load float, float* %12
%114 = call float @llvm.fmuladd.f32(float %107, float %112, float %113)
store float %114, float* %12
%115 = load i32, i32* %10
%116 = add nsw i32 %115, 4
store i32 %116, i32* %10
%117 = load i32, i32* %11
%118 = add nsw i32 %117, 1
store i32 %118, i32* %11
%119 = load float*, float** %5
%120 = load i32, i32* %10
%121 = sext i32 %120 to i64
%122 = getelementptr inbounds float, float* %119, i64 %121
%123 = load float, float* %122
%124 = load float*, float** %6
%125 = load i32, i32* %11
%126 = sext i32 %125 to i64
%127 = getelementptr inbounds float, float* %124, i64 %126
%128 = load float, float* %127
%129 = load float, float* %12
%130 = call float @llvm.fmuladd.f32(float %123, float %128, float %129)
store float %130, float* %12
%131 = load i32, i32* %10
%132 = add nsw i32 %131, 4
store i32 %132, i32* %10
%133 = load i32, i32* %11
%134 = add nsw i32 %133, 1
store i32 %134, i32* %11
%135 = load float*, float** %5
%136 = load i32, i32* %10
%137 = sext i32 %136 to i64
%138 = getelementptr inbounds float, float* %135, i64 %137
%139 = load float, float* %138
%140 = load float*, float** %6
%141 = load i32, i32* %11
%142 = sext i32 %141 to i64
%143 = getelementptr inbounds float, float* %140, i64 %142
%144 = load float, float* %143
%145 = load float, float* %12
%146 = call float @llvm.fmuladd.f32(float %139, float %144, float %145)
store float %146, float* %12
%147 = load float, float* %12
%148 = load i32, i32* %7
%149 = load i32, i32* %9
%150 = add nsw i32 %148, %149
%151 = sext i32 %150 to i64
%152 = getelementptr inbounds [16 x float], [16 x float]* %8, i64 0, i64 %151
store float %147, float* %152
store i32 8, i32* %9
%153 = load i32, i32* %7
store i32 %153, i32* %10
%154 = load i32, i32* %9
store i32 %154, i32* %11
store float 0.000000e+00, float* %12
%155 = load float*, float** %5
%156 = load i32, i32* %10
%157 = sext i32 %156 to i64
%158 = getelementptr inbounds float, float* %155, i64 %157
%159 = load float, float* %158
%160 = load float*, float** %6
%161 = load i32, i32* %11
%162 = sext i32 %161 to i64
%163 = getelementptr inbounds float, float* %160, i64 %162
%164 = load float, float* %163
%165 = load float, float* %12
%166 = call float @llvm.fmuladd.f32(float %159, float %164, float %165)
store float %166, float* %12
%167 = load i32, i32* %10
%168 = add nsw i32 %167, 4
store i32 %168, i32* %10
%169 = load i32, i32* %11
%170 = add nsw i32 %169, 1
store i32 %170, i32* %11
%171 = load float*, float** %5
%172 = load i32, i32* %10
%173 = sext i32 %172 to i64
%174 = getelementptr inbounds float, float* %171, i64 %173
%175 = load float, float* %174
%176 = load float*, float** %6
%177 = load i32, i32* %11
%178 = sext i32 %177 to i64
%179 = getelementptr inbounds float, float* %176, i64 %178
%180 = load float, float* %179
%181 = load float, float* %12
%182 = call float @llvm.fmuladd.f32(float %175, float %180, float %181)
store float %182, float* %12
%183 = load i32, i32* %10
%184 = add nsw i32 %183, 4
store i32 %184, i32* %10
%185 = load i32, i32* %11
%186 = add nsw i32 %185, 1
store i32 %186, i32* %11
%187 = load float*, float** %5
%188 = load i32, i32* %10
%189 = sext i32 %188 to i64
%190 = getelementptr inbounds float, float* %187, i64 %189
%191 = load float, float* %190
%192 = load float*, float** %6
%193 = load i32, i32* %11
%194 = sext i32 %193 to i64
%195 = getelementptr inbounds float, float* %192, i64 %194
%196 = load float, float* %195
%197 = load float, float* %12
%198 = call float @llvm.fmuladd.f32(float %191, float %196, float %197)
store float %198, float* %12
%199 = load i32, i32* %10
%200 = add nsw i32 %199, 4
store i32 %200, i32* %10
%201 = load i32, i32* %11
%202 = add nsw i32 %201, 1
store i32 %202, i32* %11
%203 = load float*, float** %5
%204 = load i32, i32* %10
%205 = sext i32 %204 to i64
%206 = getelementptr inbounds float, float* %203, i64 %205
%207 = load float, float* %206
%208 = load float*, float** %6
%209 = load i32, i32* %11
%210 = sext i32 %209 to i64
%211 = getelementptr inbounds float, float* %208, i64 %210
%212 = load float, float* %211
%213 = load float, float* %12
%214 = call float @llvm.fmuladd.f32(float %207, float %212, float %213)
store float %214, float* %12
%215 = load float, float* %12
%216 = load i32, i32* %7
%217 = load i32, i32* %9
%218 = add nsw i32 %216, %217
%219 = sext i32 %218 to i64
%220 = getelementptr inbounds [16 x float], [16 x float]* %8, i64 0, i64 %219
store float %215, float* %220
store i32 12, i32* %9
%221 = load i32, i32* %7
store i32 %221, i32* %10
%222 = load i32, i32* %9
store i32 %222, i32* %11
store float 0.000000e+00, float* %12
%223 = load float*, float** %5
%224 = load i32, i32* %10
%225 = sext i32 %224 to i64
%226 = getelementptr inbounds float, float* %223, i64 %225
%227 = load float, float* %226
%228 = load float*, float** %6
%229 = load i32, i32* %11
%230 = sext i32 %229 to i64
%231 = getelementptr inbounds float, float* %228, i64 %230
%232 = load float, float* %231
%233 = load float, float* %12
%234 = call float @llvm.fmuladd.f32(float %227, float %232, float %233)
store float %234, float* %12
%235 = load i32, i32* %10
%236 = add nsw i32 %235, 4
store i32 %236, i32* %10
%237 = load i32, i32* %11
%238 = add nsw i32 %237, 1
store i32 %238, i32* %11
%239 = load float*, float** %5
%240 = load i32, i32* %10
%241 = sext i32 %240 to i64
%242 = getelementptr inbounds float, float* %239, i64 %241
%243 = load float, float* %242
%244 = load float*, float** %6
%245 = load i32, i32* %11
%246 = sext i32 %245 to i64
%247 = getelementptr inbounds float, float* %244, i64 %246
%248 = load float, float* %247
%249 = load float, float* %12
%250 = call float @llvm.fmuladd.f32(float %243, float %248, float %249)
store float %250, float* %12
%251 = load i32, i32* %10
%252 = add nsw i32 %251, 4
store i32 %252, i32* %10
%253 = load i32, i32* %11
%254 = add nsw i32 %253, 1
store i32 %254, i32* %11
%255 = load float*, float** %5
%256 = load i32, i32* %10
%257 = sext i32 %256 to i64
%258 = getelementptr inbounds float, float* %255, i64 %257
%259 = load float, float* %258
%260 = load float*, float** %6
%261 = load i32, i32* %11
%262 = sext i32 %261 to i64
%263 = getelementptr inbounds float, float* %260, i64 %262
%264 = load float, float* %263
%265 = load float, float* %12
%266 = call float @llvm.fmuladd.f32(float %259, float %264, float %265)
store float %266, float* %12
%267 = load i32, i32* %10
%268 = add nsw i32 %267, 4
store i32 %268, i32* %10
%269 = load i32, i32* %11
%270 = add nsw i32 %269, 1
store i32 %270, i32* %11
%271 = load float*, float** %5
%272 = load i32, i32* %10
%273 = sext i32 %272 to i64
%274 = getelementptr inbounds float, float* %271, i64 %273
%275 = load float, float* %274
%276 = load float*, float** %6
%277 = load i32, i32* %11
%278 = sext i32 %277 to i64
%279 = getelementptr inbounds float, float* %276, i64 %278
%280 = load float, float* %279
%281 = load float, float* %12
%282 = call float @llvm.fmuladd.f32(float %275, float %280, float %281)
store float %282, float* %12
%283 = load float, float* %12
%284 = load i32, i32* %7
%285 = load i32, i32* %9
%286 = add nsw i32 %284, %285
%287 = sext i32 %286 to i64
%288 = getelementptr inbounds [16 x float], [16 x float]* %8, i64 0, i64 %287
store float %283, float* %288
br label %289
289: ; preds = %16
%290 = load i32, i32* %7
%291 = add nsw i32 %290, 1
store i32 %291, i32* %7
br label %13
292: ; preds = %13
%293 = load float*, float** %4
%294 = getelementptr inbounds [16 x float], [16 x float]* %8, i64 0, i64 0
%295 = call i32 @gl11_matrix_load(float* %293, float* %294)
ret void
}

LLVM IR (-O2):
define void @gl11_matrix_mult(float* %0, float* nocapture %1, float* nocapture %2) {
%4 = alloca [16 x float]
%5 = bitcast [16 x float]* %4 to i8*
%6 = getelementptr inbounds float, float* %2, i64 15
%7 = load float, float* %6
%8 = insertelement <4 x float> poison, float %7, i64 0
%9 = shufflevector <4 x float> %8, <4 x float> poison, <4 x i32> zeroinitializer
%10 = getelementptr inbounds float, float* %2, i64 14
%11 = load float, float* %10
%12 = insertelement <4 x float> poison, float %11, i64 0
%13 = shufflevector <4 x float> %12, <4 x float> poison, <4 x i32> zeroinitializer
%14 = getelementptr inbounds float, float* %2, i64 13
%15 = load float, float* %14
%16 = insertelement <4 x float> poison, float %15, i64 0
%17 = shufflevector <4 x float> %16, <4 x float> poison, <4 x i32> zeroinitializer
%18 = getelementptr inbounds float, float* %2, i64 12
%19 = load float, float* %18
%20 = insertelement <4 x float> poison, float %19, i64 0
%21 = shufflevector <4 x float> %20, <4 x float> poison, <4 x i32> zeroinitializer
%22 = getelementptr inbounds float, float* %2, i64 11
%23 = load float, float* %22
%24 = insertelement <4 x float> poison, float %23, i64 0
%25 = shufflevector <4 x float> %24, <4 x float> poison, <4 x i32> zeroinitializer
%26 = getelementptr inbounds float, float* %2, i64 10
%27 = load float, float* %26
%28 = insertelement <4 x float> poison, float %27, i64 0
%29 = shufflevector <4 x float> %28, <4 x float> poison, <4 x i32> zeroinitializer
%30 = getelementptr inbounds float, float* %2, i64 9
%31 = load float, float* %30
%32 = insertelement <4 x float> poison, float %31, i64 0
%33 = shufflevector <4 x float> %32, <4 x float> poison, <4 x i32> zeroinitializer
%34 = getelementptr inbounds float, float* %2, i64 8
%35 = load float, float* %34
%36 = insertelement <4 x float> poison, float %35, i64 0
%37 = shufflevector <4 x float> %36, <4 x float> poison, <4 x i32> zeroinitializer
%38 = getelementptr inbounds float, float* %2, i64 7
%39 = load float, float* %38
%40 = insertelement <4 x float> poison, float %39, i64 0
%41 = shufflevector <4 x float> %40, <4 x float> poison, <4 x i32> zeroinitializer
%42 = getelementptr inbounds float, float* %2, i64 6
%43 = load float, float* %42
%44 = insertelement <4 x float> poison, float %43, i64 0
%45 = shufflevector <4 x float> %44, <4 x float> poison, <4 x i32> zeroinitializer
%46 = getelementptr inbounds float, float* %2, i64 5
%47 = load float, float* %46
%48 = insertelement <4 x float> poison, float %47, i64 0
%49 = shufflevector <4 x float> %48, <4 x float> poison, <4 x i32> zeroinitializer
%50 = getelementptr inbounds float, float* %2, i64 4
%51 = load float, float* %50
%52 = insertelement <4 x float> poison, float %51, i64 0
%53 = shufflevector <4 x float> %52, <4 x float> poison, <4 x i32> zeroinitializer
%54 = getelementptr inbounds float, float* %2, i64 3
%55 = load float, float* %54
%56 = insertelement <4 x float> poison, float %55, i64 0
%57 = shufflevector <4 x float> %56, <4 x float> poison, <4 x i32> zeroinitializer
%58 = getelementptr inbounds float, float* %2, i64 2
%59 = load float, float* %58
%60 = insertelement <4 x float> poison, float %59, i64 0
%61 = shufflevector <4 x float> %60, <4 x float> poison, <4 x i32> zeroinitializer
%62 = getelementptr inbounds float, float* %2, i64 1
%63 = load float, float* %62
%64 = insertelement <4 x float> poison, float %63, i64 0
%65 = shufflevector <4 x float> %64, <4 x float> poison, <4 x i32> zeroinitializer
%66 = load float, float* %2
%67 = insertelement <4 x float> poison, float %66, i64 0
%68 = shufflevector <4 x float> %67, <4 x float> poison, <4 x i32> zeroinitializer
%69 = bitcast float* %1 to <4 x float>*
%70 = load <4 x float>, <4 x float>* %69
%71 = call <4 x float> @llvm.fmuladd.v4f32(<4 x float> %70, <4 x float> %68, <4 x float> zeroinitializer)
%72 = getelementptr inbounds float, float* %1, i64 4
%73 = bitcast float* %72 to <4 x float>*
%74 = load <4 x float>, <4 x float>* %73
%75 = call <4 x float> @llvm.fmuladd.v4f32(<4 x float> %74, <4 x float> %65, <4 x float> %71)
%76 = getelementptr inbounds float, float* %1, i64 8
%77 = bitcast float* %76 to <4 x float>*
%78 = load <4 x float>, <4 x float>* %77
%79 = call <4 x float> @llvm.fmuladd.v4f32(<4 x float> %78, <4 x float> %61, <4 x float> %75)
%80 = getelementptr inbounds float, float* %1, i64 12
%81 = bitcast float* %80 to <4 x float>*
%82 = load <4 x float>, <4 x float>* %81
%83 = call <4 x float> @llvm.fmuladd.v4f32(<4 x float> %82, <4 x float> %57, <4 x float> %79)
%84 = bitcast [16 x float]* %4 to <4 x float>*
store <4 x float> %83, <4 x float>* %84
%85 = call <4 x float> @llvm.fmuladd.v4f32(<4 x float> %70, <4 x float> %53, <4 x float> zeroinitializer)
%86 = call <4 x float> @llvm.fmuladd.v4f32(<4 x float> %74, <4 x float> %49, <4 x float> %85)
%87 = call <4 x float> @llvm.fmuladd.v4f32(<4 x float> %78, <4 x float> %45, <4 x float> %86)
%88 = call <4 x float> @llvm.fmuladd.v4f32(<4 x float> %82, <4 x float> %41, <4 x float> %87)
%89 = getelementptr inbounds [16 x float], [16 x float]* %4, i64 0, i64 4
%90 = bitcast float* %89 to <4 x float>*
store <4 x float> %88, <4 x float>* %90
%91 = call <4 x float> @llvm.fmuladd.v4f32(<4 x float> %70, <4 x float> %37, <4 x float> zeroinitializer)
%92 = call <4 x float> @llvm.fmuladd.v4f32(<4 x float> %74, <4 x float> %33, <4 x float> %91)
%93 = call <4 x float> @llvm.fmuladd.v4f32(<4 x float> %78, <4 x float> %29, <4 x float> %92)
%94 = call <4 x float> @llvm.fmuladd.v4f32(<4 x float> %82, <4 x float> %25, <4 x float> %93)
%95 = getelementptr inbounds [16 x float], [16 x float]* %4, i64 0, i64 8
%96 = bitcast float* %95 to <4 x float>*
store <4 x float> %94, <4 x float>* %96
%97 = call <4 x float> @llvm.fmuladd.v4f32(<4 x float> %70, <4 x float> %21, <4 x float> zeroinitializer)
%98 = call <4 x float> @llvm.fmuladd.v4f32(<4 x float> %74, <4 x float> %17, <4 x float> %97)
%99 = call <4 x float> @llvm.fmuladd.v4f32(<4 x float> %78, <4 x float> %13, <4 x float> %98)
%100 = call <4 x float> @llvm.fmuladd.v4f32(<4 x float> %82, <4 x float> %9, <4 x float> %99)
%101 = getelementptr inbounds [16 x float], [16 x float]* %4, i64 0, i64 12
%102 = bitcast float* %101 to <4 x float>*
store <4 x float> %100, <4 x float>* %102
%103 = getelementptr inbounds [16 x float], [16 x float]* %4, i64 0, i64 0
%104 = call i32 @gl11_matrix_load(float* %0, float* %103)
ret void
}