void to_matr_transtable(double master_table[6][6], double trans[6][6]) {
  int fy;
  for (fy = 0; fy < 6; fy++) {
    trans[fy][0] = master_table[fy][0] + master_table[fy][2];
    trans[fy][1] = 0.0;
    trans[fy][2] = 0.0;
    trans[fy][3] = master_table[fy][3] + master_table[fy][1];
    trans[fy][4] = master_table[fy][4];
    trans[fy][5] = master_table[fy][5];
  }
}


x86 assembly (clang, -O0):
<to_matr_transtable>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
cmpl   $0x6,-0x14(%rbp)
jge    121f <to_matr_transtable+0x11f>
mov    -0x8(%rbp),%rax
movslq -0x14(%rbp),%rcx
imul   $0x30,%rcx,%rcx
add    %rcx,%rax
movsd  (%rax),%xmm0
mov    -0x8(%rbp),%rax
movslq -0x14(%rbp),%rcx
imul   $0x30,%rcx,%rcx
add    %rcx,%rax
addsd  0x10(%rax),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
imul   $0x30,%rcx,%rcx
add    %rcx,%rax
movsd  %xmm0,(%rax)
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
imul   $0x30,%rcx,%rcx
add    %rcx,%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,0x8(%rax)
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
imul   $0x30,%rcx,%rcx
add    %rcx,%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,0x10(%rax)
mov    -0x8(%rbp),%rax
movslq -0x14(%rbp),%rcx
imul   $0x30,%rcx,%rcx
add    %rcx,%rax
movsd  0x18(%rax),%xmm0
mov    -0x8(%rbp),%rax
movslq -0x14(%rbp),%rcx
imul   $0x30,%rcx,%rcx
add    %rcx,%rax
addsd  0x8(%rax),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
imul   $0x30,%rcx,%rcx
add    %rcx,%rax
movsd  %xmm0,0x18(%rax)
mov    -0x8(%rbp),%rax
movslq -0x14(%rbp),%rcx
imul   $0x30,%rcx,%rcx
add    %rcx,%rax
movsd  0x20(%rax),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
imul   $0x30,%rcx,%rcx
add    %rcx,%rax
movsd  %xmm0,0x20(%rax)
mov    -0x8(%rbp),%rax
movslq -0x14(%rbp),%rcx
imul   $0x30,%rcx,%rcx
add    %rcx,%rax
movsd  0x28(%rax),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
imul   $0x30,%rcx,%rcx
add    %rcx,%rax
movsd  %xmm0,0x28(%rax)
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1113 <to_matr_transtable+0x13>
pop    %rbp
ret

x86 assembly (clang, -O2):
<to_matr_transtable>:
mov    $0x28,%eax
xorps  %xmm0,%xmm0
nopl   0x0(%rax,%rax,1)
movsd  -0x28(%rdi,%rax,1),%xmm1
addsd  -0x18(%rdi,%rax,1),%xmm1
movsd  %xmm1,-0x28(%rsi,%rax,1)
movups %xmm0,-0x20(%rsi,%rax,1)
movsd  -0x10(%rdi,%rax,1),%xmm1
addsd  -0x20(%rdi,%rax,1),%xmm1
movsd  %xmm1,-0x10(%rsi,%rax,1)
movsd  -0x8(%rdi,%rax,1),%xmm1
movsd  %xmm1,-0x8(%rsi,%rax,1)
movsd  (%rdi,%rax,1),%xmm1
movsd  %xmm1,(%rsi,%rax,1)
add    $0x30,%rax
cmp    $0x148,%rax
jne    1110 <to_matr_transtable+0x10>
ret

