#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*/ __m256i;

/* Variables and functions */
int /*<<< orphan*/ _mm256_unpackhi_epi16(int /*<<< orphan*/,
                                         int /*<<< orphan*/);
int /*<<< orphan*/ _mm256_unpackhi_epi32(int /*<<< orphan*/,
                                         int /*<<< orphan*/);
int /*<<< orphan*/ _mm256_unpackhi_epi64(int /*<<< orphan*/,
                                         int /*<<< orphan*/);
int /*<<< orphan*/ _mm256_unpackhi_epi8(int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ _mm256_unpacklo_epi16(int /*<<< orphan*/,
                                         int /*<<< orphan*/);
int /*<<< orphan*/ _mm256_unpacklo_epi32(int /*<<< orphan*/,
                                         int /*<<< orphan*/);
int /*<<< orphan*/ _mm256_unpacklo_epi64(int /*<<< orphan*/,
                                         int /*<<< orphan*/);
int /*<<< orphan*/ _mm256_unpacklo_epi8(int /*<<< orphan*/, int /*<<< orphan*/);
__attribute__((always_)) void transpose_32x8_block(__m256i *x0, __m256i *x1,
                                                   __m256i *x2, __m256i *x3,
                                                   __m256i *x4, __m256i *x5,
                                                   __m256i *x6, __m256i *x7) {
  __m256i x01_0 = _mm256_unpacklo_epi8(*x0, *x1),
          x01_1 = _mm256_unpackhi_epi8(*x0, *x1);
  __m256i x23_0 = _mm256_unpacklo_epi8(*x2, *x3),
          x23_1 = _mm256_unpackhi_epi8(*x2, *x3);
  __m256i x45_0 = _mm256_unpacklo_epi8(*x4, *x5),
          x45_1 = _mm256_unpackhi_epi8(*x4, *x5);
  __m256i x67_0 = _mm256_unpacklo_epi8(*x6, *x7),
          x67_1 = _mm256_unpackhi_epi8(*x6, *x7);
  __m256i x0123_00 = _mm256_unpacklo_epi16(x01_0, x23_0),
          x0123_01 = _mm256_unpackhi_epi16(x01_0, x23_0);
  __m256i x0123_10 = _mm256_unpacklo_epi16(x01_1, x23_1),
          x0123_11 = _mm256_unpackhi_epi16(x01_1, x23_1);
  __m256i x4567_00 = _mm256_unpacklo_epi16(x45_0, x67_0),
          x4567_01 = _mm256_unpackhi_epi16(x45_0, x67_0);
  __m256i x4567_10 = _mm256_unpacklo_epi16(x45_1, x67_1),
          x4567_11 = _mm256_unpackhi_epi16(x45_1, x67_1);
  __m256i x01234567_000 = _mm256_unpacklo_epi32(x0123_00, x4567_00),
          x01234567_001 = _mm256_unpackhi_epi32(x0123_00, x4567_00);
  __m256i x01234567_010 = _mm256_unpacklo_epi32(x0123_01, x4567_01),
          x01234567_011 = _mm256_unpackhi_epi32(x0123_01, x4567_01);
  __m256i x01234567_100 = _mm256_unpacklo_epi32(x0123_10, x4567_10),
          x01234567_101 = _mm256_unpackhi_epi32(x0123_10, x4567_10);
  __m256i x01234567_110 = _mm256_unpacklo_epi32(x0123_11, x4567_11),
          x01234567_111 = _mm256_unpackhi_epi32(x0123_11, x4567_11);
  __m256i xr_000 = _mm256_unpacklo_epi64(x01234567_000, x01234567_100),
          xr_001 = _mm256_unpackhi_epi64(x01234567_000, x01234567_100);
  __m256i xr_010 = _mm256_unpacklo_epi64(x01234567_001, x01234567_101),
          xr_011 = _mm256_unpackhi_epi64(x01234567_001, x01234567_101);
  __m256i xr_100 = _mm256_unpacklo_epi64(x01234567_010, x01234567_110),
          xr_101 = _mm256_unpackhi_epi64(x01234567_010, x01234567_110);
  __m256i xr_110 = _mm256_unpacklo_epi64(x01234567_011, x01234567_111),
          xr_111 = _mm256_unpackhi_epi64(x01234567_011, x01234567_111);
  *x0 = xr_000;
  *x1 = xr_001;
  *x2 = xr_010;
  *x3 = xr_011;
  *x4 = xr_100;
  *x5 = xr_101;
  *x6 = xr_110;
  *x7 = xr_111;
}


x86 assembly (clang, -O0):
<transpose_32x8_block>:
push   %rbp
mov    %rsp,%rbp
sub    $0xb0,%rsp
mov    0x18(%rbp),%rax
mov    0x10(%rbp),%rax
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9,-0x30(%rbp)
mov    -0x8(%rbp),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
mov    (%rax),%esi
call   1080 <_mm256_unpacklo_epi8@plt>
mov    %eax,-0x34(%rbp)
mov    -0x8(%rbp),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
mov    (%rax),%esi
call   1050 <_mm256_unpackhi_epi8@plt>
mov    %eax,-0x38(%rbp)
mov    -0x18(%rbp),%rax
mov    (%rax),%edi
mov    -0x20(%rbp),%rax
mov    (%rax),%esi
call   1080 <_mm256_unpacklo_epi8@plt>
mov    %eax,-0x3c(%rbp)
mov    -0x18(%rbp),%rax
mov    (%rax),%edi
mov    -0x20(%rbp),%rax
mov    (%rax),%esi
call   1050 <_mm256_unpackhi_epi8@plt>
mov    %eax,-0x40(%rbp)
mov    -0x28(%rbp),%rax
mov    (%rax),%edi
mov    -0x30(%rbp),%rax
mov    (%rax),%esi
call   1080 <_mm256_unpacklo_epi8@plt>
mov    %eax,-0x44(%rbp)
mov    -0x28(%rbp),%rax
mov    (%rax),%edi
mov    -0x30(%rbp),%rax
mov    (%rax),%esi
call   1050 <_mm256_unpackhi_epi8@plt>
mov    %eax,-0x48(%rbp)
mov    0x10(%rbp),%rax
mov    (%rax),%edi
mov    0x18(%rbp),%rax
mov    (%rax),%esi
call   1080 <_mm256_unpacklo_epi8@plt>
mov    %eax,-0x4c(%rbp)
mov    0x10(%rbp),%rax
mov    (%rax),%edi
mov    0x18(%rbp),%rax
mov    (%rax),%esi
call   1050 <_mm256_unpackhi_epi8@plt>
mov    %eax,-0x50(%rbp)
mov    -0x34(%rbp),%edi
mov    -0x3c(%rbp),%esi
call   1030 <_mm256_unpacklo_epi16@plt>
mov    %eax,-0x54(%rbp)
mov    -0x34(%rbp),%edi
mov    -0x3c(%rbp),%esi
call   10a0 <_mm256_unpackhi_epi16@plt>
mov    %eax,-0x58(%rbp)
mov    -0x38(%rbp),%edi
mov    -0x40(%rbp),%esi
call   1030 <_mm256_unpacklo_epi16@plt>
mov    %eax,-0x5c(%rbp)
mov    -0x38(%rbp),%edi
mov    -0x40(%rbp),%esi
call   10a0 <_mm256_unpackhi_epi16@plt>
mov    %eax,-0x60(%rbp)
mov    -0x44(%rbp),%edi
mov    -0x4c(%rbp),%esi
call   1030 <_mm256_unpacklo_epi16@plt>
mov    %eax,-0x64(%rbp)
mov    -0x44(%rbp),%edi
mov    -0x4c(%rbp),%esi
call   10a0 <_mm256_unpackhi_epi16@plt>
mov    %eax,-0x68(%rbp)
mov    -0x48(%rbp),%edi
mov    -0x50(%rbp),%esi
call   1030 <_mm256_unpacklo_epi16@plt>
mov    %eax,-0x6c(%rbp)
mov    -0x48(%rbp),%edi
mov    -0x50(%rbp),%esi
call   10a0 <_mm256_unpackhi_epi16@plt>
mov    %eax,-0x70(%rbp)
mov    -0x54(%rbp),%edi
mov    -0x64(%rbp),%esi
call   1060 <_mm256_unpacklo_epi32@plt>
mov    %eax,-0x74(%rbp)
mov    -0x54(%rbp),%edi
mov    -0x64(%rbp),%esi
call   1070 <_mm256_unpackhi_epi32@plt>
mov    %eax,-0x78(%rbp)
mov    -0x58(%rbp),%edi
mov    -0x68(%rbp),%esi
call   1060 <_mm256_unpacklo_epi32@plt>
mov    %eax,-0x7c(%rbp)
mov    -0x58(%rbp),%edi
mov    -0x68(%rbp),%esi
call   1070 <_mm256_unpackhi_epi32@plt>
mov    %eax,-0x80(%rbp)
mov    -0x5c(%rbp),%edi
mov    -0x6c(%rbp),%esi
call   1060 <_mm256_unpacklo_epi32@plt>
mov    %eax,-0x84(%rbp)
mov    -0x5c(%rbp),%edi
mov    -0x6c(%rbp),%esi
call   1070 <_mm256_unpackhi_epi32@plt>
mov    %eax,-0x88(%rbp)
mov    -0x60(%rbp),%edi
mov    -0x70(%rbp),%esi
call   1060 <_mm256_unpacklo_epi32@plt>
mov    %eax,-0x8c(%rbp)
mov    -0x60(%rbp),%edi
mov    -0x70(%rbp),%esi
call   1070 <_mm256_unpackhi_epi32@plt>
mov    %eax,-0x90(%rbp)
mov    -0x74(%rbp),%edi
mov    -0x84(%rbp),%esi
call   1040 <_mm256_unpacklo_epi64@plt>
mov    %eax,-0x94(%rbp)
mov    -0x74(%rbp),%edi
mov    -0x84(%rbp),%esi
call   1090 <_mm256_unpackhi_epi64@plt>
mov    %eax,-0x98(%rbp)
mov    -0x78(%rbp),%edi
mov    -0x88(%rbp),%esi
call   1040 <_mm256_unpacklo_epi64@plt>
mov    %eax,-0x9c(%rbp)
mov    -0x78(%rbp),%edi
mov    -0x88(%rbp),%esi
call   1090 <_mm256_unpackhi_epi64@plt>
mov    %eax,-0xa0(%rbp)
mov    -0x7c(%rbp),%edi
mov    -0x8c(%rbp),%esi
call   1040 <_mm256_unpacklo_epi64@plt>
mov    %eax,-0xa4(%rbp)
mov    -0x7c(%rbp),%edi
mov    -0x8c(%rbp),%esi
call   1090 <_mm256_unpackhi_epi64@plt>
mov    %eax,-0xa8(%rbp)
mov    -0x80(%rbp),%edi
mov    -0x90(%rbp),%esi
call   1040 <_mm256_unpacklo_epi64@plt>
mov    %eax,-0xac(%rbp)
mov    -0x80(%rbp),%edi
mov    -0x90(%rbp),%esi
call   1090 <_mm256_unpackhi_epi64@plt>
mov    %eax,-0xb0(%rbp)
mov    -0x94(%rbp),%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x98(%rbp),%ecx
mov    -0x10(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x9c(%rbp),%ecx
mov    -0x18(%rbp),%rax
mov    %ecx,(%rax)
mov    -0xa0(%rbp),%ecx
mov    -0x20(%rbp),%rax
mov    %ecx,(%rax)
mov    -0xa4(%rbp),%ecx
mov    -0x28(%rbp),%rax
mov    %ecx,(%rax)
mov    -0xa8(%rbp),%ecx
mov    -0x30(%rbp),%rax
mov    %ecx,(%rax)
mov    -0xac(%rbp),%ecx
mov    0x10(%rbp),%rax
mov    %ecx,(%rax)
mov    -0xb0(%rbp),%ecx
mov    0x18(%rbp),%rax
mov    %ecx,(%rax)
add    $0xb0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<transpose_32x8_block>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x58,%rsp
mov    %r9,%r14
mov    %r9,0x30(%rsp)
mov    %r8,0x28(%rsp)
mov    %rcx,%r13
mov    %rcx,0x40(%rsp)
mov    %rdx,%r15
mov    %rdx,0x38(%rsp)
mov    %rsi,%rbp
mov    %rsi,0x50(%rsp)
mov    %rdi,%rbx
mov    %rdi,0x48(%rsp)
mov    (%rdi),%edi
mov    (%rsi),%esi
call   1080 <_mm256_unpacklo_epi8@plt>
mov    %eax,0x14(%rsp)
mov    (%rbx),%edi
mov    0x0(%rbp),%esi
call   1050 <_mm256_unpackhi_epi8@plt>
mov    %eax,0x1c(%rsp)
mov    (%r15),%edi
mov    0x0(%r13),%esi
call   1080 <_mm256_unpacklo_epi8@plt>
mov    %eax,%r12d
mov    (%r15),%edi
mov    0x0(%r13),%esi
call   1050 <_mm256_unpackhi_epi8@plt>
mov    %eax,0x10(%rsp)
mov    0x28(%rsp),%rbp
mov    0x0(%rbp),%edi
mov    (%r14),%esi
call   1080 <_mm256_unpacklo_epi8@plt>
mov    %eax,0xc(%rsp)
mov    0x0(%rbp),%edi
mov    (%r14),%esi
call   1050 <_mm256_unpackhi_epi8@plt>
mov    %eax,0x18(%rsp)
mov    0x90(%rsp),%rbp
mov    0x0(%rbp),%edi
mov    0x98(%rsp),%rbx
mov    (%rbx),%esi
call   1080 <_mm256_unpacklo_epi8@plt>
mov    %eax,%r15d
mov    0x0(%rbp),%edi
mov    (%rbx),%esi
call   1050 <_mm256_unpackhi_epi8@plt>
mov    %eax,%r13d
mov    0x14(%rsp),%ebx
mov    %ebx,%edi
mov    %r12d,%esi
call   1030 <_mm256_unpacklo_epi16@plt>
mov    %eax,0x20(%rsp)
mov    %ebx,%edi
mov    %r12d,%esi
call   10a0 <_mm256_unpackhi_epi16@plt>
mov    %eax,0x24(%rsp)
mov    0x1c(%rsp),%ebx
mov    %ebx,%edi
mov    0x10(%rsp),%ebp
mov    %ebp,%esi
call   1030 <_mm256_unpacklo_epi16@plt>
mov    %eax,0x14(%rsp)
mov    %ebx,%edi
mov    %ebp,%esi
call   10a0 <_mm256_unpackhi_epi16@plt>
mov    %eax,0x10(%rsp)
mov    0xc(%rsp),%ebp
mov    %ebp,%edi
mov    %r15d,%esi
call   1030 <_mm256_unpacklo_epi16@plt>
mov    %eax,%ebx
mov    %ebp,%edi
mov    %r15d,%esi
call   10a0 <_mm256_unpackhi_epi16@plt>
mov    %eax,%r12d
mov    0x18(%rsp),%ebp
mov    %ebp,%edi
mov    %r13d,%esi
call   1030 <_mm256_unpacklo_epi16@plt>
mov    %eax,%r15d
mov    %ebp,%edi
mov    %r13d,%esi
call   10a0 <_mm256_unpackhi_epi16@plt>
mov    %eax,%r14d
mov    0x20(%rsp),%ebp
mov    %ebp,%edi
mov    %ebx,%esi
call   1060 <_mm256_unpacklo_epi32@plt>
mov    %eax,0xc(%rsp)
mov    %ebp,%edi
mov    %ebx,%esi
call   1070 <_mm256_unpackhi_epi32@plt>
mov    %eax,%ebp
mov    0x24(%rsp),%ebx
mov    %ebx,%edi
mov    %r12d,%esi
call   1060 <_mm256_unpacklo_epi32@plt>
mov    %eax,0x18(%rsp)
mov    %ebx,%edi
mov    %r12d,%esi
call   1070 <_mm256_unpackhi_epi32@plt>
mov    %eax,0x1c(%rsp)
mov    0x14(%rsp),%ebx
mov    %ebx,%edi
mov    %r15d,%esi
call   1060 <_mm256_unpacklo_epi32@plt>
mov    %eax,%r13d
mov    %ebx,%edi
mov    %r15d,%esi
call   1070 <_mm256_unpackhi_epi32@plt>
mov    %eax,%r12d
mov    0x10(%rsp),%ebx
mov    %ebx,%edi
mov    %r14d,%esi
call   1060 <_mm256_unpacklo_epi32@plt>
mov    %eax,%r15d
mov    %ebx,%edi
mov    %r14d,%esi
call   1070 <_mm256_unpackhi_epi32@plt>
mov    %eax,%r14d
mov    0xc(%rsp),%ebx
mov    %ebx,%edi
mov    %r13d,%esi
call   1040 <_mm256_unpacklo_epi64@plt>
mov    %eax,0x14(%rsp)
mov    %ebx,%edi
mov    %r13d,%esi
call   1090 <_mm256_unpackhi_epi64@plt>
mov    %eax,0x10(%rsp)
mov    %ebp,%edi
mov    %r12d,%esi
call   1040 <_mm256_unpacklo_epi64@plt>
mov    %eax,0xc(%rsp)
mov    %ebp,%edi
mov    %r12d,%esi
call   1090 <_mm256_unpackhi_epi64@plt>
mov    %eax,%r12d
mov    0x18(%rsp),%ebx
mov    %ebx,%edi
mov    %r15d,%esi
call   1040 <_mm256_unpacklo_epi64@plt>
mov    %eax,%r13d
mov    %ebx,%edi
mov    %r15d,%esi
call   1090 <_mm256_unpackhi_epi64@plt>
mov    %eax,%r15d
mov    0x1c(%rsp),%ebx
mov    %ebx,%edi
mov    %r14d,%esi
call   1040 <_mm256_unpacklo_epi64@plt>
mov    %eax,%ebp
mov    %ebx,%edi
mov    %r14d,%esi
call   1090 <_mm256_unpackhi_epi64@plt>
mov    0x48(%rsp),%rcx
mov    0x14(%rsp),%edx
mov    %edx,(%rcx)
mov    0x50(%rsp),%rcx
mov    0x10(%rsp),%edx
mov    %edx,(%rcx)
mov    0x38(%rsp),%rcx
mov    0xc(%rsp),%edx
mov    %edx,(%rcx)
mov    0x40(%rsp),%rcx
mov    %r12d,(%rcx)
mov    0x28(%rsp),%rcx
mov    %r13d,(%rcx)
mov    0x30(%rsp),%rcx
mov    %r15d,(%rcx)
mov    0x90(%rsp),%rcx
mov    %ebp,(%rcx)
mov    0x98(%rsp),%rcx
mov    %eax,(%rcx)
add    $0x58,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define void @transpose_32x8_block(i32* %0, i32* %1, i32* %2, i32* %3, i32* %4, i32* %5, i32* %6, i32* %7) {
%9 = alloca i32*
%10 = alloca i32*
%11 = alloca i32*
%12 = alloca i32*
%13 = alloca i32*
%14 = alloca i32*
%15 = alloca i32*
%16 = alloca i32*
%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
%33 = alloca i32
%34 = alloca i32
%35 = alloca i32
%36 = alloca i32
%37 = alloca i32
%38 = alloca i32
%39 = alloca i32
%40 = alloca i32
%41 = alloca i32
%42 = alloca i32
%43 = alloca i32
%44 = alloca i32
%45 = alloca i32
%46 = alloca i32
%47 = alloca i32
%48 = alloca i32
store i32* %0, i32** %9
store i32* %1, i32** %10
store i32* %2, i32** %11
store i32* %3, i32** %12
store i32* %4, i32** %13
store i32* %5, i32** %14
store i32* %6, i32** %15
store i32* %7, i32** %16
%49 = load i32*, i32** %9
%50 = load i32, i32* %49
%51 = load i32*, i32** %10
%52 = load i32, i32* %51
%53 = call i32 @_mm256_unpacklo_epi8(i32 %50, i32 %52)
store i32 %53, i32* %17
%54 = load i32*, i32** %9
%55 = load i32, i32* %54
%56 = load i32*, i32** %10
%57 = load i32, i32* %56
%58 = call i32 @_mm256_unpackhi_epi8(i32 %55, i32 %57)
store i32 %58, i32* %18
%59 = load i32*, i32** %11
%60 = load i32, i32* %59
%61 = load i32*, i32** %12
%62 = load i32, i32* %61
%63 = call i32 @_mm256_unpacklo_epi8(i32 %60, i32 %62)
store i32 %63, i32* %19
%64 = load i32*, i32** %11
%65 = load i32, i32* %64
%66 = load i32*, i32** %12
%67 = load i32, i32* %66
%68 = call i32 @_mm256_unpackhi_epi8(i32 %65, i32 %67)
store i32 %68, i32* %20
%69 = load i32*, i32** %13
%70 = load i32, i32* %69
%71 = load i32*, i32** %14
%72 = load i32, i32* %71
%73 = call i32 @_mm256_unpacklo_epi8(i32 %70, i32 %72)
store i32 %73, i32* %21
%74 = load i32*, i32** %13
%75 = load i32, i32* %74
%76 = load i32*, i32** %14
%77 = load i32, i32* %76
%78 = call i32 @_mm256_unpackhi_epi8(i32 %75, i32 %77)
store i32 %78, i32* %22
%79 = load i32*, i32** %15
%80 = load i32, i32* %79
%81 = load i32*, i32** %16
%82 = load i32, i32* %81
%83 = call i32 @_mm256_unpacklo_epi8(i32 %80, i32 %82)
store i32 %83, i32* %23
%84 = load i32*, i32** %15
%85 = load i32, i32* %84
%86 = load i32*, i32** %16
%87 = load i32, i32* %86
%88 = call i32 @_mm256_unpackhi_epi8(i32 %85, i32 %87)
store i32 %88, i32* %24
%89 = load i32, i32* %17
%90 = load i32, i32* %19
%91 = call i32 @_mm256_unpacklo_epi16(i32 %89, i32 %90)
store i32 %91, i32* %25
%92 = load i32, i32* %17
%93 = load i32, i32* %19
%94 = call i32 @_mm256_unpackhi_epi16(i32 %92, i32 %93)
store i32 %94, i32* %26
%95 = load i32, i32* %18
%96 = load i32, i32* %20
%97 = call i32 @_mm256_unpacklo_epi16(i32 %95, i32 %96)
store i32 %97, i32* %27
%98 = load i32, i32* %18
%99 = load i32, i32* %20
%100 = call i32 @_mm256_unpackhi_epi16(i32 %98, i32 %99)
store i32 %100, i32* %28
%101 = load i32, i32* %21
%102 = load i32, i32* %23
%103 = call i32 @_mm256_unpacklo_epi16(i32 %101, i32 %102)
store i32 %103, i32* %29
%104 = load i32, i32* %21
%105 = load i32, i32* %23
%106 = call i32 @_mm256_unpackhi_epi16(i32 %104, i32 %105)
store i32 %106, i32* %30
%107 = load i32, i32* %22
%108 = load i32, i32* %24
%109 = call i32 @_mm256_unpacklo_epi16(i32 %107, i32 %108)
store i32 %109, i32* %31
%110 = load i32, i32* %22
%111 = load i32, i32* %24
%112 = call i32 @_mm256_unpackhi_epi16(i32 %110, i32 %111)
store i32 %112, i32* %32
%113 = load i32, i32* %25
%114 = load i32, i32* %29
%115 = call i32 @_mm256_unpacklo_epi32(i32 %113, i32 %114)
store i32 %115, i32* %33
%116 = load i32, i32* %25
%117 = load i32, i32* %29
%118 = call i32 @_mm256_unpackhi_epi32(i32 %116, i32 %117)
store i32 %118, i32* %34
%119 = load i32, i32* %26
%120 = load i32, i32* %30
%121 = call i32 @_mm256_unpacklo_epi32(i32 %119, i32 %120)
store i32 %121, i32* %35
%122 = load i32, i32* %26
%123 = load i32, i32* %30
%124 = call i32 @_mm256_unpackhi_epi32(i32 %122, i32 %123)
store i32 %124, i32* %36
%125 = load i32, i32* %27
%126 = load i32, i32* %31
%127 = call i32 @_mm256_unpacklo_epi32(i32 %125, i32 %126)
store i32 %127, i32* %37
%128 = load i32, i32* %27
%129 = load i32, i32* %31
%130 = call i32 @_mm256_unpackhi_epi32(i32 %128, i32 %129)
store i32 %130, i32* %38
%131 = load i32, i32* %28
%132 = load i32, i32* %32
%133 = call i32 @_mm256_unpacklo_epi32(i32 %131, i32 %132)
store i32 %133, i32* %39
%134 = load i32, i32* %28
%135 = load i32, i32* %32
%136 = call i32 @_mm256_unpackhi_epi32(i32 %134, i32 %135)
store i32 %136, i32* %40
%137 = load i32, i32* %33
%138 = load i32, i32* %37
%139 = call i32 @_mm256_unpacklo_epi64(i32 %137, i32 %138)
store i32 %139, i32* %41
%140 = load i32, i32* %33
%141 = load i32, i32* %37
%142 = call i32 @_mm256_unpackhi_epi64(i32 %140, i32 %141)
store i32 %142, i32* %42
%143 = load i32, i32* %34
%144 = load i32, i32* %38
%145 = call i32 @_mm256_unpacklo_epi64(i32 %143, i32 %144)
store i32 %145, i32* %43
%146 = load i32, i32* %34
%147 = load i32, i32* %38
%148 = call i32 @_mm256_unpackhi_epi64(i32 %146, i32 %147)
store i32 %148, i32* %44
%149 = load i32, i32* %35
%150 = load i32, i32* %39
%151 = call i32 @_mm256_unpacklo_epi64(i32 %149, i32 %150)
store i32 %151, i32* %45
%152 = load i32, i32* %35
%153 = load i32, i32* %39
%154 = call i32 @_mm256_unpackhi_epi64(i32 %152, i32 %153)
store i32 %154, i32* %46
%155 = load i32, i32* %36
%156 = load i32, i32* %40
%157 = call i32 @_mm256_unpacklo_epi64(i32 %155, i32 %156)
store i32 %157, i32* %47
%158 = load i32, i32* %36
%159 = load i32, i32* %40
%160 = call i32 @_mm256_unpackhi_epi64(i32 %158, i32 %159)
store i32 %160, i32* %48
%161 = load i32, i32* %41
%162 = load i32*, i32** %9
store i32 %161, i32* %162
%163 = load i32, i32* %42
%164 = load i32*, i32** %10
store i32 %163, i32* %164
%165 = load i32, i32* %43
%166 = load i32*, i32** %11
store i32 %165, i32* %166
%167 = load i32, i32* %44
%168 = load i32*, i32** %12
store i32 %167, i32* %168
%169 = load i32, i32* %45
%170 = load i32*, i32** %13
store i32 %169, i32* %170
%171 = load i32, i32* %46
%172 = load i32*, i32** %14
store i32 %171, i32* %172
%173 = load i32, i32* %47
%174 = load i32*, i32** %15
store i32 %173, i32* %174
%175 = load i32, i32* %48
%176 = load i32*, i32** %16
store i32 %175, i32* %176
ret void
}

LLVM IR (-O2):
define void @transpose_32x8_block(i32* nocapture %0, i32* nocapture %1, i32* nocapture %2, i32* nocapture %3, i32* nocapture %4, i32* nocapture %5, i32* nocapture %6, i32* nocapture %7) {
%9 = load i32, i32* %0
%10 = load i32, i32* %1
%11 = tail call i32 @_mm256_unpacklo_epi8(i32 %9, i32 %10)
%12 = load i32, i32* %0
%13 = load i32, i32* %1
%14 = tail call i32 @_mm256_unpackhi_epi8(i32 %12, i32 %13)
%15 = load i32, i32* %2
%16 = load i32, i32* %3
%17 = tail call i32 @_mm256_unpacklo_epi8(i32 %15, i32 %16)
%18 = load i32, i32* %2
%19 = load i32, i32* %3
%20 = tail call i32 @_mm256_unpackhi_epi8(i32 %18, i32 %19)
%21 = load i32, i32* %4
%22 = load i32, i32* %5
%23 = tail call i32 @_mm256_unpacklo_epi8(i32 %21, i32 %22)
%24 = load i32, i32* %4
%25 = load i32, i32* %5
%26 = tail call i32 @_mm256_unpackhi_epi8(i32 %24, i32 %25)
%27 = load i32, i32* %6
%28 = load i32, i32* %7
%29 = tail call i32 @_mm256_unpacklo_epi8(i32 %27, i32 %28)
%30 = load i32, i32* %6
%31 = load i32, i32* %7
%32 = tail call i32 @_mm256_unpackhi_epi8(i32 %30, i32 %31)
%33 = tail call i32 @_mm256_unpacklo_epi16(i32 %11, i32 %17)
%34 = tail call i32 @_mm256_unpackhi_epi16(i32 %11, i32 %17)
%35 = tail call i32 @_mm256_unpacklo_epi16(i32 %14, i32 %20)
%36 = tail call i32 @_mm256_unpackhi_epi16(i32 %14, i32 %20)
%37 = tail call i32 @_mm256_unpacklo_epi16(i32 %23, i32 %29)
%38 = tail call i32 @_mm256_unpackhi_epi16(i32 %23, i32 %29)
%39 = tail call i32 @_mm256_unpacklo_epi16(i32 %26, i32 %32)
%40 = tail call i32 @_mm256_unpackhi_epi16(i32 %26, i32 %32)
%41 = tail call i32 @_mm256_unpacklo_epi32(i32 %33, i32 %37)
%42 = tail call i32 @_mm256_unpackhi_epi32(i32 %33, i32 %37)
%43 = tail call i32 @_mm256_unpacklo_epi32(i32 %34, i32 %38)
%44 = tail call i32 @_mm256_unpackhi_epi32(i32 %34, i32 %38)
%45 = tail call i32 @_mm256_unpacklo_epi32(i32 %35, i32 %39)
%46 = tail call i32 @_mm256_unpackhi_epi32(i32 %35, i32 %39)
%47 = tail call i32 @_mm256_unpacklo_epi32(i32 %36, i32 %40)
%48 = tail call i32 @_mm256_unpackhi_epi32(i32 %36, i32 %40)
%49 = tail call i32 @_mm256_unpacklo_epi64(i32 %41, i32 %45)
%50 = tail call i32 @_mm256_unpackhi_epi64(i32 %41, i32 %45)
%51 = tail call i32 @_mm256_unpacklo_epi64(i32 %42, i32 %46)
%52 = tail call i32 @_mm256_unpackhi_epi64(i32 %42, i32 %46)
%53 = tail call i32 @_mm256_unpacklo_epi64(i32 %43, i32 %47)
%54 = tail call i32 @_mm256_unpackhi_epi64(i32 %43, i32 %47)
%55 = tail call i32 @_mm256_unpacklo_epi64(i32 %44, i32 %48)
%56 = tail call i32 @_mm256_unpackhi_epi64(i32 %44, i32 %48)
store i32 %49, i32* %0
store i32 %50, i32* %1
store i32 %51, i32* %2
store i32 %52, i32* %3
store i32 %53, i32* %4
store i32 %54, i32* %5
store i32 %55, i32* %6
store i32 %56, i32* %7
ret void
}