#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 int64_t;

/* Variables and functions */
int64_t shift_bytes(int64_t m1, int64_t m2, int64_t m3, int64_t m4, int64_t m5,
                    int64_t m6, int64_t m7, int64_t m8) {
  int64_t tmp = 0;
  tmp |= m1 << (0);
  tmp |= m2 << (8);
  tmp |= m3 << (16);
  tmp |= m4 << (24);
  tmp |= m5 << (32);
  tmp |= m6 << (40);
  tmp |= m7 << (48);
  tmp |= m8 << (56);
  return tmp;
}


x86 assembly (clang, -O0):
<shift_bytes>:
push   %rbp
mov    %rsp,%rbp
mov    0x18(%rbp),%eax
mov    0x10(%rbp),%eax
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    %ecx,-0x10(%rbp)
mov    %r8d,-0x14(%rbp)
mov    %r9d,-0x18(%rbp)
movl   $0x0,-0x1c(%rbp)
mov    -0x4(%rbp),%eax
shl    $0x0,%eax
or     -0x1c(%rbp),%eax
mov    %eax,-0x1c(%rbp)
mov    -0x8(%rbp),%eax
shl    $0x8,%eax
or     -0x1c(%rbp),%eax
mov    %eax,-0x1c(%rbp)
mov    -0xc(%rbp),%eax
shl    $0x10,%eax
or     -0x1c(%rbp),%eax
mov    %eax,-0x1c(%rbp)
mov    -0x10(%rbp),%eax
shl    $0x18,%eax
or     -0x1c(%rbp),%eax
mov    %eax,-0x1c(%rbp)
mov    -0x14(%rbp),%eax
mov    $0x20,%ecx
shl    %cl,%eax
or     -0x1c(%rbp),%eax
mov    %eax,-0x1c(%rbp)
mov    -0x18(%rbp),%eax
mov    $0x28,%ecx
shl    %cl,%eax
or     -0x1c(%rbp),%eax
mov    %eax,-0x1c(%rbp)
mov    0x10(%rbp),%eax
mov    $0x30,%ecx
shl    %cl,%eax
or     -0x1c(%rbp),%eax
mov    %eax,-0x1c(%rbp)
mov    0x18(%rbp),%eax
mov    $0x38,%ecx
shl    %cl,%eax
or     -0x1c(%rbp),%eax
mov    %eax,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<shift_bytes>:
ret

LLVM IR (-O0):
define i32 @shift_bytes(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
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
store i32 0, i32* %17
%18 = load i32, i32* %9
%19 = shl i32 %18, 0
%20 = load i32, i32* %17
%21 = or i32 %20, %19
store i32 %21, i32* %17
%22 = load i32, i32* %10
%23 = shl i32 %22, 8
%24 = load i32, i32* %17
%25 = or i32 %24, %23
store i32 %25, i32* %17
%26 = load i32, i32* %11
%27 = shl i32 %26, 16
%28 = load i32, i32* %17
%29 = or i32 %28, %27
store i32 %29, i32* %17
%30 = load i32, i32* %12
%31 = shl i32 %30, 24
%32 = load i32, i32* %17
%33 = or i32 %32, %31
store i32 %33, i32* %17
%34 = load i32, i32* %13
%35 = shl i32 %34, 32
%36 = load i32, i32* %17
%37 = or i32 %36, %35
store i32 %37, i32* %17
%38 = load i32, i32* %14
%39 = shl i32 %38, 40
%40 = load i32, i32* %17
%41 = or i32 %40, %39
store i32 %41, i32* %17
%42 = load i32, i32* %15
%43 = shl i32 %42, 48
%44 = load i32, i32* %17
%45 = or i32 %44, %43
store i32 %45, i32* %17
%46 = load i32, i32* %16
%47 = shl i32 %46, 56
%48 = load i32, i32* %17
%49 = or i32 %48, %47
store i32 %49, i32* %17
%50 = load i32, i32* %17
ret i32 %50
}

LLVM IR (-O2):
define i32 @shift_bytes(i32 %0, i32 %1, i32 %2, i32 %3, i32 %4, i32 %5, i32 %6, i32 %7) {
ret i32 poison
}