LLVM IR (-O0):
define void @to_matr_transtable([6 x double]* %0, [6 x double]* %1) {
%3 = alloca [6 x double]*
%4 = alloca [6 x double]*
%5 = alloca i32
store [6 x double]* %0, [6 x double]** %3
store [6 x double]* %1, [6 x double]** %4
store i32 0, i32* %5
br label %6
6: ; preds = %78, %2
%7 = load i32, i32* %5
%8 = icmp slt i32 %7, 6
br i1 %8, label %9, label %81
9: ; preds = %6
%10 = load [6 x double]*, [6 x double]** %3
%11 = load i32, i32* %5
%12 = sext i32 %11 to i64
%13 = getelementptr inbounds [6 x double], [6 x double]* %10, i64 %12
%14 = getelementptr inbounds [6 x double], [6 x double]* %13, i64 0, i64 0
%15 = load double, double* %14
%16 = load [6 x double]*, [6 x double]** %3
%17 = load i32, i32* %5
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds [6 x double], [6 x double]* %16, i64 %18
%20 = getelementptr inbounds [6 x double], [6 x double]* %19, i64 0, i64 2
%21 = load double, double* %20
%22 = fadd double %15, %21
%23 = load [6 x double]*, [6 x double]** %4
%24 = load i32, i32* %5
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds [6 x double], [6 x double]* %23, i64 %25
%27 = getelementptr inbounds [6 x double], [6 x double]* %26, i64 0, i64 0
store double %22, double* %27
%28 = load [6 x double]*, [6 x double]** %4
%29 = load i32, i32* %5
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds [6 x double], [6 x double]* %28, i64 %30
%32 = getelementptr inbounds [6 x double], [6 x double]* %31, i64 0, i64 1
store double 0.000000e+00, double* %32
%33 = load [6 x double]*, [6 x double]** %4
%34 = load i32, i32* %5
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds [6 x double], [6 x double]* %33, i64 %35
%37 = getelementptr inbounds [6 x double], [6 x double]* %36, i64 0, i64 2
store double 0.000000e+00, double* %37
%38 = load [6 x double]*, [6 x double]** %3
%39 = load i32, i32* %5
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds [6 x double], [6 x double]* %38, i64 %40
%42 = getelementptr inbounds [6 x double], [6 x double]* %41, i64 0, i64 3
%43 = load double, double* %42
%44 = load [6 x double]*, [6 x double]** %3
%45 = load i32, i32* %5
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds [6 x double], [6 x double]* %44, i64 %46
%48 = getelementptr inbounds [6 x double], [6 x double]* %47, i64 0, i64 1
%49 = load double, double* %48
%50 = fadd double %43, %49
%51 = load [6 x double]*, [6 x double]** %4
%52 = load i32, i32* %5
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds [6 x double], [6 x double]* %51, i64 %53
%55 = getelementptr inbounds [6 x double], [6 x double]* %54, i64 0, i64 3
store double %50, double* %55
%56 = load [6 x double]*, [6 x double]** %3
%57 = load i32, i32* %5
%58 = sext i32 %57 to i64
%59 = getelementptr inbounds [6 x double], [6 x double]* %56, i64 %58
%60 = getelementptr inbounds [6 x double], [6 x double]* %59, i64 0, i64 4
%61 = load double, double* %60
%62 = load [6 x double]*, [6 x double]** %4
%63 = load i32, i32* %5
%64 = sext i32 %63 to i64
%65 = getelementptr inbounds [6 x double], [6 x double]* %62, i64 %64
%66 = getelementptr inbounds [6 x double], [6 x double]* %65, i64 0, i64 4
store double %61, double* %66
%67 = load [6 x double]*, [6 x double]** %3
%68 = load i32, i32* %5
%69 = sext i32 %68 to i64
%70 = getelementptr inbounds [6 x double], [6 x double]* %67, i64 %69
%71 = getelementptr inbounds [6 x double], [6 x double]* %70, i64 0, i64 5
%72 = load double, double* %71
%73 = load [6 x double]*, [6 x double]** %4
%74 = load i32, i32* %5
%75 = sext i32 %74 to i64
%76 = getelementptr inbounds [6 x double], [6 x double]* %73, i64 %75
%77 = getelementptr inbounds [6 x double], [6 x double]* %76, i64 0, i64 5
store double %72, double* %77
br label %78
78: ; preds = %9
%79 = load i32, i32* %5
%80 = add nsw i32 %79, 1
store i32 %80, i32* %5
br label %6
81: ; preds = %6
ret void
}

LLVM IR (-O2):
define void @to_matr_transtable([6 x double]* nocapture %0, [6 x double]* nocapture writeonly %1) {
br label %3
3: ; preds = %2, %3
%4 = phi i64 [ 0, %2 ], [ %25, %3 ]
%5 = getelementptr inbounds [6 x double], [6 x double]* %0, i64 %4, i64 0
%6 = load double, double* %5
%7 = getelementptr inbounds [6 x double], [6 x double]* %0, i64 %4, i64 2
%8 = load double, double* %7
%9 = fadd double %6, %8
%10 = getelementptr inbounds [6 x double], [6 x double]* %1, i64 %4, i64 0
store double %9, double* %10
%11 = getelementptr inbounds [6 x double], [6 x double]* %1, i64 %4, i64 1
%12 = getelementptr inbounds [6 x double], [6 x double]* %0, i64 %4, i64 3
%13 = bitcast double* %11 to i8*
%14 = load double, double* %12
%15 = getelementptr inbounds [6 x double], [6 x double]* %0, i64 %4, i64 1
%16 = load double, double* %15
%17 = fadd double %14, %16
%18 = getelementptr inbounds [6 x double], [6 x double]* %1, i64 %4, i64 3
store double %17, double* %18
%19 = getelementptr inbounds [6 x double], [6 x double]* %0, i64 %4, i64 4
%20 = load double, double* %19
%21 = getelementptr inbounds [6 x double], [6 x double]* %1, i64 %4, i64 4
store double %20, double* %21
%22 = getelementptr inbounds [6 x double], [6 x double]* %0, i64 %4, i64 5
%23 = load double, double* %22
%24 = getelementptr inbounds [6 x double], [6 x double]* %1, i64 %4, i64 5
store double %23, double* %24
%25 = add nuw nsw i64 %4, 1
%26 = icmp eq i64 %25, 6
br i1 %26, label %27, label %3
27: ; preds = %3
ret void
}