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

/* Variables and functions */
int movsbl_1();
int movsbl_2();
int movsbw_1();
int movsbw_2();
int movswl_1();
int movswl_2();
int movzbl_1();
int movzbl_2();
int movzbw_1();
int movzbw_2();
int movzwl_1();
int movzwl_2();
int /*<<< orphan*/ printf(char *, char *, int);
int main(void) {
  printf("%8s 0x%08x\n", "movzbw_1", movzbw_1());
  printf("%8s 0x%08x\n", "movzbw_2", movzbw_2());
  printf("%8s 0x%08x\n", "movzbl_1", movzbl_1());
  printf("%8s 0x%08x\n", "movzbl_2", movzbl_2());
  printf("%8s 0x%08x\n", "movzwl_1", movzwl_1());
  printf("%8s 0x%08x\n", "movzwl_2", movzwl_2());
  printf("%8s 0x%08x\n", "movsbw_1", movsbw_1());
  printf("%8s 0x%08x\n", "movsbw_2", movsbw_2());
  printf("%8s 0x%08x\n", "movsbl_1", movsbl_1());
  printf("%8s 0x%08x\n", "movsbl_2", movsbl_2());
  printf("%8s 0x%08x\n", "movswl_1", movswl_1());
  printf("%8s 0x%08x\n", "movswl_2", movswl_2());
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1050 <movzbw_1@plt>
mov    %eax,%edx
lea    0xe11(%rip),%rdi
lea    0xe16(%rip),%rsi
call   1040 <printf@plt>
mov    $0x0,%al
call   10b0 <movzbw_2@plt>
mov    %eax,%edx
lea    0xdf5(%rip),%rdi
lea    0xe03(%rip),%rsi
call   1040 <printf@plt>
mov    $0x0,%al
call   10d0 <movzbl_1@plt>
mov    %eax,%edx
lea    0xdd9(%rip),%rdi
lea    0xdf0(%rip),%rsi
call   1040 <printf@plt>
mov    $0x0,%al
call   1070 <movzbl_2@plt>
mov    %eax,%edx
lea    0xdbd(%rip),%rdi
lea    0xddd(%rip),%rsi
call   1040 <printf@plt>
mov    $0x0,%al
call   10c0 <movzwl_1@plt>
mov    %eax,%edx
lea    0xda1(%rip),%rdi
lea    0xdca(%rip),%rsi
call   1040 <printf@plt>
mov    $0x0,%al
call   1060 <movzwl_2@plt>
mov    %eax,%edx
lea    0xd85(%rip),%rdi
lea    0xdb7(%rip),%rsi
call   1040 <printf@plt>
mov    $0x0,%al
call   10a0 <movsbw_1@plt>
mov    %eax,%edx
lea    0xd69(%rip),%rdi
lea    0xda4(%rip),%rsi
call   1040 <printf@plt>
mov    $0x0,%al
call   1030 <movsbw_2@plt>
mov    %eax,%edx
lea    0xd4d(%rip),%rdi
lea    0xd91(%rip),%rsi
call   1040 <printf@plt>
mov    $0x0,%al
call   1080 <movsbl_1@plt>
mov    %eax,%edx
lea    0xd31(%rip),%rdi
lea    0xd7e(%rip),%rsi
call   1040 <printf@plt>
mov    $0x0,%al
call   10e0 <movsbl_2@plt>
mov    %eax,%edx
lea    0xd15(%rip),%rdi
lea    0xd6b(%rip),%rsi
call   1040 <printf@plt>
mov    $0x0,%al
call   10f0 <movswl_1@plt>
mov    %eax,%edx
lea    0xcf9(%rip),%rdi
lea    0xd58(%rip),%rsi
call   1040 <printf@plt>
mov    $0x0,%al
call   1090 <movswl_2@plt>
mov    %eax,%edx
lea    0xcdd(%rip),%rdi
lea    0xd45(%rip),%rsi
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
xor    %eax,%eax
call   1050 <movzbw_1@plt>
lea    0xe21(%rip),%rbx
lea    0xe26(%rip),%rsi
mov    %rbx,%rdi
mov    %eax,%edx
call   1040 <printf@plt>
xor    %eax,%eax
call   10b0 <movzbw_2@plt>
lea    0xe17(%rip),%rsi
mov    %rbx,%rdi
mov    %eax,%edx
call   1040 <printf@plt>
xor    %eax,%eax
call   10d0 <movzbl_1@plt>
lea    0xe08(%rip),%rsi
mov    %rbx,%rdi
mov    %eax,%edx
call   1040 <printf@plt>
xor    %eax,%eax
call   1070 <movzbl_2@plt>
lea    0xdf9(%rip),%rsi
mov    %rbx,%rdi
mov    %eax,%edx
call   1040 <printf@plt>
xor    %eax,%eax
call   10c0 <movzwl_1@plt>
lea    0xdea(%rip),%rsi
mov    %rbx,%rdi
mov    %eax,%edx
call   1040 <printf@plt>
xor    %eax,%eax
call   1060 <movzwl_2@plt>
lea    0xddb(%rip),%rsi
mov    %rbx,%rdi
mov    %eax,%edx
call   1040 <printf@plt>
xor    %eax,%eax
call   10a0 <movsbw_1@plt>
lea    0xdcc(%rip),%rsi
mov    %rbx,%rdi
mov    %eax,%edx
call   1040 <printf@plt>
xor    %eax,%eax
call   1030 <movsbw_2@plt>
lea    0xdbd(%rip),%rsi
mov    %rbx,%rdi
mov    %eax,%edx
call   1040 <printf@plt>
xor    %eax,%eax
call   1080 <movsbl_1@plt>
lea    0xdae(%rip),%rsi
mov    %rbx,%rdi
mov    %eax,%edx
call   1040 <printf@plt>
xor    %eax,%eax
call   10e0 <movsbl_2@plt>
lea    0xd9f(%rip),%rsi
mov    %rbx,%rdi
mov    %eax,%edx
call   1040 <printf@plt>
xor    %eax,%eax
call   10f0 <movswl_1@plt>
lea    0xd90(%rip),%rsi
mov    %rbx,%rdi
mov    %eax,%edx
call   1040 <printf@plt>
xor    %eax,%eax
call   1090 <movswl_2@plt>
lea    0xd81(%rip),%rsi
mov    %rbx,%rdi
mov    %eax,%edx
call   1040 <printf@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [12 x i8] c"%8s 0x%08x\0A\00"
@.str.1 = [9 x i8] c"movzbw_1\00"
@.str.2 = [9 x i8] c"movzbw_2\00"
@.str.3 = [9 x i8] c"movzbl_1\00"
@.str.4 = [9 x i8] c"movzbl_2\00"
@.str.5 = [9 x i8] c"movzwl_1\00"
@.str.6 = [9 x i8] c"movzwl_2\00"
@.str.7 = [9 x i8] c"movsbw_1\00"
@.str.8 = [9 x i8] c"movsbw_2\00"
@.str.9 = [9 x i8] c"movsbl_1\00"
@.str.10 = [9 x i8] c"movsbl_2\00"
@.str.11 = [9 x i8] c"movswl_1\00"
@.str.12 = [9 x i8] c"movswl_2\00"
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 (...) @movzbw_1()
%3 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), i32 %2)
%4 = call i32 (...) @movzbw_2()
%5 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0), i32 %4)
%6 = call i32 (...) @movzbl_1()
%7 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), i32 %6)
%8 = call i32 (...) @movzbl_2()
%9 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0), i32 %8)
%10 = call i32 (...) @movzwl_1()
%11 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0), i32 %10)
%12 = call i32 (...) @movzwl_2()
%13 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.6, i64 0, i64 0), i32 %12)
%14 = call i32 (...) @movsbw_1()
%15 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.7, i64 0, i64 0), i32 %14)
%16 = call i32 (...) @movsbw_2()
%17 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0), i32 %16)
%18 = call i32 (...) @movsbl_1()
%19 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.9, i64 0, i64 0), i32 %18)
%20 = call i32 (...) @movsbl_2()
%21 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.10, i64 0, i64 0), i32 %20)
%22 = call i32 (...) @movswl_1()
%23 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.11, i64 0, i64 0), i32 %22)
%24 = call i32 (...) @movswl_2()
%25 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.12, i64 0, i64 0), i32 %24)
ret i32 0
}

