#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 /*<<< orphan*/ adr_test();
int /*<<< orphan*/ ldm_test();
int /*<<< orphan*/ ldr_imm_test();
int /*<<< orphan*/ ldrb_imm_test();
int /*<<< orphan*/ ldrb_test();
int /*<<< orphan*/ ldrh_imm_test();
int /*<<< orphan*/ ldrh_test();
int /*<<< orphan*/ ldrsb_test();
int /*<<< orphan*/ ldrsh_test();
int /*<<< orphan*/ pop_test();
int /*<<< orphan*/ push_test();
int /*<<< orphan*/ stm_test();
int /*<<< orphan*/ str_imm_test();
int /*<<< orphan*/ str_ldr_test();
void memory_instruction_test(void) {
  adr_test();
  str_ldr_test();
  ldr_imm_test();
  ldrb_test();
  ldrb_imm_test();
  ldrsb_test();
  ldrh_test();
  ldrh_imm_test();
  ldrsh_test();
  str_imm_test();
  ldm_test();
  stm_test();
  push_test();
  pop_test();
}


x86 assembly (clang, -O0):
<memory_instruction_test>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   10f0 <adr_test@plt>
mov    $0x0,%al
call   1030 <str_ldr_test@plt>
mov    $0x0,%al
call   10a0 <ldr_imm_test@plt>
mov    $0x0,%al
call   10e0 <ldrb_test@plt>
mov    $0x0,%al
call   1090 <ldrb_imm_test@plt>
mov    $0x0,%al
call   1060 <ldrsb_test@plt>
mov    $0x0,%al
call   1100 <ldrh_test@plt>
mov    $0x0,%al
call   10c0 <ldrh_imm_test@plt>
mov    $0x0,%al
call   1040 <ldrsh_test@plt>
mov    $0x0,%al
call   1050 <str_imm_test@plt>
mov    $0x0,%al
call   1080 <ldm_test@plt>
mov    $0x0,%al
call   10d0 <stm_test@plt>
mov    $0x0,%al
call   10b0 <push_test@plt>
mov    $0x0,%al
call   1070 <pop_test@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<memory_instruction_test>:
push   %rax
xor    %eax,%eax
call   10f0 <adr_test@plt>
xor    %eax,%eax
call   1030 <str_ldr_test@plt>
xor    %eax,%eax
call   10a0 <ldr_imm_test@plt>
xor    %eax,%eax
call   10e0 <ldrb_test@plt>
xor    %eax,%eax
call   1090 <ldrb_imm_test@plt>
xor    %eax,%eax
call   1060 <ldrsb_test@plt>
xor    %eax,%eax
call   1100 <ldrh_test@plt>
xor    %eax,%eax
call   10c0 <ldrh_imm_test@plt>
xor    %eax,%eax
call   1040 <ldrsh_test@plt>
xor    %eax,%eax
call   1050 <str_imm_test@plt>
xor    %eax,%eax
call   1080 <ldm_test@plt>
xor    %eax,%eax
call   10d0 <stm_test@plt>
xor    %eax,%eax
call   10b0 <push_test@plt>
xor    %eax,%eax
pop    %rcx
jmp    1070 <pop_test@plt>

LLVM IR (-O0):
define void @memory_instruction_test() {
%1 = call i32 (...) @adr_test()
%2 = call i32 (...) @str_ldr_test()
%3 = call i32 (...) @ldr_imm_test()
%4 = call i32 (...) @ldrb_test()
%5 = call i32 (...) @ldrb_imm_test()
%6 = call i32 (...) @ldrsb_test()
%7 = call i32 (...) @ldrh_test()
%8 = call i32 (...) @ldrh_imm_test()
%9 = call i32 (...) @ldrsh_test()
%10 = call i32 (...) @str_imm_test()
%11 = call i32 (...) @ldm_test()
%12 = call i32 (...) @stm_test()
%13 = call i32 (...) @push_test()
%14 = call i32 (...) @pop_test()
ret void
}

LLVM IR (-O2):
define void @memory_instruction_test() {
%1 = tail call i32 (...) @adr_test()
%2 = tail call i32 (...) @str_ldr_test()
%3 = tail call i32 (...) @ldr_imm_test()
%4 = tail call i32 (...) @ldrb_test()
%5 = tail call i32 (...) @ldrb_imm_test()
%6 = tail call i32 (...) @ldrsb_test()
%7 = tail call i32 (...) @ldrh_test()
%8 = tail call i32 (...) @ldrh_imm_test()
%9 = tail call i32 (...) @ldrsh_test()
%10 = tail call i32 (...) @str_imm_test()
%11 = tail call i32 (...) @ldm_test()
%12 = tail call i32 (...) @stm_test()
%13 = tail call i32 (...) @push_test()
%14 = tail call i32 (...) @pop_test()
ret void
}