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

/* Variables and functions */
int /*<<< orphan*/ _mm_unpackhi_epi16(int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ _mm_unpackhi_epi32(int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ _mm_unpackhi_epi64(int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ _mm_unpackhi_epi8(int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ _mm_unpacklo_epi16(int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ _mm_unpacklo_epi32(int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ _mm_unpacklo_epi64(int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ _mm_unpacklo_epi8(int /*<<< orphan*/, int /*<<< orphan*/);
void TAA_H264_2X8X8_TRANSPOSE(__m128i X[8], __m128i Y[8]) {
  __m128i x3, x4, x7, x8, x11, x12, x15, x16, y17, y18, y19, y20, y21, y22, y23,
      y24, z17, z18, z19, z20, z21, z22, z23, z24;
  x3 = _mm_unpacklo_epi8(X[0], X[1]);
  x4 = _mm_unpackhi_epi8(X[0], X[1]);
  x7 = _mm_unpacklo_epi8(X[2], X[3]);
  x8 = _mm_unpackhi_epi8(X[2], X[3]);
  x11 = _mm_unpacklo_epi8(X[4], X[5]);
  x12 = _mm_unpackhi_epi8(X[4], X[5]);
  x15 = _mm_unpacklo_epi8(X[6], X[7]);
  x16 = _mm_unpackhi_epi8(X[6], X[7]);
  y17 = _mm_unpacklo_epi16(x3, x7);
  y18 = _mm_unpackhi_epi16(x3, x7);
  y19 = _mm_unpacklo_epi16(x4, x8);
  y20 = _mm_unpackhi_epi16(x4, x8);
  y21 = _mm_unpacklo_epi16(x11, x15);
  y22 = _mm_unpackhi_epi16(x11, x15);
  y23 = _mm_unpacklo_epi16(x12, x16);
  y24 = _mm_unpackhi_epi16(x12, x16);
  z17 = _mm_unpacklo_epi32(y17, y21);
  z18 = _mm_unpackhi_epi32(y17, y21);
  z19 = _mm_unpacklo_epi32(y18, y22);
  z20 = _mm_unpackhi_epi32(y18, y22);
  z21 = _mm_unpacklo_epi32(y19, y23);
  z22 = _mm_unpackhi_epi32(y19, y23);
  z23 = _mm_unpacklo_epi32(y20, y24);
  z24 = _mm_unpackhi_epi32(y20, y24);
  Y[0] = _mm_unpacklo_epi64(z17, z21);
  Y[1] = _mm_unpackhi_epi64(z17, z21);
  Y[2] = _mm_unpacklo_epi64(z18, z22);
  Y[3] = _mm_unpackhi_epi64(z18, z22);
  Y[4] = _mm_unpacklo_epi64(z19, z23);
  Y[5] = _mm_unpackhi_epi64(z19, z23);
  Y[6] = _mm_unpacklo_epi64(z20, z24);
  Y[7] = _mm_unpackhi_epi64(z20, z24);
}


x86 assembly (clang, -O0):
<TAA_H264_2X8X8_TRANSPOSE>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rax
mov    0x4(%rax),%esi
call   1030 <_mm_unpacklo_epi8@plt>
mov    %eax,-0x14(%rbp)
mov    -0x8(%rbp),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rax
mov    0x4(%rax),%esi
call   1040 <_mm_unpackhi_epi8@plt>
mov    %eax,-0x18(%rbp)
mov    -0x8(%rbp),%rax
mov    0x8(%rax),%edi
mov    -0x8(%rbp),%rax
mov    0xc(%rax),%esi
call   1030 <_mm_unpacklo_epi8@plt>
mov    %eax,-0x1c(%rbp)
mov    -0x8(%rbp),%rax
mov    0x8(%rax),%edi
mov    -0x8(%rbp),%rax
mov    0xc(%rax),%esi
call   1040 <_mm_unpackhi_epi8@plt>
mov    %eax,-0x20(%rbp)
mov    -0x8(%rbp),%rax
mov    0x10(%rax),%edi
mov    -0x8(%rbp),%rax
mov    0x14(%rax),%esi
call   1030 <_mm_unpacklo_epi8@plt>
mov    %eax,-0x24(%rbp)
mov    -0x8(%rbp),%rax
mov    0x10(%rax),%edi
mov    -0x8(%rbp),%rax
mov    0x14(%rax),%esi
call   1040 <_mm_unpackhi_epi8@plt>
mov    %eax,-0x28(%rbp)
mov    -0x8(%rbp),%rax
mov    0x18(%rax),%edi
mov    -0x8(%rbp),%rax
mov    0x1c(%rax),%esi
call   1030 <_mm_unpacklo_epi8@plt>
mov    %eax,-0x2c(%rbp)
mov    -0x8(%rbp),%rax
mov    0x18(%rax),%edi
mov    -0x8(%rbp),%rax
mov    0x1c(%rax),%esi
call   1040 <_mm_unpackhi_epi8@plt>
mov    %eax,-0x30(%rbp)
mov    -0x14(%rbp),%edi
mov    -0x1c(%rbp),%esi
call   1080 <_mm_unpacklo_epi16@plt>
mov    %eax,-0x34(%rbp)
mov    -0x14(%rbp),%edi
mov    -0x1c(%rbp),%esi
call   1060 <_mm_unpackhi_epi16@plt>
mov    %eax,-0x38(%rbp)
mov    -0x18(%rbp),%edi
mov    -0x20(%rbp),%esi
call   1080 <_mm_unpacklo_epi16@plt>
mov    %eax,-0x3c(%rbp)
mov    -0x18(%rbp),%edi
mov    -0x20(%rbp),%esi
call   1060 <_mm_unpackhi_epi16@plt>
mov    %eax,-0x40(%rbp)
mov    -0x24(%rbp),%edi
mov    -0x2c(%rbp),%esi
call   1080 <_mm_unpacklo_epi16@plt>
mov    %eax,-0x44(%rbp)
mov    -0x24(%rbp),%edi
mov    -0x2c(%rbp),%esi
call   1060 <_mm_unpackhi_epi16@plt>
mov    %eax,-0x48(%rbp)
mov    -0x28(%rbp),%edi
mov    -0x30(%rbp),%esi
call   1080 <_mm_unpacklo_epi16@plt>
mov    %eax,-0x4c(%rbp)
mov    -0x28(%rbp),%edi
mov    -0x30(%rbp),%esi
call   1060 <_mm_unpackhi_epi16@plt>
mov    %eax,-0x50(%rbp)
mov    -0x34(%rbp),%edi
mov    -0x44(%rbp),%esi
call   1050 <_mm_unpacklo_epi32@plt>
mov    %eax,-0x54(%rbp)
mov    -0x34(%rbp),%edi
mov    -0x44(%rbp),%esi
call   10a0 <_mm_unpackhi_epi32@plt>
mov    %eax,-0x58(%rbp)
mov    -0x38(%rbp),%edi
mov    -0x48(%rbp),%esi
call   1050 <_mm_unpacklo_epi32@plt>
mov    %eax,-0x5c(%rbp)
mov    -0x38(%rbp),%edi
mov    -0x48(%rbp),%esi
call   10a0 <_mm_unpackhi_epi32@plt>
mov    %eax,-0x60(%rbp)
mov    -0x3c(%rbp),%edi
mov    -0x4c(%rbp),%esi
call   1050 <_mm_unpacklo_epi32@plt>
mov    %eax,-0x64(%rbp)
mov    -0x3c(%rbp),%edi
mov    -0x4c(%rbp),%esi
call   10a0 <_mm_unpackhi_epi32@plt>
mov    %eax,-0x68(%rbp)
mov    -0x40(%rbp),%edi
mov    -0x50(%rbp),%esi
call   1050 <_mm_unpacklo_epi32@plt>
mov    %eax,-0x6c(%rbp)
mov    -0x40(%rbp),%edi
mov    -0x50(%rbp),%esi
call   10a0 <_mm_unpackhi_epi32@plt>
mov    %eax,-0x70(%rbp)
mov    -0x54(%rbp),%edi
mov    -0x64(%rbp),%esi
call   1090 <_mm_unpacklo_epi64@plt>
mov    %eax,%ecx
mov    -0x10(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x54(%rbp),%edi
mov    -0x64(%rbp),%esi
call   1070 <_mm_unpackhi_epi64@plt>
mov    %eax,%ecx
mov    -0x10(%rbp),%rax
mov    %ecx,0x4(%rax)
mov    -0x58(%rbp),%edi
mov    -0x68(%rbp),%esi
call   1090 <_mm_unpacklo_epi64@plt>
mov    %eax,%ecx
mov    -0x10(%rbp),%rax
mov    %ecx,0x8(%rax)
mov    -0x58(%rbp),%edi
mov    -0x68(%rbp),%esi
call   1070 <_mm_unpackhi_epi64@plt>
mov    %eax,%ecx
mov    -0x10(%rbp),%rax
mov    %ecx,0xc(%rax)
mov    -0x5c(%rbp),%edi
mov    -0x6c(%rbp),%esi
call   1090 <_mm_unpacklo_epi64@plt>
mov    %eax,%ecx
mov    -0x10(%rbp),%rax
mov    %ecx,0x10(%rax)
mov    -0x5c(%rbp),%edi
mov    -0x6c(%rbp),%esi
call   1070 <_mm_unpackhi_epi64@plt>
mov    %eax,%ecx
mov    -0x10(%rbp),%rax
mov    %ecx,0x14(%rax)
mov    -0x60(%rbp),%edi
mov    -0x70(%rbp),%esi
call   1090 <_mm_unpacklo_epi64@plt>
mov    %eax,%ecx
mov    -0x10(%rbp),%rax
mov    %ecx,0x18(%rax)
mov    -0x60(%rbp),%edi
mov    -0x70(%rbp),%esi
call   1070 <_mm_unpackhi_epi64@plt>
mov    %eax,%ecx
mov    -0x10(%rbp),%rax
mov    %ecx,0x1c(%rax)
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<TAA_H264_2X8X8_TRANSPOSE>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
mov    %rsi,0x20(%rsp)
mov    %rdi,%rbp
mov    (%rdi),%edi
mov    0x4(%rbp),%esi
call   1030 <_mm_unpacklo_epi8@plt>
mov    %eax,%ebx
mov    0x0(%rbp),%edi
mov    0x4(%rbp),%esi
call   1040 <_mm_unpackhi_epi8@plt>
mov    %eax,0xc(%rsp)
mov    0x8(%rbp),%edi
mov    0xc(%rbp),%esi
call   1030 <_mm_unpacklo_epi8@plt>
mov    %eax,%r15d
mov    0x8(%rbp),%edi
mov    0xc(%rbp),%esi
call   1040 <_mm_unpackhi_epi8@plt>
mov    %eax,%r13d
mov    0x10(%rbp),%edi
mov    0x14(%rbp),%esi
call   1030 <_mm_unpacklo_epi8@plt>
mov    %eax,0x4(%rsp)
mov    0x10(%rbp),%edi
mov    0x14(%rbp),%esi
call   1040 <_mm_unpackhi_epi8@plt>
mov    %eax,0x8(%rsp)
mov    0x18(%rbp),%edi
mov    0x1c(%rbp),%esi
call   1030 <_mm_unpacklo_epi8@plt>
mov    %eax,%r14d
mov    0x18(%rbp),%edi
mov    0x1c(%rbp),%esi
call   1040 <_mm_unpackhi_epi8@plt>
mov    %eax,%r12d
mov    %ebx,%edi
mov    %r15d,%esi
call   1080 <_mm_unpacklo_epi16@plt>
mov    %eax,0x10(%rsp)
mov    %ebx,%edi
mov    %r15d,%esi
call   1060 <_mm_unpackhi_epi16@plt>
mov    %eax,0x14(%rsp)
mov    0xc(%rsp),%ebx
mov    %ebx,%edi
mov    %r13d,%esi
call   1080 <_mm_unpacklo_epi16@plt>
mov    %eax,0x18(%rsp)
mov    %ebx,%edi
mov    %r13d,%esi
call   1060 <_mm_unpackhi_epi16@plt>
mov    %eax,0x1c(%rsp)
mov    0x4(%rsp),%ebx
mov    %ebx,%edi
mov    %r14d,%esi
call   1080 <_mm_unpacklo_epi16@plt>
mov    %eax,%r15d
mov    %ebx,%edi
mov    %r14d,%esi
call   1060 <_mm_unpackhi_epi16@plt>
mov    %eax,%ebx
mov    0x8(%rsp),%ebp
mov    %ebp,%edi
mov    %r12d,%esi
call   1080 <_mm_unpacklo_epi16@plt>
mov    %eax,%r13d
mov    %ebp,%edi
mov    %r12d,%esi
call   1060 <_mm_unpackhi_epi16@plt>
mov    %eax,%r12d
mov    0x10(%rsp),%ebp
mov    %ebp,%edi
mov    %r15d,%esi
call   1050 <_mm_unpacklo_epi32@plt>
mov    %eax,%r14d
mov    %ebp,%edi
mov    %r15d,%esi
call   10a0 <_mm_unpackhi_epi32@plt>
mov    %eax,0x4(%rsp)
mov    0x14(%rsp),%ebp
mov    %ebp,%edi
mov    %ebx,%esi
call   1050 <_mm_unpacklo_epi32@plt>
mov    %eax,0x8(%rsp)
mov    %ebp,%edi
mov    %ebx,%esi
call   10a0 <_mm_unpackhi_epi32@plt>
mov    %eax,0xc(%rsp)
mov    0x18(%rsp),%ebx
mov    %ebx,%edi
mov    %r13d,%esi
call   1050 <_mm_unpacklo_epi32@plt>
mov    %eax,%ebp
mov    %ebx,%edi
mov    %r13d,%esi
call   10a0 <_mm_unpackhi_epi32@plt>
mov    %eax,%r13d
mov    0x1c(%rsp),%ebx
mov    %ebx,%edi
mov    %r12d,%esi
call   1050 <_mm_unpacklo_epi32@plt>
mov    %eax,%r15d
mov    %ebx,%edi
mov    %r12d,%esi
call   10a0 <_mm_unpackhi_epi32@plt>
mov    %eax,%r12d
mov    %r14d,%edi
mov    %ebp,%esi
call   1090 <_mm_unpacklo_epi64@plt>
mov    0x20(%rsp),%rbx
mov    %eax,(%rbx)
mov    %r14d,%edi
mov    %ebp,%esi
call   1070 <_mm_unpackhi_epi64@plt>
mov    %eax,0x4(%rbx)
mov    0x4(%rsp),%ebp
mov    %ebp,%edi
mov    %r13d,%esi
call   1090 <_mm_unpacklo_epi64@plt>
mov    %eax,0x8(%rbx)
mov    %ebp,%edi
mov    %r13d,%esi
call   1070 <_mm_unpackhi_epi64@plt>
mov    %eax,0xc(%rbx)
mov    0x8(%rsp),%ebp
mov    %ebp,%edi
mov    %r15d,%esi
call   1090 <_mm_unpacklo_epi64@plt>
mov    %eax,0x10(%rbx)
mov    %ebp,%edi
mov    %r15d,%esi
call   1070 <_mm_unpackhi_epi64@plt>
mov    %eax,0x14(%rbx)
mov    0xc(%rsp),%ebp
mov    %ebp,%edi
mov    %r12d,%esi
call   1090 <_mm_unpacklo_epi64@plt>
mov    %eax,0x18(%rbx)
mov    %ebp,%edi
mov    %r12d,%esi
call   1070 <_mm_unpackhi_epi64@plt>
mov    %eax,0x1c(%rbx)
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

LLVM IR (-O2):
define void @TAA_H264_2X8X8_TRANSPOSE(i32* nocapture %0, i32* nocapture writeonly %1) {
%3 = load i32, i32* %0
%4 = getelementptr inbounds i32, i32* %0, i64 1
%5 = load i32, i32* %4
%6 = tail call i32 @_mm_unpacklo_epi8(i32 %3, i32 %5)
%7 = load i32, i32* %0
%8 = load i32, i32* %4
%9 = tail call i32 @_mm_unpackhi_epi8(i32 %7, i32 %8)
%10 = getelementptr inbounds i32, i32* %0, i64 2
%11 = load i32, i32* %10
%12 = getelementptr inbounds i32, i32* %0, i64 3
%13 = load i32, i32* %12
%14 = tail call i32 @_mm_unpacklo_epi8(i32 %11, i32 %13)
%15 = load i32, i32* %10
%16 = load i32, i32* %12
%17 = tail call i32 @_mm_unpackhi_epi8(i32 %15, i32 %16)
%18 = getelementptr inbounds i32, i32* %0, i64 4
%19 = load i32, i32* %18
%20 = getelementptr inbounds i32, i32* %0, i64 5
%21 = load i32, i32* %20
%22 = tail call i32 @_mm_unpacklo_epi8(i32 %19, i32 %21)
%23 = load i32, i32* %18
%24 = load i32, i32* %20
%25 = tail call i32 @_mm_unpackhi_epi8(i32 %23, i32 %24)
%26 = getelementptr inbounds i32, i32* %0, i64 6
%27 = load i32, i32* %26
%28 = getelementptr inbounds i32, i32* %0, i64 7
%29 = load i32, i32* %28
%30 = tail call i32 @_mm_unpacklo_epi8(i32 %27, i32 %29)
%31 = load i32, i32* %26
%32 = load i32, i32* %28
%33 = tail call i32 @_mm_unpackhi_epi8(i32 %31, i32 %32)
%34 = tail call i32 @_mm_unpacklo_epi16(i32 %6, i32 %14)
%35 = tail call i32 @_mm_unpackhi_epi16(i32 %6, i32 %14)
%36 = tail call i32 @_mm_unpacklo_epi16(i32 %9, i32 %17)
%37 = tail call i32 @_mm_unpackhi_epi16(i32 %9, i32 %17)
%38 = tail call i32 @_mm_unpacklo_epi16(i32 %22, i32 %30)
%39 = tail call i32 @_mm_unpackhi_epi16(i32 %22, i32 %30)
%40 = tail call i32 @_mm_unpacklo_epi16(i32 %25, i32 %33)
%41 = tail call i32 @_mm_unpackhi_epi16(i32 %25, i32 %33)
%42 = tail call i32 @_mm_unpacklo_epi32(i32 %34, i32 %38)
%43 = tail call i32 @_mm_unpackhi_epi32(i32 %34, i32 %38)
%44 = tail call i32 @_mm_unpacklo_epi32(i32 %35, i32 %39)
%45 = tail call i32 @_mm_unpackhi_epi32(i32 %35, i32 %39)
%46 = tail call i32 @_mm_unpacklo_epi32(i32 %36, i32 %40)
%47 = tail call i32 @_mm_unpackhi_epi32(i32 %36, i32 %40)
%48 = tail call i32 @_mm_unpacklo_epi32(i32 %37, i32 %41)
%49 = tail call i32 @_mm_unpackhi_epi32(i32 %37, i32 %41)
%50 = tail call i32 @_mm_unpacklo_epi64(i32 %42, i32 %46)
store i32 %50, i32* %1
%51 = tail call i32 @_mm_unpackhi_epi64(i32 %42, i32 %46)
%52 = getelementptr inbounds i32, i32* %1, i64 1
store i32 %51, i32* %52
%53 = tail call i32 @_mm_unpacklo_epi64(i32 %43, i32 %47)
%54 = getelementptr inbounds i32, i32* %1, i64 2
store i32 %53, i32* %54
%55 = tail call i32 @_mm_unpackhi_epi64(i32 %43, i32 %47)
%56 = getelementptr inbounds i32, i32* %1, i64 3
store i32 %55, i32* %56
%57 = tail call i32 @_mm_unpacklo_epi64(i32 %44, i32 %48)
%58 = getelementptr inbounds i32, i32* %1, i64 4
store i32 %57, i32* %58
%59 = tail call i32 @_mm_unpackhi_epi64(i32 %44, i32 %48)
%60 = getelementptr inbounds i32, i32* %1, i64 5
store i32 %59, i32* %60
%61 = tail call i32 @_mm_unpacklo_epi64(i32 %45, i32 %49)
%62 = getelementptr inbounds i32, i32* %1, i64 6
store i32 %61, i32* %62
%63 = tail call i32 @_mm_unpackhi_epi64(i32 %45, i32 %49)
%64 = getelementptr inbounds i32, i32* %1, i64 7
store i32 %63, i32* %64
ret void
}