// File: /workspace/github_c_makefile_star2_O0/mmcco[P]sljit/test_src/sljitTest.c
// Function: test19
static void test19(void)
{
	/* Test arm partial instruction caching. */
	executable_code code;
	struct sljit_compiler* compiler = sljit_create_compiler();
	long buf[10];

	if (verbose)
		printf("Run test19\n");

	FAILED(!compiler, "cannot create compiler\n");
	buf[0] = 6;
	buf[1] = 4;
	buf[2] = 0;
	buf[3] = 0;
	buf[4] = 0;
	buf[5] = 0;
	buf[6] = 2;
	buf[7] = 0;

	sljit_emit_enter(compiler, 0, 1, 3, 1, 0, 0, 0);
	sljit_emit_op2(compiler, SLJIT_ADD, SLJIT_MEM1(SLJIT_S0), 0, SLJIT_MEM1(SLJIT_S0), 0, SLJIT_MEM1(SLJIT_S0), sizeof(long));
	sljit_emit_op2(compiler, SLJIT_ADD, SLJIT_MEM0(), (long)&buf[2], SLJIT_MEM0(), (long)&buf[1], SLJIT_MEM0(), (long)&buf[0]);
	sljit_emit_op1(compiler, SLJIT_MOV, SLJIT_R0, 0, SLJIT_IMM, 0);
	sljit_emit_op1(compiler, SLJIT_MOV, SLJIT_R1, 0, SLJIT_IMM, sizeof(long));
	sljit_emit_op2(compiler, SLJIT_ADD, SLJIT_MEM1(SLJIT_S0), sizeof(long) * 3, SLJIT_MEM1(SLJIT_R0), (long)&buf[0], SLJIT_MEM1(SLJIT_R1), (long)&buf[0]);
	sljit_emit_op2(compiler, SLJIT_SUB, SLJIT_MEM1(SLJIT_S0), sizeof(long) * 4, SLJIT_MEM0(), (long)&buf[0], SLJIT_IMM, 2);
	sljit_emit_op2(compiler, SLJIT_SUB, SLJIT_MEM1(SLJIT_S0), sizeof(long) * 5, SLJIT_MEM1(SLJIT_S0), sizeof(long) * 2, SLJIT_MEM1(SLJIT_R0), (long)&buf[0] + 4 * sizeof(long));
	sljit_emit_op1(compiler, SLJIT_MOV, SLJIT_MEM1(SLJIT_S0), sizeof(long) * 7, SLJIT_IMM, 10);
	sljit_emit_op1(compiler, SLJIT_MOV, SLJIT_R0, 0, SLJIT_IMM, 7);
	sljit_emit_op2(compiler, SLJIT_ADD, SLJIT_MEM1(SLJIT_R1), (long)&buf[5], SLJIT_MEM2(SLJIT_S0, SLJIT_R0), SLJIT_WORD_SHIFT, SLJIT_MEM1(SLJIT_R1), (long)&buf[5]);

	sljit_emit_return(compiler, SLJIT_UNUSED, 0, 0);

	code.code = sljit_generate_code(compiler);
	CHECK(compiler);
	sljit_free_compiler(compiler);

	code.func1((long)&buf);
	FAILED(buf[0] != 10, "test19 case 1 failed\n");
	FAILED(buf[1] != 4, "test19 case 2 failed\n");
	FAILED(buf[2] != 14, "test19 case 3 failed\n");
	FAILED(buf[3] != 14, "test19 case 4 failed\n");
	FAILED(buf[4] != 8, "test19 case 5 failed\n");
	FAILED(buf[5] != 6, "test19 case 6 failed\n");
	FAILED(buf[6] != 12, "test19 case 7 failed\n");
	FAILED(buf[7] != 10, "test19 case 8 failed\n");

	sljit_free_code(code.code);
	successful_tests++;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x70, %rsp
callq 0x18ba0
movq %rax, -0x10(%rbp)
cmpl $0x0, 0x2b70c(%rip)     # 0x34354
je 0x8c58
leaq 0x25489(%rip), %rdi     # 0x2e0da
movb $0x0, %al
callq 0x2070
cmpq $0x0, -0x10(%rbp)
jne 0x8c72
leaq 0x2476d(%rip), %rdi     # 0x2d3d3
movb $0x0, %al
callq 0x2070
jmp 0x8fe3
movq $0x6, -0x60(%rbp)
movq $0x4, -0x58(%rbp)
movq $0x0, -0x50(%rbp)
movq $0x0, -0x48(%rbp)
movq $0x0, -0x40(%rbp)
movq $0x0, -0x38(%rbp)
movq $0x2, -0x30(%rbp)
movq $0x0, -0x28(%rbp)
movq -0x10(%rbp), %rdi
xorl %r9d, %r9d
movl $0x1, %r8d
movl $0x3, %ecx
movl %r9d, %esi
movl %r8d, %edx
movl $0x0, (%rsp)
movl $0x0, 0x8(%rsp)
callq 0x19b20
movq -0x10(%rbp), %rdi
movl $0x60, %esi
movl $0x8c, %r8d
xorl %eax, %eax
movl %eax, %r9d
movl %r8d, %edx
movq %r9, %rcx
movl $0x8c, (%rsp)
movq $0x8, 0x8(%rsp)
callq 0x1f8d0
movq -0x10(%rbp), %rdi
leaq -0x60(%rbp), %rcx
addq $0x10, %rcx
leaq -0x60(%rbp), %r9
addq $0x8, %r9
leaq -0x60(%rbp), %rax
movl $0x60, %esi
movl $0x80, %r8d
movl %r8d, %edx
movl $0x80, (%rsp)
movq %rax, 0x8(%rsp)
callq 0x1f8d0
movq -0x10(%rbp), %rdi
movl $0x20, %esi
movl $0x1, %edx
xorl %eax, %eax
movl %eax, %r9d
movl $0x40, %r8d
movq %r9, %rcx
callq 0x1d3d0
movq -0x10(%rbp), %rdi
movl $0x20, %esi
movl $0x2, %edx
xorl %eax, %eax
movl %eax, %ecx
movl $0x40, %r8d
movl $0x8, %r9d
callq 0x1d3d0
movq -0x10(%rbp), %rdi
leaq -0x60(%rbp), %r9
leaq -0x60(%rbp), %rax
movl $0x60, %esi
movl $0x8c, %edx
movl $0x18, %ecx
movl $0x81, %r8d
movl $0x82, (%rsp)
movq %rax, 0x8(%rsp)
callq 0x1f8d0
movq -0x10(%rbp), %rdi
leaq -0x60(%rbp), %r9
movl $0x62, %esi
movl $0x8c, %edx
movl $0x20, %ecx
movl $0x80, %r8d
movl $0x40, (%rsp)
movq $0x2, 0x8(%rsp)
callq 0x1f8d0
movq -0x10(%rbp), %rdi
leaq -0x60(%rbp), %rax
addq $0x20, %rax
movl $0x62, %esi
movl $0x8c, %r8d
movl $0x28, %ecx
movl $0x10, %r9d
movl %r8d, %edx
movl $0x81, (%rsp)
movq %rax, 0x8(%rsp)
callq 0x1f8d0
movq -0x10(%rbp), %rdi
movl $0x20, %esi
movl $0x8c, %edx
movl $0x38, %ecx
movl $0x40, %r8d
movl $0xa, %r9d
callq 0x1d3d0
movq -0x10(%rbp), %rdi
movl $0x20, %esi
movl $0x1, %edx
xorl %eax, %eax
movl %eax, %ecx
movl $0x40, %r8d
movl $0x7, %r9d
callq 0x1d3d0
movq -0x10(%rbp), %rdi
leaq -0x60(%rbp), %rcx
addq $0x28, %rcx
leaq -0x60(%rbp), %rax
addq $0x28, %rax
movl $0x60, %esi
movl $0x82, %edx
movl $0x18c, %r8d            # imm = 0x18C
movl $0x3, %r9d
movl $0x82, (%rsp)
movq %rax, 0x8(%rsp)
callq 0x1f8d0
movq -0x10(%rbp), %rdi
xorl %edx, %edx
xorl %eax, %eax
movl %eax, %ecx
movl %edx, %esi
callq 0x1a7c0
movq -0x10(%rbp), %rdi
callq 0x19070
movq %rax, -0x8(%rbp)
movq -0x10(%rbp), %rdi
callq 0x18030
cmpl $0x1, %eax
je 0x8ef7
movq -0x10(%rbp), %rdi
callq 0x18030
movl %eax, %esi
leaq 0x24536(%rip), %rdi     # 0x2d418
movb $0x0, %al
callq 0x2070
movq -0x10(%rbp), %rdi
callq 0x18d90
jmp 0x8fe3
movq -0x10(%rbp), %rdi
callq 0x18d90
movq -0x8(%rbp), %rax
leaq -0x60(%rbp), %rdi
callq *%rax
cmpq $0xa, -0x60(%rbp)
je 0x8f24
leaq 0x251ce(%rip), %rdi     # 0x2e0e6
movb $0x0, %al
callq 0x2070
jmp 0x8fe3
cmpq $0x4, -0x58(%rbp)
je 0x8f3e
leaq 0x251ca(%rip), %rdi     # 0x2e0fc
movb $0x0, %al
callq 0x2070
jmp 0x8fe3
cmpq $0xe, -0x50(%rbp)
je 0x8f58
leaq 0x251c6(%rip), %rdi     # 0x2e112
movb $0x0, %al
callq 0x2070
jmp 0x8fe3
cmpq $0xe, -0x48(%rbp)
je 0x8f6f
leaq 0x251c2(%rip), %rdi     # 0x2e128
movb $0x0, %al
callq 0x2070
jmp 0x8fe3
cmpq $0x8, -0x40(%rbp)
je 0x8f86
leaq 0x251c1(%rip), %rdi     # 0x2e13e
movb $0x0, %al
callq 0x2070
jmp 0x8fe3
cmpq $0x6, -0x38(%rbp)
je 0x8f9d
leaq 0x251c0(%rip), %rdi     # 0x2e154
movb $0x0, %al
callq 0x2070
jmp 0x8fe3
cmpq $0xc, -0x30(%rbp)
je 0x8fb4
leaq 0x251bf(%rip), %rdi     # 0x2e16a
movb $0x0, %al
callq 0x2070
jmp 0x8fe3
cmpq $0xa, -0x28(%rbp)
je 0x8fcb
leaq 0x251be(%rip), %rdi     # 0x2e180
movb $0x0, %al
callq 0x2070
jmp 0x8fe3
movq -0x8(%rbp), %rdi
callq 0x18e10
movl 0x2b382(%rip), %eax     # 0x3435c
addl $0x1, %eax
movl %eax, 0x2b379(%rip)     # 0x3435c
addq $0x70, %rsp
popq %rbp
retq
nopl (%rax)