void test_1(void) {
  static unsigned int bm[32];
  static unsigned int cm[32];
  int j;
  for (j = 0; j < 32 / 2; j++) {
    bm[2 * j] <<= 8;
    bm[2 * j + 1] <<= 8;
  }
  for (j = 0; j < 32 / 2; j++) {
    cm[2 * j] <<= 8;
    cm[2 * j + 1] <<= 7;
  }
}


x86 assembly (clang, -O0):
<test_1>:
push   %rbp
mov    %rsp,%rbp
movl   $0x0,-0x4(%rbp)
cmpl   $0x10,-0x4(%rbp)
jge    1166 <test_1+0x66>
mov    -0x4(%rbp),%eax
shl    $0x1,%eax
movslq %eax,%rcx
lea    0x2f0b(%rip),%rax
mov    (%rax,%rcx,4),%edx
shl    $0x8,%edx
lea    0x2efe(%rip),%rax
mov    %edx,(%rax,%rcx,4)
mov    -0x4(%rbp),%eax
shl    $0x1,%eax
add    $0x1,%eax
movslq %eax,%rcx
lea    0x2ee8(%rip),%rax
mov    (%rax,%rcx,4),%edx
shl    $0x8,%edx
lea    0x2edb(%rip),%rax
mov    %edx,(%rax,%rcx,4)
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    110b <test_1+0xb>
movl   $0x0,-0x4(%rbp)
cmpl   $0x10,-0x4(%rbp)
jge    11c8 <test_1+0xc8>
mov    -0x4(%rbp),%eax
shl    $0x1,%eax
movslq %eax,%rcx
lea    0x2f29(%rip),%rax
mov    (%rax,%rcx,4),%edx
shl    $0x8,%edx
lea    0x2f1c(%rip),%rax
mov    %edx,(%rax,%rcx,4)
mov    -0x4(%rbp),%eax
shl    $0x1,%eax
add    $0x1,%eax
movslq %eax,%rcx
lea    0x2f06(%rip),%rax
mov    (%rax,%rcx,4),%edx
shl    $0x7,%edx
lea    0x2ef9(%rip),%rax
mov    %edx,(%rax,%rcx,4)
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    116d <test_1+0x6d>
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_1>:
movdqa 0x2f28(%rip),%xmm0
pslld  $0x8,%xmm0
movdqa %xmm0,0x2f1b(%rip)
movdqa 0x2f23(%rip),%xmm0
pslld  $0x8,%xmm0
movdqa %xmm0,0x2f16(%rip)
movdqa 0x2f1e(%rip),%xmm0
pslld  $0x8,%xmm0
movdqa %xmm0,0x2f11(%rip)
movdqa 0x2f19(%rip),%xmm0
pslld  $0x8,%xmm0
movdqa %xmm0,0x2f0c(%rip)
movdqa 0x2f14(%rip),%xmm0
pslld  $0x8,%xmm0
movdqa %xmm0,0x2f07(%rip)
movdqa 0x2f0f(%rip),%xmm0
pslld  $0x8,%xmm0
movdqa %xmm0,0x2f02(%rip)
movdqa 0x2f0a(%rip),%xmm0
pslld  $0x8,%xmm0
movdqa %xmm0,0x2efd(%rip)
movdqa 0x2f05(%rip),%xmm0
pslld  $0x8,%xmm0
movdqa %xmm0,0x2ef8(%rip)
movdqa 0x2f00(%rip),%xmm1
movdqa 0xe48(%rip),%xmm0
pshufd $0xf5,%xmm1,%xmm2
pmuludq %xmm0,%xmm1
pshufd $0xe8,%xmm1,%xmm3
movdqa 0xe42(%rip),%xmm1
pmuludq %xmm1,%xmm2
pshufd $0xe8,%xmm2,%xmm2
punpckldq %xmm2,%xmm3
movdqa %xmm3,0x2ecd(%rip)
movdqa 0x2ed5(%rip),%xmm2
pshufd $0xf5,%xmm2,%xmm3
pmuludq %xmm0,%xmm2
pshufd $0xe8,%xmm2,%xmm2
pmuludq %xmm1,%xmm3
pshufd $0xe8,%xmm3,%xmm3
punpckldq %xmm3,%xmm2
movdqa %xmm2,0x2eb2(%rip)
movdqa 0x2eba(%rip),%xmm2
pshufd $0xf5,%xmm2,%xmm3
pmuludq %xmm0,%xmm2
pshufd $0xe8,%xmm2,%xmm2
pmuludq %xmm1,%xmm3
pshufd $0xe8,%xmm3,%xmm3
punpckldq %xmm3,%xmm2
movdqa %xmm2,0x2e97(%rip)
movdqa 0x2e9f(%rip),%xmm2
pshufd $0xf5,%xmm2,%xmm3
pmuludq %xmm0,%xmm2
pshufd $0xe8,%xmm2,%xmm2
pmuludq %xmm1,%xmm3
pshufd $0xe8,%xmm3,%xmm3
punpckldq %xmm3,%xmm2
movdqa %xmm2,0x2e7c(%rip)
movdqa 0x2e84(%rip),%xmm2
pshufd $0xf5,%xmm2,%xmm3
pmuludq %xmm0,%xmm2
pshufd $0xe8,%xmm2,%xmm2
pmuludq %xmm1,%xmm3
pshufd $0xe8,%xmm3,%xmm3
punpckldq %xmm3,%xmm2
movdqa %xmm2,0x2e61(%rip)
movdqa 0x2e69(%rip),%xmm2
pshufd $0xf5,%xmm2,%xmm3
pmuludq %xmm0,%xmm2
pshufd $0xe8,%xmm2,%xmm2
pmuludq %xmm1,%xmm3
pshufd $0xe8,%xmm3,%xmm3
punpckldq %xmm3,%xmm2
movdqa %xmm2,0x2e46(%rip)
movdqa 0x2e4e(%rip),%xmm2
pshufd $0xf5,%xmm2,%xmm3
pmuludq %xmm0,%xmm2
pshufd $0xe8,%xmm2,%xmm2
pmuludq %xmm1,%xmm3
pshufd $0xe8,%xmm3,%xmm3
punpckldq %xmm3,%xmm2
movdqa %xmm2,0x2e2b(%rip)
movdqa 0x2e33(%rip),%xmm2
pmuludq %xmm2,%xmm0
pshufd $0xe8,%xmm0,%xmm0
pshufd $0xf5,%xmm2,%xmm2
pmuludq %xmm1,%xmm2
pshufd $0xe8,%xmm2,%xmm1
punpckldq %xmm1,%xmm0
movdqa %xmm0,0x2e10(%rip)
ret

