#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 */
typedef int /*<<< orphan*/ __m128;

/* Variables and functions */
int /*<<< orphan*/ _MM_SHUFFLE(int, int, int, int);
int /*<<< orphan*/ _mm_add_ps(int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ _mm_load_ps(float *);
int /*<<< orphan*/ _mm_shuffle_ps(int /*<<< orphan*/, int /*<<< orphan*/,
                                  int /*<<< orphan*/);
int /*<<< orphan*/ _mm_store_ps(float *, int /*<<< orphan*/);
int /*<<< orphan*/ _mm_unpackhi_ps(int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ _mm_unpacklo_ps(int /*<<< orphan*/, int /*<<< orphan*/);
void transpose(float *const restrict arg1, const float *const restrict arg2,
               const int blocksize) {
  int i, j, ti, tj;
  const int fstride1 = 1600;
  const int cstride0 = 1600;
  for (ti = 0; ti < 1600; ti += blocksize) {
    for (tj = 0; tj < 1600; tj += blocksize) {
      int upper_i = ti + blocksize;
      int upper_j = tj + blocksize;
      for (i = ti; i < upper_i; i += 4) {
        float *restrict a = arg1 + i * 1600;
        float *restrict b = arg2 + i;
        for (j = tj; j < upper_j; j += 4) {
          __m128 col1 = _mm_load_ps(b + j * fstride1);
          __m128 col2 = _mm_load_ps(b + (j + 1) * fstride1);
          __m128 col3 = _mm_load_ps(b + (j + 2) * fstride1);
          __m128 col4 = _mm_load_ps(b + (j + 3) * fstride1);
          __m128 a1 = _mm_unpacklo_ps(col1, col2);
          __m128 b1 = _mm_unpacklo_ps(col3, col4);
          __m128 c1 = _mm_unpackhi_ps(col1, col2);
          __m128 d1 = _mm_unpackhi_ps(col3, col4);
          __m128 newrow1 = _mm_shuffle_ps(a1, b1, _MM_SHUFFLE(1, 0, 1, 0));
          __m128 newrow2 = _mm_shuffle_ps(a1, b1, _MM_SHUFFLE(3, 2, 3, 2));
          __m128 newrow3 = _mm_shuffle_ps(c1, d1, _MM_SHUFFLE(1, 0, 1, 0));
          __m128 newrow4 = _mm_shuffle_ps(c1, d1, _MM_SHUFFLE(3, 2, 3, 2));
          __m128 row1 = _mm_load_ps(a + j);
          __m128 row2 = _mm_load_ps(a + j + cstride0);
          __m128 row3 = _mm_load_ps(a + j + 2 * cstride0);
          __m128 row4 = _mm_load_ps(a + j + 3 * cstride0);
          row1 = _mm_add_ps(row1, newrow1);
          row2 = _mm_add_ps(row2, newrow2);
          row3 = _mm_add_ps(row3, newrow3);
          row4 = _mm_add_ps(row4, newrow4);
          _mm_store_ps(a + j, row1);
          _mm_store_ps(a + j + cstride0, row2);
          _mm_store_ps(a + j + 2 * cstride0, row3);
          _mm_store_ps(a + j + 3 * cstride0, row4);
        }
      }
    }
  }
}


x86 assembly (clang, -O0):
<transpose>:
push   %rbp
mov    %rsp,%rbp
sub    $0xb0,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
movl   $0x640,-0x28(%rbp)
movl   $0x640,-0x2c(%rbp)
movl   $0x0,-0x20(%rbp)
cmpl   $0x640,-0x20(%rbp)
jge    1534 <transpose+0x3c4>
movl   $0x0,-0x24(%rbp)
cmpl   $0x640,-0x24(%rbp)
jge    1521 <transpose+0x3b1>
mov    -0x20(%rbp),%eax
add    -0x14(%rbp),%eax
mov    %eax,-0x30(%rbp)
mov    -0x24(%rbp),%eax
add    -0x14(%rbp),%eax
mov    %eax,-0x34(%rbp)
mov    -0x20(%rbp),%eax
mov    %eax,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0x30(%rbp),%eax
jge    150e <transpose+0x39e>
mov    -0x8(%rbp),%rax
imul   $0x640,-0x18(%rbp),%ecx
movslq %ecx,%rcx
shl    $0x2,%rcx
add    %rcx,%rax
mov    %rax,-0x40(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x18(%rbp),%rcx
shl    $0x2,%rcx
add    %rcx,%rax
mov    %rax,-0x48(%rbp)
mov    -0x24(%rbp),%eax
mov    %eax,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x34(%rbp),%eax
jge    14fb <transpose+0x38b>
mov    -0x48(%rbp),%rdi
imul   $0x640,-0x1c(%rbp),%eax
cltq
shl    $0x2,%rax
add    %rax,%rdi
call   1030 <_mm_load_ps@plt>
mov    %eax,-0x4c(%rbp)
mov    -0x48(%rbp),%rdi
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
imul   $0x640,%eax,%eax
cltq
shl    $0x2,%rax
add    %rax,%rdi
call   1030 <_mm_load_ps@plt>
mov    %eax,-0x50(%rbp)
mov    -0x48(%rbp),%rdi
mov    -0x1c(%rbp),%eax
add    $0x2,%eax
imul   $0x640,%eax,%eax
cltq
shl    $0x2,%rax
add    %rax,%rdi
call   1030 <_mm_load_ps@plt>
mov    %eax,-0x54(%rbp)
mov    -0x48(%rbp),%rdi
mov    -0x1c(%rbp),%eax
add    $0x3,%eax
imul   $0x640,%eax,%eax
cltq
shl    $0x2,%rax
add    %rax,%rdi
call   1030 <_mm_load_ps@plt>
mov    %eax,-0x58(%rbp)
mov    -0x4c(%rbp),%edi
mov    -0x50(%rbp),%esi
call   1090 <_mm_unpacklo_ps@plt>
mov    %eax,-0x5c(%rbp)
mov    -0x54(%rbp),%edi
mov    -0x58(%rbp),%esi
call   1090 <_mm_unpacklo_ps@plt>
mov    %eax,-0x60(%rbp)
mov    -0x4c(%rbp),%edi
mov    -0x50(%rbp),%esi
call   1040 <_mm_unpackhi_ps@plt>
mov    %eax,-0x64(%rbp)
mov    -0x54(%rbp),%edi
mov    -0x58(%rbp),%esi
call   1040 <_mm_unpackhi_ps@plt>
mov    %eax,-0x68(%rbp)
mov    -0x5c(%rbp),%eax
mov    %eax,-0xa8(%rbp)
mov    -0x60(%rbp),%eax
mov    %eax,-0xa4(%rbp)
mov    $0x1,%edx
xor    %ecx,%ecx
mov    %edx,%edi
mov    %ecx,%esi
call   1050 <_MM_SHUFFLE@plt>
mov    -0xa8(%rbp),%edi
mov    -0xa4(%rbp),%esi
mov    %eax,%edx
call   1060 <_mm_shuffle_ps@plt>
mov    %eax,-0x6c(%rbp)
mov    -0x5c(%rbp),%eax
mov    %eax,-0xa0(%rbp)
mov    -0x60(%rbp),%eax
mov    %eax,-0x9c(%rbp)
mov    $0x3,%edx
mov    $0x2,%ecx
mov    %edx,%edi
mov    %ecx,%esi
call   1050 <_MM_SHUFFLE@plt>
mov    -0xa0(%rbp),%edi
mov    -0x9c(%rbp),%esi
mov    %eax,%edx
call   1060 <_mm_shuffle_ps@plt>
mov    %eax,-0x70(%rbp)
mov    -0x64(%rbp),%eax
mov    %eax,-0x98(%rbp)
mov    -0x68(%rbp),%eax
mov    %eax,-0x94(%rbp)
mov    $0x1,%edx
xor    %ecx,%ecx
mov    %edx,%edi
mov    %ecx,%esi
call   1050 <_MM_SHUFFLE@plt>
mov    -0x98(%rbp),%edi
mov    -0x94(%rbp),%esi
mov    %eax,%edx
call   1060 <_mm_shuffle_ps@plt>
mov    %eax,-0x74(%rbp)
mov    -0x64(%rbp),%eax
mov    %eax,-0x90(%rbp)
mov    -0x68(%rbp),%eax
mov    %eax,-0x8c(%rbp)
mov    $0x3,%edx
mov    $0x2,%ecx
mov    %edx,%edi
mov    %ecx,%esi
call   1050 <_MM_SHUFFLE@plt>
mov    -0x90(%rbp),%edi
mov    -0x8c(%rbp),%esi
mov    %eax,%edx
call   1060 <_mm_shuffle_ps@plt>
mov    %eax,-0x78(%rbp)
mov    -0x40(%rbp),%rdi
movslq -0x1c(%rbp),%rax
shl    $0x2,%rax
add    %rax,%rdi
call   1030 <_mm_load_ps@plt>
mov    %eax,-0x7c(%rbp)
mov    -0x40(%rbp),%rdi
movslq -0x1c(%rbp),%rax
shl    $0x2,%rax
add    %rax,%rdi
add    $0x1900,%rdi
call   1030 <_mm_load_ps@plt>
mov    %eax,-0x80(%rbp)
mov    -0x40(%rbp),%rdi
movslq -0x1c(%rbp),%rax
shl    $0x2,%rax
add    %rax,%rdi
add    $0x3200,%rdi
call   1030 <_mm_load_ps@plt>
mov    %eax,-0x84(%rbp)
mov    -0x40(%rbp),%rdi
movslq -0x1c(%rbp),%rax
shl    $0x2,%rax
add    %rax,%rdi
add    $0x4b00,%rdi
call   1030 <_mm_load_ps@plt>
mov    %eax,-0x88(%rbp)
mov    -0x7c(%rbp),%edi
mov    -0x6c(%rbp),%esi
call   1080 <_mm_add_ps@plt>
mov    %eax,-0x7c(%rbp)
mov    -0x80(%rbp),%edi
mov    -0x70(%rbp),%esi
call   1080 <_mm_add_ps@plt>
mov    %eax,-0x80(%rbp)
mov    -0x84(%rbp),%edi
mov    -0x74(%rbp),%esi
call   1080 <_mm_add_ps@plt>
mov    %eax,-0x84(%rbp)
mov    -0x88(%rbp),%edi
mov    -0x78(%rbp),%esi
call   1080 <_mm_add_ps@plt>
mov    %eax,-0x88(%rbp)
mov    -0x40(%rbp),%rdi
movslq -0x1c(%rbp),%rax
shl    $0x2,%rax
add    %rax,%rdi
mov    -0x7c(%rbp),%esi
call   1070 <_mm_store_ps@plt>
mov    -0x40(%rbp),%rdi
movslq -0x1c(%rbp),%rax
shl    $0x2,%rax
add    %rax,%rdi
add    $0x1900,%rdi
mov    -0x80(%rbp),%esi
call   1070 <_mm_store_ps@plt>
mov    -0x40(%rbp),%rdi
movslq -0x1c(%rbp),%rax
shl    $0x2,%rax
add    %rax,%rdi
add    $0x3200,%rdi
mov    -0x84(%rbp),%esi
call   1070 <_mm_store_ps@plt>
mov    -0x40(%rbp),%rdi
movslq -0x1c(%rbp),%rax
shl    $0x2,%rax
add    %rax,%rdi
add    $0x4b00,%rdi
mov    -0x88(%rbp),%esi
call   1070 <_mm_store_ps@plt>
mov    -0x1c(%rbp),%eax
add    $0x4,%eax
mov    %eax,-0x1c(%rbp)
jmp    1212 <transpose+0xa2>
jmp    1500 <transpose+0x390>
mov    -0x18(%rbp),%eax
add    $0x4,%eax
mov    %eax,-0x18(%rbp)
jmp    11d4 <transpose+0x64>
jmp    1513 <transpose+0x3a3>
mov    -0x14(%rbp),%eax
add    -0x24(%rbp),%eax
mov    %eax,-0x24(%rbp)
jmp    11af <transpose+0x3f>
jmp    1526 <transpose+0x3b6>
mov    -0x14(%rbp),%eax
add    -0x20(%rbp),%eax
mov    %eax,-0x20(%rbp)
jmp    119b <transpose+0x2b>
add    $0xb0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<transpose>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xf8,%rsp
movabs $0x64000000000,%rax
movslq %edx,%rcx
mov    %rcx,%rdx
imul   %rax,%rdx
mov    %rdx,0x80(%rsp)
imul   $0x1900,%rcx,%rax
mov    %rax,0x30(%rsp)
mov    %rcx,0x38(%rsp)
lea    0x0(,%rcx,4),%rax
mov    %rax,0x28(%rsp)
xor    %ecx,%ecx
mov    %rsi,0x88(%rsp)
jmp    11f8 <transpose+0x88>
nopw   0x0(%rax,%rax,1)
mov    0x70(%rsp),%rdi
add    0x30(%rsp),%rdi
mov    0x68(%rsp),%rsi
add    0x28(%rsp),%rsi
mov    0x40(%rsp),%rax
mov    %rax,%rcx
cmp    $0x640,%rax
jge    15ab <transpose+0x43b>
mov    0x38(%rsp),%rax
mov    %rcx,0x78(%rsp)
add    %rcx,%rax
mov    %rax,0x40(%rsp)
mov    %rsi,0x68(%rsp)
mov    %rsi,0x10(%rsp)
mov    %rdi,0x70(%rsp)
mov    %rdi,0x8(%rsp)
movabs $0x64000000000,%rax
mov    %rax,0x58(%rsp)
movabs $0xc8000000000,%rax
mov    %rax,0x50(%rsp)
movabs $0x12c000000000,%rax
mov    %rax,0x48(%rsp)
xor    %ecx,%ecx
jmp    1292 <transpose+0x122>
nop
mov    0x80(%rsp),%rax
add    %rax,0x48(%rsp)
add    %rax,0x50(%rsp)
add    %rax,0x58(%rsp)
mov    0x8(%rsp),%rax
add    0x28(%rsp),%rax
mov    %rax,0x8(%rsp)
mov    0x10(%rsp),%rax
add    0x30(%rsp),%rax
mov    %rax,0x10(%rsp)
cmp    $0x63f,%rcx
jg     11d0 <transpose+0x60>
mov    0x38(%rsp),%rax
mov    %rcx,0x90(%rsp)
add    %rax,%rcx
test   %eax,%eax
jle    1250 <transpose+0xe0>
mov    0x10(%rsp),%rdx
mov    0x8(%rsp),%r15
mov    0x78(%rsp),%rsi
mov    %rcx,0xb0(%rsp)
nopl   (%rax)
mov    0x88(%rsp),%rax
mov    %rsi,0x98(%rsp)
lea    (%rax,%rsi,4),%rax
mov    %rax,0xb8(%rsp)
mov    %rdx,0xa8(%rsp)
mov    %r15,0xa0(%rsp)
mov    0x58(%rsp),%rbx
mov    0x50(%rsp),%r12
mov    0x48(%rsp),%rbp
mov    0x90(%rsp),%rsi
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    %r12,0xd0(%rsp)
mov    %rsi,0xd8(%rsp)
mov    %r15,0xe0(%rsp)
mov    %rbp,0xe8(%rsp)
mov    %rbx,0xf0(%rsp)
mov    %rdx,0x60(%rsp)
mov    0x60(%rsp),%rdi
call   1030 <_mm_load_ps@plt>
mov    %eax,0x4(%rsp)
mov    %rbx,%rdi
sar    $0x1e,%rdi
mov    0xb8(%rsp),%rbx
add    %rbx,%rdi
call   1030 <_mm_load_ps@plt>
mov    %eax,%r14d
mov    %r12,%rdi
sar    $0x1e,%rdi
add    %rbx,%rdi
call   1030 <_mm_load_ps@plt>
mov    %eax,%r15d
mov    %rbp,%rdi
sar    $0x1e,%rdi
add    %rbx,%rdi
call   1030 <_mm_load_ps@plt>
mov    %eax,%r13d
mov    0x4(%rsp),%ebx
mov    %ebx,%edi
mov    %r14d,%esi
call   1090 <_mm_unpacklo_ps@plt>
mov    %eax,%ebp
mov    %r15d,%edi
mov    %r13d,%esi
call   1090 <_mm_unpacklo_ps@plt>
mov    %eax,%r12d
mov    %ebx,%edi
mov    %r14d,%esi
call   1040 <_mm_unpackhi_ps@plt>
mov    %eax,%r14d
mov    %r15d,%edi
mov    0xe0(%rsp),%r15
mov    %r13d,%esi
call   1040 <_mm_unpackhi_ps@plt>
mov    %eax,%ebx
mov    $0x1,%edi
xor    %esi,%esi
mov    $0x1,%edx
xor    %ecx,%ecx
call   1050 <_MM_SHUFFLE@plt>
mov    %ebp,%edi
mov    %r12d,%esi
mov    %eax,%edx
call   1060 <_mm_shuffle_ps@plt>
mov    %eax,0x4(%rsp)
mov    $0x3,%edi
mov    $0x2,%esi
mov    $0x3,%edx
mov    $0x2,%ecx
call   1050 <_MM_SHUFFLE@plt>
mov    %ebp,%edi
mov    %r12d,%esi
mov    %eax,%edx
call   1060 <_mm_shuffle_ps@plt>
mov    %eax,0x24(%rsp)
mov    $0x1,%edi
xor    %esi,%esi
mov    $0x1,%edx
xor    %ecx,%ecx
call   1050 <_MM_SHUFFLE@plt>
mov    %r14d,%edi
mov    %ebx,%esi
mov    %eax,%edx
call   1060 <_mm_shuffle_ps@plt>
mov    %eax,0x20(%rsp)
mov    $0x3,%edi
mov    $0x2,%esi
mov    $0x3,%edx
mov    $0x2,%ecx
call   1050 <_MM_SHUFFLE@plt>
mov    %r14d,%edi
mov    %ebx,%esi
mov    %eax,%edx
call   1060 <_mm_shuffle_ps@plt>
mov    %eax,0x1c(%rsp)
mov    %r15,%rdi
call   1030 <_mm_load_ps@plt>
mov    %eax,%ebx
lea    0x1900(%r15),%rbp
mov    %rbp,%rdi
call   1030 <_mm_load_ps@plt>
mov    %eax,%r13d
lea    0x3200(%r15),%rdi
mov    %rdi,0xc8(%rsp)
call   1030 <_mm_load_ps@plt>
mov    %eax,%r14d
lea    0x4b00(%r15),%rdi
mov    %rdi,0xc0(%rsp)
call   1030 <_mm_load_ps@plt>
mov    %eax,%r12d
mov    %ebx,%edi
mov    0x4(%rsp),%esi
call   1080 <_mm_add_ps@plt>
mov    %eax,0x4(%rsp)
mov    %r13d,%edi
mov    0x24(%rsp),%esi
call   1080 <_mm_add_ps@plt>
mov    %eax,%r13d
mov    %r14d,%edi
mov    0x20(%rsp),%esi
call   1080 <_mm_add_ps@plt>
mov    %eax,%ebx
mov    %r12d,%edi
mov    0xd0(%rsp),%r12
mov    0x1c(%rsp),%esi
call   1080 <_mm_add_ps@plt>
mov    %eax,%r14d
mov    %r15,%rdi
mov    0x4(%rsp),%esi
call   1070 <_mm_store_ps@plt>
mov    %rbp,%rdi
mov    %r13d,%esi
mov    0xe8(%rsp),%rbp
call   1070 <_mm_store_ps@plt>
mov    0xc8(%rsp),%rdi
mov    %ebx,%esi
mov    0xf0(%rsp),%rbx
call   1070 <_mm_store_ps@plt>
mov    0xc0(%rsp),%rdi
mov    %r14d,%esi
call   1070 <_mm_store_ps@plt>
mov    0xd8(%rsp),%rsi
mov    0x60(%rsp),%rdx
mov    0xb0(%rsp),%rcx
movabs $0x190000000000,%rax
add    $0x4,%rsi
add    %rax,%rbp
add    %rax,%r12
add    %rax,%rbx
add    $0x10,%r15
add    $0x6400,%rdx
cmp    %rcx,%rsi
jl     1310 <transpose+0x1a0>
mov    0x98(%rsp),%rsi
add    $0x4,%rsi
mov    0xa0(%rsp),%r15
add    $0x6400,%r15
mov    0xa8(%rsp),%rdx
add    $0x10,%rdx
cmp    0x40(%rsp),%rsi
jl     12c0 <transpose+0x150>
jmp    1250 <transpose+0xe0>
add    $0xf8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define void @transpose(float* noalias %0, float* noalias %1, i32 %2) {
%4 = alloca float*
%5 = alloca float*
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca float*
%16 = alloca float*
%17 = alloca i32
%18 = alloca i32
%19 = alloca i32
%20 = alloca i32
%21 = alloca i32
%22 = alloca i32
%23 = alloca i32
%24 = alloca i32
%25 = alloca i32
%26 = alloca i32
%27 = alloca i32
%28 = alloca i32
%29 = alloca i32
%30 = alloca i32
%31 = alloca i32
%32 = alloca i32
store float* %0, float** %4
store float* %1, float** %5
store i32 %2, i32* %6
store i32 1600, i32* %11
store i32 1600, i32* %12
store i32 0, i32* %9
br label %33
33: ; preds = %198, %3
%34 = load i32, i32* %9
%35 = icmp slt i32 %34, 1600
br i1 %35, label %36, label %202
36: ; preds = %33
store i32 0, i32* %10
br label %37
37: ; preds = %193, %36
%38 = load i32, i32* %10
%39 = icmp slt i32 %38, 1600
br i1 %39, label %40, label %197
40: ; preds = %37
%41 = load i32, i32* %9
%42 = load i32, i32* %6
%43 = add nsw i32 %41, %42
store i32 %43, i32* %13
%44 = load i32, i32* %10
%45 = load i32, i32* %6
%46 = add nsw i32 %44, %45
store i32 %46, i32* %14
%47 = load i32, i32* %9
store i32 %47, i32* %7
br label %48
48: ; preds = %189, %40
%49 = load i32, i32* %7
%50 = load i32, i32* %13
%51 = icmp slt i32 %49, %50
br i1 %51, label %52, label %192
52: ; preds = %48
%53 = load float*, float** %4
%54 = load i32, i32* %7
%55 = mul nsw i32 %54, 1600
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds float, float* %53, i64 %56
store float* %57, float** %15
%58 = load float*, float** %5
%59 = load i32, i32* %7
%60 = sext i32 %59 to i64
%61 = getelementptr inbounds float, float* %58, i64 %60
store float* %61, float** %16
%62 = load i32, i32* %10
store i32 %62, i32* %8
br label %63
63: ; preds = %185, %52
%64 = load i32, i32* %8
%65 = load i32, i32* %14
%66 = icmp slt i32 %64, %65
br i1 %66, label %67, label %188
67: ; preds = %63
%68 = load float*, float** %16
%69 = load i32, i32* %8
%70 = mul nsw i32 %69, 1600
%71 = sext i32 %70 to i64
%72 = getelementptr inbounds float, float* %68, i64 %71
%73 = call i32 @_mm_load_ps(float* %72)
store i32 %73, i32* %17
%74 = load float*, float** %16
%75 = load i32, i32* %8
%76 = add nsw i32 %75, 1
%77 = mul nsw i32 %76, 1600
%78 = sext i32 %77 to i64
%79 = getelementptr inbounds float, float* %74, i64 %78
%80 = call i32 @_mm_load_ps(float* %79)
store i32 %80, i32* %18
%81 = load float*, float** %16
%82 = load i32, i32* %8
%83 = add nsw i32 %82, 2
%84 = mul nsw i32 %83, 1600
%85 = sext i32 %84 to i64
%86 = getelementptr inbounds float, float* %81, i64 %85
%87 = call i32 @_mm_load_ps(float* %86)
store i32 %87, i32* %19
%88 = load float*, float** %16
%89 = load i32, i32* %8
%90 = add nsw i32 %89, 3
%91 = mul nsw i32 %90, 1600
%92 = sext i32 %91 to i64
%93 = getelementptr inbounds float, float* %88, i64 %92
%94 = call i32 @_mm_load_ps(float* %93)
store i32 %94, i32* %20
%95 = load i32, i32* %17
%96 = load i32, i32* %18
%97 = call i32 @_mm_unpacklo_ps(i32 %95, i32 %96)
store i32 %97, i32* %21
%98 = load i32, i32* %19
%99 = load i32, i32* %20
%100 = call i32 @_mm_unpacklo_ps(i32 %98, i32 %99)
store i32 %100, i32* %22
%101 = load i32, i32* %17
%102 = load i32, i32* %18
%103 = call i32 @_mm_unpackhi_ps(i32 %101, i32 %102)
store i32 %103, i32* %23
%104 = load i32, i32* %19
%105 = load i32, i32* %20
%106 = call i32 @_mm_unpackhi_ps(i32 %104, i32 %105)
store i32 %106, i32* %24
%107 = load i32, i32* %21
%108 = load i32, i32* %22
%109 = call i32 @_MM_SHUFFLE(i32 1, i32 0, i32 1, i32 0)
%110 = call i32 @_mm_shuffle_ps(i32 %107, i32 %108, i32 %109)
store i32 %110, i32* %25
%111 = load i32, i32* %21
%112 = load i32, i32* %22
%113 = call i32 @_MM_SHUFFLE(i32 3, i32 2, i32 3, i32 2)
%114 = call i32 @_mm_shuffle_ps(i32 %111, i32 %112, i32 %113)
store i32 %114, i32* %26
%115 = load i32, i32* %23
%116 = load i32, i32* %24
%117 = call i32 @_MM_SHUFFLE(i32 1, i32 0, i32 1, i32 0)
%118 = call i32 @_mm_shuffle_ps(i32 %115, i32 %116, i32 %117)
store i32 %118, i32* %27
%119 = load i32, i32* %23
%120 = load i32, i32* %24
%121 = call i32 @_MM_SHUFFLE(i32 3, i32 2, i32 3, i32 2)
%122 = call i32 @_mm_shuffle_ps(i32 %119, i32 %120, i32 %121)
store i32 %122, i32* %28
%123 = load float*, float** %15
%124 = load i32, i32* %8
%125 = sext i32 %124 to i64
%126 = getelementptr inbounds float, float* %123, i64 %125
%127 = call i32 @_mm_load_ps(float* %126)
store i32 %127, i32* %29
%128 = load float*, float** %15
%129 = load i32, i32* %8
%130 = sext i32 %129 to i64
%131 = getelementptr inbounds float, float* %128, i64 %130
%132 = getelementptr inbounds float, float* %131, i64 1600
%133 = call i32 @_mm_load_ps(float* %132)
store i32 %133, i32* %30
%134 = load float*, float** %15
%135 = load i32, i32* %8
%136 = sext i32 %135 to i64
%137 = getelementptr inbounds float, float* %134, i64 %136
%138 = getelementptr inbounds float, float* %137, i64 3200
%139 = call i32 @_mm_load_ps(float* %138)
store i32 %139, i32* %31
%140 = load float*, float** %15
%141 = load i32, i32* %8
%142 = sext i32 %141 to i64
%143 = getelementptr inbounds float, float* %140, i64 %142
%144 = getelementptr inbounds float, float* %143, i64 4800
%145 = call i32 @_mm_load_ps(float* %144)
store i32 %145, i32* %32
%146 = load i32, i32* %29
%147 = load i32, i32* %25
%148 = call i32 @_mm_add_ps(i32 %146, i32 %147)
store i32 %148, i32* %29
%149 = load i32, i32* %30
%150 = load i32, i32* %26
%151 = call i32 @_mm_add_ps(i32 %149, i32 %150)
store i32 %151, i32* %30
%152 = load i32, i32* %31
%153 = load i32, i32* %27
%154 = call i32 @_mm_add_ps(i32 %152, i32 %153)
store i32 %154, i32* %31
%155 = load i32, i32* %32
%156 = load i32, i32* %28
%157 = call i32 @_mm_add_ps(i32 %155, i32 %156)
store i32 %157, i32* %32
%158 = load float*, float** %15
%159 = load i32, i32* %8
%160 = sext i32 %159 to i64
%161 = getelementptr inbounds float, float* %158, i64 %160
%162 = load i32, i32* %29
%163 = call i32 @_mm_store_ps(float* %161, i32 %162)
%164 = load float*, float** %15
%165 = load i32, i32* %8
%166 = sext i32 %165 to i64
%167 = getelementptr inbounds float, float* %164, i64 %166
%168 = getelementptr inbounds float, float* %167, i64 1600
%169 = load i32, i32* %30
%170 = call i32 @_mm_store_ps(float* %168, i32 %169)
%171 = load float*, float** %15
%172 = load i32, i32* %8
%173 = sext i32 %172 to i64
%174 = getelementptr inbounds float, float* %171, i64 %173
%175 = getelementptr inbounds float, float* %174, i64 3200
%176 = load i32, i32* %31
%177 = call i32 @_mm_store_ps(float* %175, i32 %176)
%178 = load float*, float** %15
%179 = load i32, i32* %8
%180 = sext i32 %179 to i64
%181 = getelementptr inbounds float, float* %178, i64 %180
%182 = getelementptr inbounds float, float* %181, i64 4800
%183 = load i32, i32* %32
%184 = call i32 @_mm_store_ps(float* %182, i32 %183)
br label %185
185: ; preds = %67
%186 = load i32, i32* %8
%187 = add nsw i32 %186, 4
store i32 %187, i32* %8
br label %63
188: ; preds = %63
br label %189
189: ; preds = %188
%190 = load i32, i32* %7
%191 = add nsw i32 %190, 4
store i32 %191, i32* %7
br label %48
192: ; preds = %48
br label %193
193: ; preds = %192
%194 = load i32, i32* %6
%195 = load i32, i32* %10
%196 = add nsw i32 %195, %194
store i32 %196, i32* %10
br label %37
197: ; preds = %37
br label %198
198: ; preds = %197
%199 = load i32, i32* %6
%200 = load i32, i32* %9
%201 = add nsw i32 %200, %199
store i32 %201, i32* %9
br label %33
202: ; preds = %33
ret void
}

LLVM IR (-O2):
define void @transpose(float* noalias %0, float* noalias %1, i32 %2) {
%4 = sext i32 %2 to i64
%5 = icmp sgt i32 %2, 0
br label %6
6: ; preds = %3, %72
%7 = phi i64 [ 0, %3 ], [ %8, %72 ]
%8 = add i64 %7, %4
br label %11
9: ; preds = %69, %11
%10 = icmp slt i64 %13, 1600
br i1 %10, label %11, label %72
11: ; preds = %6, %9
%12 = phi i64 [ 0, %6 ], [ %13, %9 ]
%13 = add i64 %12, %4
br i1 %5, label %14, label %9
14: ; preds = %11, %69
%15 = phi i64 [ %70, %69 ], [ %7, %11 ]
%16 = mul nsw i64 %15, 1600
%17 = getelementptr inbounds float, float* %0, i64 %16
%18 = getelementptr inbounds float, float* %1, i64 %15
br label %19
19: ; preds = %14, %19
%20 = phi i64 [ %12, %14 ], [ %67, %19 ]
%21 = mul nsw i64 %20, 1600
%22 = getelementptr inbounds float, float* %18, i64 %21
%23 = tail call i32 @_mm_load_ps(float* %22)
%24 = mul i64 %20, 6871947673600
%25 = add i64 %24, 6871947673600
%26 = ashr exact i64 %25, 32
%27 = getelementptr inbounds float, float* %18, i64 %26
%28 = tail call i32 @_mm_load_ps(float* %27)
%29 = mul i64 %20, 6871947673600
%30 = add i64 %29, 13743895347200
%31 = ashr exact i64 %30, 32
%32 = getelementptr inbounds float, float* %18, i64 %31
%33 = tail call i32 @_mm_load_ps(float* %32)
%34 = mul i64 %20, 6871947673600
%35 = add i64 %34, 20615843020800
%36 = ashr exact i64 %35, 32
%37 = getelementptr inbounds float, float* %18, i64 %36
%38 = tail call i32 @_mm_load_ps(float* %37)
%39 = tail call i32 @_mm_unpacklo_ps(i32 %23, i32 %28)
%40 = tail call i32 @_mm_unpacklo_ps(i32 %33, i32 %38)
%41 = tail call i32 @_mm_unpackhi_ps(i32 %23, i32 %28)
%42 = tail call i32 @_mm_unpackhi_ps(i32 %33, i32 %38)
%43 = tail call i32 @_MM_SHUFFLE(i32 1, i32 0, i32 1, i32 0)
%44 = tail call i32 @_mm_shuffle_ps(i32 %39, i32 %40, i32 %43)
%45 = tail call i32 @_MM_SHUFFLE(i32 3, i32 2, i32 3, i32 2)
%46 = tail call i32 @_mm_shuffle_ps(i32 %39, i32 %40, i32 %45)
%47 = tail call i32 @_MM_SHUFFLE(i32 1, i32 0, i32 1, i32 0)
%48 = tail call i32 @_mm_shuffle_ps(i32 %41, i32 %42, i32 %47)
%49 = tail call i32 @_MM_SHUFFLE(i32 3, i32 2, i32 3, i32 2)
%50 = tail call i32 @_mm_shuffle_ps(i32 %41, i32 %42, i32 %49)
%51 = getelementptr inbounds float, float* %17, i64 %20
%52 = tail call i32 @_mm_load_ps(float* %51)
%53 = getelementptr inbounds float, float* %51, i64 1600
%54 = tail call i32 @_mm_load_ps(float* %53)
%55 = getelementptr inbounds float, float* %51, i64 3200
%56 = tail call i32 @_mm_load_ps(float* %55)
%57 = getelementptr inbounds float, float* %51, i64 4800
%58 = tail call i32 @_mm_load_ps(float* %57)
%59 = tail call i32 @_mm_add_ps(i32 %52, i32 %44)
%60 = tail call i32 @_mm_add_ps(i32 %54, i32 %46)
%61 = tail call i32 @_mm_add_ps(i32 %56, i32 %48)
%62 = tail call i32 @_mm_add_ps(i32 %58, i32 %50)
%63 = tail call i32 @_mm_store_ps(float* %51, i32 %59)
%64 = tail call i32 @_mm_store_ps(float* %53, i32 %60)
%65 = tail call i32 @_mm_store_ps(float* %55, i32 %61)
%66 = tail call i32 @_mm_store_ps(float* %57, i32 %62)
%67 = add i64 %20, 4
%68 = icmp slt i64 %67, %13
br i1 %68, label %19, label %69
69: ; preds = %19
%70 = add i64 %15, 4
%71 = icmp slt i64 %70, %8
br i1 %71, label %14, label %9
72: ; preds = %9
%73 = icmp slt i64 %8, 1600
br i1 %73, label %6, label %74
74: ; preds = %72
ret void
}