LLVM IR (-O2):
@.str = [12 x i8] c"%8s 0x%08x\0A\00"
@.str.1 = [9 x i8] c"movzbw_1\00"
@.str.2 = [9 x i8] c"movzbw_2\00"
@.str.3 = [9 x i8] c"movzbl_1\00"
@.str.4 = [9 x i8] c"movzbl_2\00"
@.str.5 = [9 x i8] c"movzwl_1\00"
@.str.6 = [9 x i8] c"movzwl_2\00"
@.str.7 = [9 x i8] c"movsbw_1\00"
@.str.8 = [9 x i8] c"movsbw_2\00"
@.str.9 = [9 x i8] c"movsbl_1\00"
@.str.10 = [9 x i8] c"movsbl_2\00"
@.str.11 = [9 x i8] c"movswl_1\00"
@.str.12 = [9 x i8] c"movswl_2\00"
define i32 @main() {
%1 = tail call i32 (...) @movzbw_1()
%2 = tail call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), i32 %1)
%3 = tail call i32 (...) @movzbw_2()
%4 = tail call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0), i32 %3)
%5 = tail call i32 (...) @movzbl_1()
%6 = tail call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), i32 %5)
%7 = tail call i32 (...) @movzbl_2()
%8 = tail call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0), i32 %7)
%9 = tail call i32 (...) @movzwl_1()
%10 = tail call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0), i32 %9)
%11 = tail call i32 (...) @movzwl_2()
%12 = tail call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.6, i64 0, i64 0), i32 %11)
%13 = tail call i32 (...) @movsbw_1()
%14 = tail call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.7, i64 0, i64 0), i32 %13)
%15 = tail call i32 (...) @movsbw_2()
%16 = tail call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0), i32 %15)
%17 = tail call i32 (...) @movsbl_1()
%18 = tail call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.9, i64 0, i64 0), i32 %17)
%19 = tail call i32 (...) @movsbl_2()
%20 = tail call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.10, i64 0, i64 0), i32 %19)
%21 = tail call i32 (...) @movswl_1()
%22 = tail call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.11, i64 0, i64 0), i32 %21)
%23 = tail call i32 (...) @movswl_2()
%24 = tail call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.12, i64 0, i64 0), i32 %23)
ret i32 0
}