LLVM IR (-O0):
@test_1.bm = internal global [32 x i32] zeroinitializer
@test_1.cm = internal global [32 x i32] zeroinitializer
define void @test_1() {
%1 = alloca i32
store i32 0, i32* %1
br label %2
2: ; preds = %19, %0
%3 = load i32, i32* %1
%4 = icmp slt i32 %3, 16
br i1 %4, label %5, label %22
5: ; preds = %2
%6 = load i32, i32* %1
%7 = mul nsw i32 2, %6
%8 = sext i32 %7 to i64
%9 = getelementptr inbounds [32 x i32], [32 x i32]* @test_1.bm, i64 0, i64 %8
%10 = load i32, i32* %9
%11 = shl i32 %10, 8
store i32 %11, i32* %9
%12 = load i32, i32* %1
%13 = mul nsw i32 2, %12
%14 = add nsw i32 %13, 1
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds [32 x i32], [32 x i32]* @test_1.bm, i64 0, i64 %15
%17 = load i32, i32* %16
%18 = shl i32 %17, 8
store i32 %18, i32* %16
br label %19
19: ; preds = %5
%20 = load i32, i32* %1
%21 = add nsw i32 %20, 1
store i32 %21, i32* %1
br label %2
22: ; preds = %2
store i32 0, i32* %1
br label %23
23: ; preds = %40, %22
%24 = load i32, i32* %1
%25 = icmp slt i32 %24, 16
br i1 %25, label %26, label %43
26: ; preds = %23
%27 = load i32, i32* %1
%28 = mul nsw i32 2, %27
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds [32 x i32], [32 x i32]* @test_1.cm, i64 0, i64 %29
%31 = load i32, i32* %30
%32 = shl i32 %31, 8
store i32 %32, i32* %30
%33 = load i32, i32* %1
%34 = mul nsw i32 2, %33
%35 = add nsw i32 %34, 1
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds [32 x i32], [32 x i32]* @test_1.cm, i64 0, i64 %36
%38 = load i32, i32* %37
%39 = shl i32 %38, 7
store i32 %39, i32* %37
br label %40
40: ; preds = %26
%41 = load i32, i32* %1
%42 = add nsw i32 %41, 1
store i32 %42, i32* %1
br label %23
43: ; preds = %23
ret void
}

