void to_matp_transtable(double master_table[6][6], double trans[6][6]) {
  int fy, ty;
  for (fy = 0; fy < 6; fy++)
    for (ty = 0; ty < 6; ty++)
      trans[fy][ty] = master_table[fy][ty];
}


x86 assembly (clang, -O0):
<to_matp_transtable>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
cmpl   $0x6,-0x14(%rbp)
jge    117f <to_matp_transtable+0x7f>
movl   $0x0,-0x18(%rbp)
cmpl   $0x6,-0x18(%rbp)
jge    116c <to_matp_transtable+0x6c>
mov    -0x8(%rbp),%rax
movslq -0x14(%rbp),%rcx
imul   $0x30,%rcx,%rcx
add    %rcx,%rax
movslq -0x18(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
imul   $0x30,%rcx,%rcx
add    %rcx,%rax
movslq -0x18(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    1124 <to_matp_transtable+0x24>
jmp    1171 <to_matp_transtable+0x71>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1113 <to_matp_transtable+0x13>
pop    %rbp
ret

x86 assembly (clang, -O2):
<to_matp_transtable>:
mov    $0x28,%eax
cs nopw 0x0(%rax,%rax,1)
nop
movsd  -0x28(%rdi,%rax,1),%xmm0
movsd  %xmm0,-0x28(%rsi,%rax,1)
movsd  -0x20(%rdi,%rax,1),%xmm0
movsd  %xmm0,-0x20(%rsi,%rax,1)
movsd  -0x18(%rdi,%rax,1),%xmm0
movsd  %xmm0,-0x18(%rsi,%rax,1)
movsd  -0x10(%rdi,%rax,1),%xmm0
movsd  %xmm0,-0x10(%rsi,%rax,1)
movsd  -0x8(%rdi,%rax,1),%xmm0
movsd  %xmm0,-0x8(%rsi,%rax,1)
movsd  (%rdi,%rax,1),%xmm0
movsd  %xmm0,(%rsi,%rax,1)
add    $0x30,%rax
cmp    $0x148,%rax
jne    1110 <to_matp_transtable+0x10>
ret

LLVM IR (-O0):
define void @to_matp_transtable([6 x double]* %0, [6 x double]* %1) {
%3 = alloca [6 x double]*
%4 = alloca [6 x double]*
%5 = alloca i32
%6 = 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 %7
7: ; preds = %34, %2
%8 = load i32, i32* %5
%9 = icmp slt i32 %8, 6
br i1 %9, label %10, label %37
10: ; preds = %7
store i32 0, i32* %6
br label %11
11: ; preds = %30, %10
%12 = load i32, i32* %6
%13 = icmp slt i32 %12, 6
br i1 %13, label %14, label %33
14: ; preds = %11
%15 = load [6 x double]*, [6 x double]** %3
%16 = load i32, i32* %5
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds [6 x double], [6 x double]* %15, i64 %17
%19 = load i32, i32* %6
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds [6 x double], [6 x double]* %18, i64 0, i64 %20
%22 = load double, double* %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 = load i32, i32* %6
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds [6 x double], [6 x double]* %26, i64 0, i64 %28
store double %22, double* %29
br label %30
30: ; preds = %14
%31 = load i32, i32* %6
%32 = add nsw i32 %31, 1
store i32 %32, i32* %6
br label %11
33: ; preds = %11
br label %34
34: ; preds = %33
%35 = load i32, i32* %5
%36 = add nsw i32 %35, 1
store i32 %36, i32* %5
br label %7
37: ; preds = %7
ret void
}

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