LLVM IR (-O2):
@test_1.bm = internal unnamed_addr global [32 x i32] zeroinitializer
@test_1.cm = internal unnamed_addr global [32 x i32] zeroinitializer
define void @test_1() {
%1 = load <4 x i32>, <4 x i32>* bitcast ([32 x i32]* @test_1.bm to <4 x i32>*)
%2 = shufflevector <4 x i32> %1, <4 x i32> poison, <2 x i32> <i32 0, i32 2>
%3 = shufflevector <4 x i32> %1, <4 x i32> poison, <2 x i32> <i32 1, i32 3>
%4 = shl <2 x i32> %2, <i32 8, i32 8>
%5 = shl <2 x i32> %3, <i32 8, i32 8>
%6 = shufflevector <2 x i32> %4, <2 x i32> %5, <4 x i32> <i32 0, i32 2, i32 1, i32 3>
store <4 x i32> %6, <4 x i32>* bitcast ([32 x i32]* @test_1.bm to <4 x i32>*)
%7 = load <4 x i32>, <4 x i32>* bitcast (i32* getelementptr inbounds ([32 x i32], [32 x i32]* @test_1.bm, i64 0, i64 4) to <4 x i32>*)
%8 = shufflevector <4 x i32> %7, <4 x i32> poison, <2 x i32> <i32 0, i32 2>
%9 = shufflevector <4 x i32> %7, <4 x i32> poison, <2 x i32> <i32 1, i32 3>
%10 = shl <2 x i32> %8, <i32 8, i32 8>
%11 = shl <2 x i32> %9, <i32 8, i32 8>
%12 = shufflevector <2 x i32> %10, <2 x i32> %11, <4 x i32> <i32 0, i32 2, i32 1, i32 3>
store <4 x i32> %12, <4 x i32>* bitcast (i32* getelementptr inbounds ([32 x i32], [32 x i32]* @test_1.bm, i64 0, i64 4) to <4 x i32>*)
%13 = load <4 x i32>, <4 x i32>* bitcast (i32* getelementptr inbounds ([32 x i32], [32 x i32]* @test_1.bm, i64 0, i64 8) to <4 x i32>*)
%14 = shufflevector <4 x i32> %13, <4 x i32> poison, <2 x i32> <i32 0, i32 2>
%15 = shufflevector <4 x i32> %13, <4 x i32> poison, <2 x i32> <i32 1, i32 3>
%16 = shl <2 x i32> %14, <i32 8, i32 8>
%17 = shl <2 x i32> %15, <i32 8, i32 8>
%18 = shufflevector <2 x i32> %16, <2 x i32> %17, <4 x i32> <i32 0, i32 2, i32 1, i32 3>
store <4 x i32> %18, <4 x i32>* bitcast (i32* getelementptr inbounds ([32 x i32], [32 x i32]* @test_1.bm, i64 0, i64 8) to <4 x i32>*)
%19 = load <4 x i32>, <4 x i32>* bitcast (i32* getelementptr inbounds ([32 x i32], [32 x i32]* @test_1.bm, i64 0, i64 12) to <4 x i32>*)
%20 = shufflevector <4 x i32> %19, <4 x i32> poison, <2 x i32> <i32 0, i32 2>
%21 = shufflevector <4 x i32> %19, <4 x i32> poison, <2 x i32> <i32 1, i32 3>
%22 = shl <2 x i32> %20, <i32 8, i32 8>
%23 = shl <2 x i32> %21, <i32 8, i32 8>
%24 = shufflevector <2 x i32> %22, <2 x i32> %23, <4 x i32> <i32 0, i32 2, i32 1, i32 3>
store <4 x i32> %24, <4 x i32>* bitcast (i32* getelementptr inbounds ([32 x i32], [32 x i32]* @test_1.bm, i64 0, i64 12) to <4 x i32>*)
%25 = load <4 x i32>, <4 x i32>* bitcast (i32* getelementptr inbounds ([32 x i32], [32 x i32]* @test_1.bm, i64 0, i64 16) to <4 x i32>*)
%26 = shufflevector <4 x i32> %25, <4 x i32> poison, <2 x i32> <i32 0, i32 2>
%27 = shufflevector <4 x i32> %25, <4 x i32> poison, <2 x i32> <i32 1, i32 3>
%28 = shl <2 x i32> %26, <i32 8, i32 8>
%29 = shl <2 x i32> %27, <i32 8, i32 8>
%30 = shufflevector <2 x i32> %28, <2 x i32> %29, <4 x i32> <i32 0, i32 2, i32 1, i32 3>
store <4 x i32> %30, <4 x i32>* bitcast (i32* getelementptr inbounds ([32 x i32], [32 x i32]* @test_1.bm, i64 0, i64 16) to <4 x i32>*)
%31 = load <4 x i32>, <4 x i32>* bitcast (i32* getelementptr inbounds ([32 x i32], [32 x i32]* @test_1.bm, i64 0, i64 20) to <4 x i32>*)
%32 = shufflevector <4 x i32> %31, <4 x i32> poison, <2 x i32> <i32 0, i32 2>
%33 = shufflevector <4 x i32> %31, <4 x i32> poison, <2 x i32> <i32 1, i32 3>
%34 = shl <2 x i32> %32, <i32 8, i32 8>
%35 = shl <2 x i32> %33, <i32 8, i32 8>
%36 = shufflevector <2 x i32> %34, <2 x i32> %35, <4 x i32> <i32 0, i32 2, i32 1, i32 3>
store <4 x i32> %36, <4 x i32>* bitcast (i32* getelementptr inbounds ([32 x i32], [32 x i32]* @test_1.bm, i64 0, i64 20) to <4 x i32>*)
%37 = load <4 x i32>, <4 x i32>* bitcast (i32* getelementptr inbounds ([32 x i32], [32 x i32]* @test_1.bm, i64 0, i64 24) to <4 x i32>*)
%38 = shufflevector <4 x i32> %37, <4 x i32> poison, <2 x i32> <i32 0, i32 2>
%39 = shufflevector <4 x i32> %37, <4 x i32> poison, <2 x i32> <i32 1, i32 3>
%40 = shl <2 x i32> %38, <i32 8, i32 8>
%41 = shl <2 x i32> %39, <i32 8, i32 8>
%42 = shufflevector <2 x i32> %40, <2 x i32> %41, <4 x i32> <i32 0, i32 2, i32 1, i32 3>
store <4 x i32> %42, <4 x i32>* bitcast (i32* getelementptr inbounds ([32 x i32], [32 x i32]* @test_1.bm, i64 0, i64 24) to <4 x i32>*)
%43 = load <4 x i32>, <4 x i32>* bitcast (i32* getelementptr inbounds ([32 x i32], [32 x i32]* @test_1.bm, i64 0, i64 28) to <4 x i32>*)
%44 = shufflevector <4 x i32> %43, <4 x i32> poison, <2 x i32> <i32 0, i32 2>
%45 = shufflevector <4 x i32> %43, <4 x i32> poison, <2 x i32> <i32 1, i32 3>
%46 = shl <2 x i32> %44, <i32 8, i32 8>
%47 = shl <2 x i32> %45, <i32 8, i32 8>
%48 = shufflevector <2 x i32> %46, <2 x i32> %47, <4 x i32> <i32 0, i32 2, i32 1, i32 3>
store <4 x i32> %48, <4 x i32>* bitcast (i32* getelementptr inbounds ([32 x i32], [32 x i32]* @test_1.bm, i64 0, i64 28) to <4 x i32>*)
%49 = load <4 x i32>, <4 x i32>* bitcast ([32 x i32]* @test_1.cm to <4 x i32>*)
%50 = shufflevector <4 x i32> %49, <4 x i32> poison, <2 x i32> <i32 0, i32 2>
%51 = shufflevector <4 x i32> %49, <4 x i32> poison, <2 x i32> <i32 1, i32 3>
%52 = shl <2 x i32> %50, <i32 8, i32 8>
%53 = shl <2 x i32> %51, <i32 7, i32 7>
%54 = shufflevector <2 x i32> %52, <2 x i32> %53, <4 x i32> <i32 0, i32 2, i32 1, i32 3>
store <4 x i32> %54, <4 x i32>* bitcast ([32 x i32]* @test_1.cm to <4 x i32>*)
%55 = load <4 x i32>, <4 x i32>* bitcast (i32* getelementptr inbounds ([32 x i32], [32 x i32]* @test_1.cm, i64 0, i64 4) to <4 x i32>*)
%56 = shufflevector <4 x i32> %55, <4 x i32> poison, <2 x i32> <i32 0, i32 2>
%57 = shufflevector <4 x i32> %55, <4 x i32> poison, <2 x i32> <i32 1, i32 3>
%58 = shl <2 x i32> %56, <i32 8, i32 8>
%59 = shl <2 x i32> %57, <i32 7, i32 7>
%60 = shufflevector <2 x i32> %58, <2 x i32> %59, <4 x i32> <i32 0, i32 2, i32 1, i32 3>
store <4 x i32> %60, <4 x i32>* bitcast (i32* getelementptr inbounds ([32 x i32], [32 x i32]* @test_1.cm, i64 0, i64 4) to <4 x i32>*)
%61 = load <4 x i32>, <4 x i32>* bitcast (i32* getelementptr inbounds ([32 x i32], [32 x i32]* @test_1.cm, i64 0, i64 8) to <4 x i32>*)
%62 = shufflevector <4 x i32> %61, <4 x i32> poison, <2 x i32> <i32 0, i32 2>
%63 = shufflevector <4 x i32> %61, <4 x i32> poison, <2 x i32> <i32 1, i32 3>
%64 = shl <2 x i32> %62, <i32 8, i32 8>
%65 = shl <2 x i32> %63, <i32 7, i32 7>
%66 = shufflevector <2 x i32> %64, <2 x i32> %65, <4 x i32> <i32 0, i32 2, i32 1, i32 3>
store <4 x i32> %66, <4 x i32>* bitcast (i32* getelementptr inbounds ([32 x i32], [32 x i32]* @test_1.cm, i64 0, i64 8) to <4 x i32>*)
%67 = load <4 x i32>, <4 x i32>* bitcast (i32* getelementptr inbounds ([32 x i32], [32 x i32]* @test_1.cm, i64 0, i64 12) to <4 x i32>*)
%68 = shufflevector <4 x i32> %67, <4 x i32> poison, <2 x i32> <i32 0, i32 2>
%69 = shufflevector <4 x i32> %67, <4 x i32> poison, <2 x i32> <i32 1, i32 3>
%70 = shl <2 x i32> %68, <i32 8, i32 8>
%71 = shl <2 x i32> %69, <i32 7, i32 7>
%72 = shufflevector <2 x i32> %70, <2 x i32> %71, <4 x i32> <i32 0, i32 2, i32 1, i32 3>
store <4 x i32> %72, <4 x i32>* bitcast (i32* getelementptr inbounds ([32 x i32], [32 x i32]* @test_1.cm, i64 0, i64 12) to <4 x i32>*)
%73 = load <4 x i32>, <4 x i32>* bitcast (i32* getelementptr inbounds ([32 x i32], [32 x i32]* @test_1.cm, i64 0, i64 16) to <4 x i32>*)
%74 = shufflevector <4 x i32> %73, <4 x i32> poison, <2 x i32> <i32 0, i32 2>
%75 = shufflevector <4 x i32> %73, <4 x i32> poison, <2 x i32> <i32 1, i32 3>
%76 = shl <2 x i32> %74, <i32 8, i32 8>
%77 = shl <2 x i32> %75, <i32 7, i32 7>
%78 = shufflevector <2 x i32> %76, <2 x i32> %77, <4 x i32> <i32 0, i32 2, i32 1, i32 3>
store <4 x i32> %78, <4 x i32>* bitcast (i32* getelementptr inbounds ([32 x i32], [32 x i32]* @test_1.cm, i64 0, i64 16) to <4 x i32>*)
%79 = load <4 x i32>, <4 x i32>* bitcast (i32* getelementptr inbounds ([32 x i32], [32 x i32]* @test_1.cm, i64 0, i64 20) to <4 x i32>*)
%80 = shufflevector <4 x i32> %79, <4 x i32> poison, <2 x i32> <i32 0, i32 2>
%81 = shufflevector <4 x i32> %79, <4 x i32> poison, <2 x i32> <i32 1, i32 3>
%82 = shl <2 x i32> %80, <i32 8, i32 8>
%83 = shl <2 x i32> %81, <i32 7, i32 7>
%84 = shufflevector <2 x i32> %82, <2 x i32> %83, <4 x i32> <i32 0, i32 2, i32 1, i32 3>
store <4 x i32> %84, <4 x i32>* bitcast (i32* getelementptr inbounds ([32 x i32], [32 x i32]* @test_1.cm, i64 0, i64 20) to <4 x i32>*)
%85 = load <4 x i32>, <4 x i32>* bitcast (i32* getelementptr inbounds ([32 x i32], [32 x i32]* @test_1.cm, i64 0, i64 24) to <4 x i32>*)
%86 = shufflevector <4 x i32> %85, <4 x i32> poison, <2 x i32> <i32 0, i32 2>
%87 = shufflevector <4 x i32> %85, <4 x i32> poison, <2 x i32> <i32 1, i32 3>
%88 = shl <2 x i32> %86, <i32 8, i32 8>
%89 = shl <2 x i32> %87, <i32 7, i32 7>
%90 = shufflevector <2 x i32> %88, <2 x i32> %89, <4 x i32> <i32 0, i32 2, i32 1, i32 3>
store <4 x i32> %90, <4 x i32>* bitcast (i32* getelementptr inbounds ([32 x i32], [32 x i32]* @test_1.cm, i64 0, i64 24) to <4 x i32>*)
%91 = load <4 x i32>, <4 x i32>* bitcast (i32* getelementptr inbounds ([32 x i32], [32 x i32]* @test_1.cm, i64 0, i64 28) to <4 x i32>*)
%92 = shufflevector <4 x i32> %91, <4 x i32> poison, <2 x i32> <i32 0, i32 2>
%93 = shufflevector <4 x i32> %91, <4 x i32> poison, <2 x i32> <i32 1, i32 3>
%94 = shl <2 x i32> %92, <i32 8, i32 8>
%95 = shl <2 x i32> %93, <i32 7, i32 7>
%96 = shufflevector <2 x i32> %94, <2 x i32> %95, <4 x i32> <i32 0, i32 2, i32 1, i32 3>
store <4 x i32> %96, <4 x i32>* bitcast (i32* getelementptr inbounds ([32 x i32], [32 x i32]* @test_1.cm, i64 0, i64 28) to <4 x i32>*)
ret void
}